Since I am a user of Emoncms for a long time. I would like to contribute my own developed script to you.
This summer I recieved a smartmeter (kaifa ma105) of eneco and I would like to integrate this with my already excisting local emoncms setup (monitoring 12 power lines, water- and gasusage ). All i needed to do was get a cheap chinese rs232 to usb converter and connect it between the pi and my kaifa meter.
The script has been developed in python. And a shell script as a watchdog, in case something (the script) fails.
Please have look at the script if you are using a dutch smartmeter. The scripts are running stable for one month now.
Yes, it should work. I do not have any experience with emoncms.org since I am running my own emoncms instance. The only thing you have to do (i quess) is change the url and credentials.
Script is running already for a long time without any issues.
Yes. Maybe naming credentials was not correct. You should put your api key (provided by emoncms.org) in the script.
I don’t have any experience with S0 ports and KWh for solar panels. This discussion is offtopic. Maybe you can search this forum to find some more info on this topic. Although i am working on enphase integration (solar panel inverters) with emoncms.
Still getting an error message when running the script though. Related to reading the data from the smart meter; "sys.exit (“error opening port…” I updated ser.port in the script (according to the instructions).
Thanks. I already identified the root cause. Python was not able to read from the serial port. There is a need to have pyserial installed (easy_install -U pyserial). Maybe something to add to the readme?
Do you also have scripts available to read from other sources (e.g. kWh meter or Solar Panel invertor)?
2017-04-30 19:55:26,453 ok checksum. Calculated checksum: BE42 checksum telegram: BE42
2017-04-30 19:55:26,456 Item found : 1-0:1.8.1
2017-04-30 19:55:26,458 Item found : 1-0:1.8.2
2017-04-30 19:55:26,460 Item found : 1-0:2.8.1
2017-04-30 19:55:26,463 Item found : 1-0:2.8.2
2017-04-30 19:55:26,465 Item found : 0-1:24.2.1(\d+\w)
2017-04-30 19:55:26,467 Item found : 0-0:96.14.0
2017-04-30 19:55:26,473 Item found : 1-0:1.7.0
2017-04-30 19:55:26,475 Item found : 1-0:2.7.0
I just put a new version on github. Can you try this? Make sure you store you private data like api keys etc. It will be overwritten. In the nearby future i’ll create a separate file for the configuration.This makes upgrading the script a lot easier!
I created another script for read out of a watermeter icw a raspberry pi! I’ll publish this somewhere this week.