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.
- 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.
- 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.
- 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.