nguyenquanghai1993 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

Implement MQTT Persistence #398

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To allow MQTT to be used as a persistence strategy, a new 
org.openhab.persistence.mqtt bundle should be implemented.

It should be possible to configure the persistency output to text, CSV, JSON or 
XML.

The topic and message format could be made configurable in the cfg file, e.g.
mqtt-persistence.broker=<brokername>
mqtt-persistence.topic=/v2/feeds/${item}.csv
mqtt-persistence.payload=${state},${timestamp}

Xively could be used as example target for the messages.

Original issue reported on code.google.com by davy.van...@gmail.com on 13 Aug 2013 at 9:48

GoogleCodeExporter commented 8 years ago
Please assign to me :-)

Original comment by davy.van...@gmail.com on 13 Aug 2013 at 9:49

GoogleCodeExporter commented 8 years ago
no problem :-)

Appreciate your efforts!

Regards,

Thomas E.-E.

Original comment by teichsta on 13 Aug 2013 at 9:52

GoogleCodeExporter commented 8 years ago
I assume we will need a io.transport.mqtt bundle in the openHAB core, so that 
the libary can be shared between the binding and the persistence service, right?

Original comment by kai.openhab on 13 Aug 2013 at 9:54

GoogleCodeExporter commented 8 years ago
It will definitely need the io.transport.mqtt bundle, which is already 
available in my clone.  If the io.transport.mqtt bundle is included in the core 
distribution, then you should take into consideration that it requires Java 1.7 
to run due to it's dependency on Eclipse Paho.

Original comment by davy.van...@gmail.com on 13 Aug 2013 at 10:06

GoogleCodeExporter commented 8 years ago
ok, we agreed on Java 1.7 for the openHAB 1.3 release - so no problem here, but 
thanks for the info!

Original comment by kai.openhab on 13 Aug 2013 at 1:47

GoogleCodeExporter commented 8 years ago
I've added a new wiki page 
https://code.google.com/p/openhab/wiki/MQTTPersistence
and pushed the org.openhab.persistence.mqtt bundle to my clone.

Assigning to Thomas for review...

Original comment by davy.van...@gmail.com on 14 Aug 2013 at 7:46

GoogleCodeExporter commented 8 years ago
merged to default branch (see 
http://code.google.com/p/openhab/source/detail?r=94b1950a2ff473a3cb33e1279c58c4f
565fa13c1) - BIG thanks to Davy for this great contribution!

Original comment by teichsta on 25 Aug 2013 at 8:17