ragingcomputer / amridm2mqtt

runs rtlamr to read IDM power meter data and send to MQTT broker
MIT License
76 stars 43 forks source link

Sending scm data to MQTT instead of idm #4

Open biochemguy opened 5 years ago

biochemguy commented 5 years ago

Hi, not sure if it should be in issue or Pull request, but I just wanted to let you know that if you want to add this to your repo, feel free... I modified your file to send the scm data to MQTT instead of IDM. I did this because while my power meter was sending idm data, my gas meter was not and I could not receive that data. This could help others who have gas, water or power that doesn't send idm data.

After modifying the "amridm2mqtt" file I named it "amridm2mqtt_scm" and changed the amridm2mqtt.systemd.service to point to the new file. I also increased the time between starting rtl_tcp and rtlamr to 20s, as I think rtl_tcp was a bit slow to start on boot on my raspberry pi and had problem running rtlamr from the script.

Thanks for your great work! without that code, I would have been lost, as I am new to all this... amridm2mqtt_scm.txt

Linuturk commented 2 years ago

How did you adjust your sensors to deal with the scm data?