Skip to content
Newer
Older
100644 33 lines (23 sloc) 1.5 KB
b32147c @kylegordon install instructions
authored
1 SUMMARY
2 =======
3
44ccf80 @kylegordon A quick description
authored
4 A quick python script to accept incoming MQTT payloads under the topic of /raw/, and look them up in a table for republishing under a logical topic name
2fa6925 @kylegordon Some ideas
authored
5
2c40586 @kylegordon Tidy up
authored
6 It stems from a suggestion by Robert at http://blog.hekkers.net/2012/09/18/mqtt-about-dumb-sensors-topics-and-clean-code/ to try and organize disparate sources into one logical hierarchy.
2fa6925 @kylegordon Some ideas
authored
7
2c40586 @kylegordon Tidy up
authored
8 Anything that is published under /raw/ but does not match anything in the map gets republished with /unknown/ prepended to the topic.
4904d74 @kylegordon Added mobile suggestion
authored
9
89790c8 @kylegordon Added some source and destination data
authored
10 Some examples of source data I have...
11
5aa8dee @kylegordon Fixed typo with examples and csv
authored
12 /raw/flat.vpn.glasgownet.com/ups/voltage -> /bishopbriggs/gordonhouse/electricity/voltage
13 /raw/flat.vpn.glasgownet.com/meterpulsecounter/watts -> /bishopbriggs/gordonhouse/electricity/watts
14 /raw/weather1.vpn.glasgownet.com/weather/outside_temp -> /milngavie/parentshouse/garden/temperature
15 /raw/weather1.vpn.glasgownet.com/weather/inside_temp -> /milngavie/parentshouse/sunlounge/temperature
4904d74 @kylegordon Added mobile suggestion
authored
16 /raw/wmlp1000/apci/core_temp -> /mobile/wmlp1000/cpu_temp
b32147c @kylegordon install instructions
authored
17
18 INSTALL
19 =======
20
21 mkdir /usr/local/mqtt-republisher/ /etc/mqtt-republisher/
1245027 @kylegordon Fixed path before clone
authored
22 cd /usr/local/
0b6da1e @kylegordon Included the git clone as part of the README
authored
23 git clone git://github.com/kylegordon/mqtt-republisher.git
8e2e439 @kylegordon Fixed two paths
authored
24 cp mqtt-republisher.init /etc/init.d/mqtt-republisher
b32147c @kylegordon install instructions
authored
25 cp map.csv /etc/mqtt-republisher/
80e51d1 @kylegordon Updated to include sample config
authored
26 cp mqtt-republisher.cfg.example /etc/mqtt-republisher/mqtt-republisher.cfg
b32147c @kylegordon install instructions
authored
27 update-rc.d mqtt-republisher defaults
8e2e439 @kylegordon Fixed two paths
authored
28 cp mqtt-republisher.default /etc/default/mqtt-republisher
b32147c @kylegordon install instructions
authored
29
80e51d1 @kylegordon Updated to include sample config
authored
30 Edit /etc/mqtt-republisher/map.csv and /etc/mqtt-republisher/mqtt-republisher.cfg to suit, and then
b32147c @kylegordon install instructions
authored
31
32 /etc/init.d/mqtt-republisher start
Something went wrong with that request. Please try again.