vedirect icon indicating copy to clipboard operation
vedirect copied to clipboard

Uses for this code?

Open master0v opened this issue 4 years ago • 2 comments

Hi,

Hope all is well.

Could you please share some uses for this code? Surely, you created it with some purpose in mind ;)

I've used it to read the data from an MPPT controller, and it is a great way to test that my connection worked, but now, I am not sure how to make that data useful. Can I somehow pipe it to the VictronConnect app on my mobile phone?

Thanks, A.

master0v avatar Mar 31 '20 20:03 master0v

This library is a protocol decoder for the Victron VE.Direct text protocol, nothing more nothing less. It just presents the data as a Python dict.

The next obvious step would be to off-load the data somewhere but that's beyond the scope of this small utility. My personal favorite is to send the data over to a MQTT broker. From there you have an ubiquotous access to the data and can do whatever you want with it. You could store it in a local database or forward it over to one of the cloud IoT platforms (adafruit.io, thingspeak, aws iot) which have the ability to create fancy graphs.

This is the graph of the battery voltage of the solar system at our summer house using ThingSpeak.

Main battery voltage

AFAIK VictronConnect app uses the VE.Direct binary protocol through the USB/VE.Direct cable or Bluetooth and that's a completely different thing.

karioja avatar Apr 01 '20 07:04 karioja

Hey,

Thanks for the reply.

I found this code, inspired by your work: https://github.com/jessedc/ve.direct-python

and I am using it to store data to InfluxDB, and display it using Grafana, like so:

[image: Screen Shot 2020-04-05 at 12.32.19 PM.png]

Hope you and your close ones are doing well in this difficult time.

All the best, A.

Alexei Masterov +1 646 881 4751 ● [email protected] https://www.masterov.us/p/38c819b7.html https://www.linkedin.com/in/alexeimasterov

On Wed, Apr 1, 2020 at 3:26 AM karioja [email protected] wrote:

This library is a protocol decoder for the Victron VE.Direct text protocol, nothing more nothing less. It just presents the data as a Python dict.

The next obvious step would be to off-load the data somewhere but that's beyond the scope of this small utility. My personal favorite is to send the data over to a MQTT broker. From there you have an ubiquotous access to the data and can do whatever you want with it. You could store it in a local database or forward it over to one of the cloud IoT platforms (adafruit.io, thingspeak, aws iot) which have the ability to create fancy graphs.

AFAIK VictronConnect app uses the VE.Direct binary protocol through the USB/VE.Direct cable or Bluetooth and that's a completely different thing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/karioja/vedirect/issues/5#issuecomment-607081839, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEPA42Z5V443II2IN6USYEDRKLUD7ANCNFSM4LX7QXKQ .

master0v avatar Apr 05 '20 16:04 master0v