-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: read charge controller data using REST #11
Comments
So you mean that you set up RNGBridge in access point mode and then have another ESP8266 connect to said AP and poll the REST api? |
No. At my garden I have an access point Router with 4g Internet connection and a Raspberry pi with wireguard VPN für tunneling all data traffic to my home server , which is also the MQTT server that collects the MQTT data. The Raspberry pi in the garden also controls shades, collects environment data and controls the watering pump for the produce. |
Should be fairly easy to implement :) |
In a brief: Getting the same json as from MQTT by http get. IP/api/status as according to IP/api/control for setting the output maybe. |
I have been thinking about this feature, but since |
REST api for getting state added with V2.7.0 |
It would be cool to use the REST API for reading the charge controller parameters according to the MQTT response.
In my use case the MQTT data is sent using a 4G Router from my garden shed to my server. A second raspberry oder microcontroller can act according to the charge controller states, e.g. switch something off when an errror appears or switch something on when the sun goes down (panel voltage drops to zero). This can be done by subscribing to the MQTT, but as soon as the 4G would fail there is no possibility to get the controller data locally on the LAN.
By using GET requests for the REST API and reading the states directly from the RNGBridge an offline/failsafe operation would be possible.
The text was updated successfully, but these errors were encountered: