Blog

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We will assume that your room ambience data is being published to Mosquitto MQTT broker at tcp://linksmart-dev.fit.fraunhofer.de<broker_address>:1883.

1) Set up Service Catalog

...

Info
titleHint fow Windows 7 users

If you use Docker Toolbox with Windows 7 you may run into trouble running LevelDB as a backend for Service Catalog. In this case, you can work without mounting a volume and set up Service Catalog storing its data in memory using the following environment variables:

  • SC_STORAGE_TYPE=memory

  • SC_MQTT_CLIENT_BROKERID=main_broker

  • SC_MQTT_CLIENT_BROKERURI=tcp://linksmart-dev.fit.fraunhofer.de<broker_address>:1883

2) Set up Data Processing Agent

...

Code Block
{
    "name": "send_temperature",
    "statement": "select e[0].v as temperature from SenML(bn=\"linksmart-black/\")",
    "CEHandler": "eu.linksmart.services.event.handler.TextEmailEventHandler",
    "output": [
        "jannis.warnat@fit.fraunhofer.de<your_mail_address>"
    ],
    "scope": [
        "server=smtp.gmail.com,port=587,user=linksmart.notifications@gmail.com,password=<super_secret>,from=linksmart.notifications@gmail.com,security=StartTls"
    ]
}

...