Contents

The M2M Industry Working Group is working on setting up a demonstrator of the technologies that are being developed under its umbrella.

It has been decided to go with the use case of a connected greenhouse, reporting its status (temperature, humidity, luminosity) and being controllable (turning artificial lighting on/off).

Purpose

Members of the M2M Industry Working Group or interested parties are invited to use the same setup for showcasing their commercial products based on the Eclipse M2M projects, and promoting the interoperability of their solutions.

For members of the IWG only, it will be possible to promote their solution on m2m.eclipse.org in the form of a small description and a link to their own website.

Suggestions of "commercial" scenarios

connect the Raspberry Pi based greenhouse to your commercial server product using MQTT or M3DA

promote an implementation of the greenhouse using your commercial embedded framework but connect it to the public m2m.eclipse.org broker (M3DA or MQTT)

Software

A new section on m2m.eclipse.org website will feature a Web UI displaying the live value coming from the greenhouse sensors as well as allow to send commands (switch light on/off). The live stream of a webcam pointed towards the greenhouse will also be included on this page.

REST API

The Raspberry Pi gateway bridging the greenhouse sensors to the Internet is running Mihini and communicating with m2m.eclipse.org using M3DA.
The gateway's deviceID is: RPI000000006f257df2
The Mihini application running on the gateway is managing a greenhouse asset that has a data tree node holding all the values related to the sensors, that is:

luminosity - an integer indicating the luminosity level in the greenhouse

Sending commands

You should do an HTTP POST on the http://m2m.eclipse.org/m3da/clients/RPI000000006f257df2/data URL, with a payload in the form of a JSON document indicating what values to update on the Mihini system. Since the Mihini application has registered callbacks on specific data paths, this is a way to execute commands, like e.g. closing the roof, by posting the following JSON document: