Hi all, thanks for the feedback, great to hear (some of) you have it working.
Blimey, it all looks a bit more complex than I was lead to believe by the wiki entry!
@jmoloney thanks for the discount tip! Might be doing that then…
So I was planning on getting the emonPi fully built and ready to go. The temptation to get it in bits and put it all together was there, but I can’t be bothered with the messing about.
As I understand it then, it’s an Arduino shield running on a RasPi 2B. Which has EmonHub running to send the data to EmonCms.
So you guys are either using some kind of MQTT or custom stuff to get the data across to openHAB.
I found this on the old google group:
OEM binding just listening UDP port, so you need to run rfm12pigw to be able to receive data from your nodes.
By command “rfm12pigw -h” you can get help of the gw application.
rfm12pigw usage:
-h Print help -d Serial port device (default: /dev/ttyS0) -a IP address (default: 127.0.0.1) -p UDP port (default: 9999) -i RFM12i initialization command (default: 8b 200g)
Where
ip address should be the ip address of the openhab server. If you run
your OH on same raspberry pi than gw, then localhost (127.0.0.1) is fine
(which is also the default address). By option i, you can give rfm12pi
configuration attributes. v
option is the verbose/debug flag for the application. So when v is
given, application will print debug information. You can give more than
one flag to get more debug (e.g. -vvv).
So by command:rfm12pigw -vv -d /dev/ttyAMA0 -a 127.0.0.1 -p 9997 -i “4b 200g”
gateway initialise rfm12pi to 433MHz and 200 group address, and sent all received packets to 127.0.0.1 UDP port 9997.
Be sure, that AMA0 device is not used e.g. by getty (see /etc/inittab).
Which kind of sounds quite straightforward, but I guess it’s not that easy?! It sounds like it needs to be run on the Pi hosting the OEM???
And I also found this bit in the emonhub.conf detailing ‘reporters’:
> # This reporter sends data to emonCMS
>
> [[emonCMS]]
>
> Type = EmonHubEmoncmsReporter
>
> [[[init_settings]]]
>
> [[[runtimesettings]]]
>
> # url = http://localhost/emoncms #(defaults to emoncms.org)
> apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Maybe you can add another reporter in there too? To send to the openHAB Pi? Anyone tried it? Dunno.
Bit worried now!