I have the Blueline Wifi Powercost monitor (http://www.amazon.com/Blue-Line-Innovations-BLI-32000/dp/B00EU7NUP6) watching the disc spinning on my meter and reporting my power usage. I'm not sure if Blueline's cloud is down or not because my data isn't showing up on their site, doesn't really matter because I'd rather have it on EmonCMS anyway. Using Wireshark, I found that every 32 seconds, the monitor is broadcasting a UDP packet with the following data:
msgtype=PCMWiFi; DeviceID=XXXXXXXXXXXX; Inst=1959; Reg=13387987; Temp=31; BattLow=0; SQI=66; uTime=1369834215; msgtype=PCMWiFi; DeviceID=XXXXXXXXXXXX; Inst=1943; Reg=13388003; Temp=31; BattLow=0; SQI=66; uTime=1369834246;
msgtype is a constant. DeviceID is the mac address of the unit. Inst is instantaneous Watts. Reg is the Total consumption since last reset/sync. Temp is the temperature in degrees C. BattLow will show 1 when the sensor battery is low, otherwise it is 0. SQI is the signal quality indicator of the wifi unit receiving the signal from the monitor/sensor. It is a percentage. uTime is unix time.
Can anyone recommend a quick and dirty way to get the data into EmonCMS? I found some code on github (https://github.com/DCandE/PCMWiFi) that appears to sniff the data and display it on the screen using a Processing.org program. I might be able to adapt that, but I've never used Processing, and was wondering if there was already a wheel out there or if I needed to invent one.
The machine that will do the packet capture and posting is running Windows 7. I'm open to installing Cygwin on it, but have to keep it running Windows because it is also pulling and posting data from my weather station and the driver only works in Windows.
Thanks,
Matt
Re: Getting data from Blueline Wifi Powercost monitor into EmonCMS
I actually do something very similar, except I do my monitor-to-cloud relaying on a unix machine and my energy monitor is completely different from yours, although it too does UDP broadcasts of its data. I suspect the correct way to solve it is via some sort of plug-in for emonhub, but I don't know enough about emonhub to guide you any further there. My setup pre-dates emonhub and migrating my relay process from a bespoke one to emonhub has long been on my list of things to research, but never seems to get anywhere near the top.
My bespoke code won't be much use to you because we have different energy monitors, but I guess the basic principles apply. I also take advantage of the various unix tools to make the job a bit easier and I've no idea what's available on Windows. But, for what it's worth:
I launch the relay with:
socat takes care of the network listening stuff for me, and my erm_cloud_relay simply processes strings from the energy monitor via standard input (handy for testing it with pre-recorded monitor output as well).
The gist of erm_cloud_relayd is to parse the various incoming strings (mine are completely different from yours):
do any pre-processing I want to do on the data, and then at some stage post it to emoncms via libcurl:
Edit - wrapped long lines - Moderator, BT
Re: Getting data from Blueline Wifi Powercost monitor into EmonCMS
I checked out the pointer to your energy monitor. Have you tried their appliance-recognition stuff? I'm blown away that they can do that solely by looking at LED pulses from the meter. I've always assumed you need huge amounts of detail (current harmonics etc) to have a reasonable chance at that. Do you know if theirs works well?
Re: Getting data from Blueline Wifi Powercost monitor into EmonCMS
Got something working with Processing and figured I would share it here in case it helps anyone else along the way. Probably not the most elegant thing but its my first program since Intro to Fortran back in college.
-----------------------------
Edit - wrapped long lines - Moderator, BT
Re: Getting data from Blueline Wifi Powercost monitor into EmonCMS
The appliance mode just temporarily zeroes the display so you can more easily see the power spike from whatever appliance you are running. The sender on the meter only sends a signal every 32 seconds so good luck holding everything else constant in your house long enough to get a reliable reading.
You can see the furnace (gas) coming on and off and some time spent in the wood shop running various tools. Still need to learn about configuring inputs and feeds. As of now it seems my kWh under "USE TODAY" is off but I'm sure once I find some tutorials or something I'll figure it out.