I have SMA Energy Meter, like this one:
http://www.sma.de/en/products/monitorin ... meter.html
This is very good meter as it measures current direction as well. I can see how much surplus my solar plant has. Also it measures active, reactive and complex power separately!
Energy meter sends it's measurement in UDP multicast, every 20 seconds. I have used a python script I found from the internet:
https://github.com/datenschuft/SMA-EM
It's quite straight forward to use. It just loops and prints every packet received. This kind of output:
Code: Select all
----sum----
P: regard:2748W 12806kWh surplus:0W 42kWh
S: regard:2781VA 12936kVAh surplus:0VA 47VAh
Q: cap 426var 141kvarh ind 0var 1141kvarh
cos phi:0°
----L1----
P: regard:2223W 51007016kWh surplus:0W 51000008kWh
S: regard:2269VA 51007164kVAh surplus:0VA 51000011kVAh
Q: cap 453var 51000090kvarh ind 0var 51000907kvarh
U: 230V thd:10% cos phi:0°
----L2----
P: regard:15W 51001605kWh surplus:0W 51000061kWh
S: regard:36VA 51001675kVAh surplus:0VA 51000069kVAh
Q: cap 0var 51000003kvarh ind 33var 51000173kvarh
U: 236V thd:0% cos phi:0°
----L3----
P: regard:510W 51004240kWh surplus:0W 51000028kWh
S: regard:510VA 51004286kVAh surplus:0VA 51000030kVAh
Q: cap 5var 51000130kvarh ind 0var 51000142kvarh
U: 235V thd:2% cos phi:1°
Except, I'm clueless how to do it.

I can update them with curl, but is there some cleaner approach?