Skip to content

rossandrews/mpp-solar-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • 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

Node steps

Install dependencies

npm install

Run service

node ./index.js

Run Commands

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

About

Sample of how to setup webservice to work with https://github.com/jblance/mpp-solar project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published