Closed duculete closed 1 year ago
Not really intended to be used in a python script but it could be What are you trying to do?
On Tue, 20 Jun 2023, 6:25 pm Duculete, @.***> wrote:
Can you create a simple example of how can we use it in python script?
— Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/364, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNRWBMPXD65Z7CFYCFDXME667ANCNFSM6AAAAAAZMZDC4Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>
i have a python script that pull the data and push it to blynk.io currently i have the mpp-solar command (via contrab) that pull data from inverter and push it via mqtt to influxdb to see it in grafana. a python script listens to mqtt topic and get that data and push it to blynk.io (where i have some nice dashboards and also mobile push notifications, etc).
I want to create one python app that pulls data directly from invertor, push the data to influxdb and blynk and i want also to schedule update of output_source_priority (Solar first @ 9pm for example and SBU @9am) + other parameters set via blynk (ui mobile interface).
I can do it using os.popen("/usr/local/bin/mpp-solar -c %s" % mode) or other method that invoke shell but it will be more elegant if i can have all the code and modules in python and don't use sell for that.
thanks
I'd suggest adding an outputter to mppsolar for blynk as the easiest way. Check the git repo or share the key parts of your mqtt to blynk code and I can have a look
The powermon command is under development and adds adhoc commands (so you can send a one off command) this is intended for better control (powermon is also adding a web api for similar reasons)
On Tue, 20 Jun 2023, 6:35 pm Duculete, @.***> wrote:
i have a python script that pull the data and push it to blynk.io currently i have the mpp-solar command (via contrab) that pull data from inverter and push it via mqtt to influxdb to see it in grafana. a python script listens to mqtt topic and get that data and push it to blynk.io (where i have some nice dashboards and also mobile push notifications, etc).
I want to create one python app that pulls data directly from invertor, push the data to influxdb and blynk and i want also to schedule update of output_source_priority (Solar first @ 9pm for example and SBU @9am https://github.com/9am) + other parameters set via blynk (ui mobile interface).
I can do it using os.popen("/usr/local/bin/mpp-solar -c %s" % mode) or other method that invoke shell but it will be more elegant if i can have all the code and modules in python and don't use sell for that.
thanks
— Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/364#issuecomment-1598194339, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNWBTGOZ3L6WH4DPN53XMFAD7ANCNFSM6AAAAAAZMZDC4Y . You are receiving this because you commented.Message ID: @.***>
thanks,
let me check and i will come back with more info/solution
Can you create a simple example of how can we use it in python script?