A Python app to monitor a RFM12b (or RF12) receiver and publish results from it
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README
TODO
mqtt-rfm12b.cfg.example
mqtt-rfm12b.default
mqtt-rfm12b.init
mqtt-rfm12b.py

README

SUMMARY
=======

A small python application that uses the serial port of a Jeelink or some other serially attached Arduino with a RFM12b module to recieve data from remote RFM12B units using the OpenEnergyMonitor/TinyTX protocol.
It will read a list of integers from the incoming data packet, split them into their individual components, divide by 100, and publish the results against the topic name, with the node ID as the last part of the topic.

ie, 2 integers from node 4, with data of 2108 and 3303 (temperature and supply voltage for example) will be published as

/foo/bar/4/1 21.08
/foo/bar/4/2 33.03

This payload structure is as used by TinyTX and OpenEnergyMonitor

INSTALL
=======

sudo apt-get install python-mosquitto git
sudo mkdir /etc/mqtt-rfm12b/
sudo git clone http://github.com/kylegordon/mqtt-rfm12b.git /usr/local/mqtt-rfm12b
sudo cp /usr/local/mqtt-rfm12b/mqtt-rfm12b.init /etc/init.d/mqtt-rfm12b
sudo update-rc.d mqtt-rfm12b defaults
sudo cp /usr/local/mqtt-rfm12b/mqtt-rfm12b.default /etc/default/mqtt-rfm12b
sudo cp /usr/local/mqtt-rfm12b/mqtt-rfm12b.cfg.example /etc/mqtt-rfm12b/mqtt-rfm12b.cfg
# Edit the above to suit
sudo /etc/init.d/mqtt-rfm12b start