Hi, Folks may wish to check out the new experimental mqtt plugin I am developing for OpenNMS. The use case for this is to turn OpenNMS into a viable IoT platform which can work with hundreds of IoT modules such as eclipse Kura running on raspberry pi's.
You can see a video explanation of the target project use case which measures air pollution here; https://youtu.be/5Eg_mNIkrgo The code is currently available on github here https://github.com/gallenc/tmforumhack2017/tree/master/TMForumVancouver2017Hack/opennms/MqttClient This plugin allows mqtt messages containing json received from a mqtt broker to be parsed using a jxpath configuration and handled as events or as measurement data. The code handles any json message format and example message configurations are provided in the junit tests for the Kura message format as described here https://github.com/eclipse/kapua/wiki/K-Payload-JSON-Format The plugin is packaged as a KAR which can be deployed in the OpenNMS deploy directory. The plugin should work with Meridian 2017 (based off OpenNMS 19) and later OpenNMS horizon instances. (Although unfortunately the module does need recompiled for the OpenNMS version you are using because all the OpenNMS OSGi interfaces reference the version number of the OpenNMS instance in which they run. This problem could be resolved in OpenNMS moved to a stable API numbering scheme which survived major releases :). ) The project does not currently use the new OpenNMS streaming measurement api as the project was started before the API was introduced. However migration to that API is entirely possible later. Comments and feedback welcome Craig Craig Gallen OpenNMS UK ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel