This is a small example service intended to work along side https://github.com/jblance/mpp-solar. You can send mpp-solar commands and get a response returned in a JSON format.
- Setup mpp-solar to run in daemon mode with the config found in this project mpp-solar.config
- Have a MQTT broker running locally
- This service must also be running on the same host as the mpp-solar but that can be changed by modifying the MQTT broker settings
npm install
node ./index.js
Now you can run queries against the webservice to run commands against your hardware. I've set this up as get query because it's simplier to try out
- http://<ip_address>:3002/runCommand?command=QPIRI