Skip to content

tamberg/fhnw-iot-work-09

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

IoT Engineering

Hands-on of lesson 9

For slides and example code, see lesson 9

Note: Do not work on this repository right away.
Check existing forks to find the specific repository for your class.

a) Dashboard as a service, 15'

  • Choose a dashboard service and a transport protocol, try ThingSpeak, Cayenne or ThingsBoard.io.
  • Check the API docs to understand the payload format.
  • Send data "as a device" with curl or with the mqtt CLI.
  • The CLI runs on the Raspberry Pi or on your laptop.

b) Glue code, 15'

  • Configure the TTN to ThingSpeak adapter glue code.
  • Create a free account and host the code on Zeit Now.
  • Use curl to simulate calls from the TTN backend:
    $ curl -v http://127.0.0.1:8080/ --data '{"app_id":"fhnw-iot","dev_id":"fhnw-iot-arduino-1","payload_raw": "FwAqAA=="}' # Base64
  • Replace 127.0.0.1:8080 with your Zeit Now URL.

c) Docker hosted dashboard, 15'

  • Install Docker on your computer (not Raspberry Pi).
  • Run InfluxDB and run/create a Grafana dashboard.
  • Run Telegraf to get data from test.mosquitto.org.
  • Send data "as a device" with mqtt, to Mosquitto.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published