I have implemented a script on my Venus GX to keep my modem alive and running fine.
I extended the script by reporting the consumed data to MQTT (and by extension VRM) as data consumption goes beyond normal VRM data usage (approx 6 GB a month).
This should be straight forward based on dbus-mqqt (https://github.com/victronenergy/dbus-mqtt), but I got stuck on the line "import paho.mqqt.client". I tried different syntaxes but always the same error.
root@beaglebone:~# python /data/bearbendum/netgear_status_data.py Traceback (most recent call last): File "/data/bearbendum/netgear_status_data.py", line 22, in <module> from paho.mqtt import Client ImportError: No module named paho.mqtt root@beaglebone:~#
Here is the extract from the code
#!/usr/bin/env python import paho.mqtt.client as mqtt mqttc = mqtt.Client("") mqttc.connect("localhost", 1883) mqttc.publish("modem/billing_data", str(billing_data))
So i run out of ideas how to fix.
Thanks.