For slides and example code, see lesson 9
Note: Do not work on this repository right away.
Create your personal copy by clicking this GitHub Classroom link.
- Choose a dashboard service and a transport protocol.
- 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 & run the above TTN/ThingSpeak glue code.
- Host the code on the Raspberry Pi and 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.
- Commit and push local changes to your repository.
- Want a review? Create an issue, mention me (@tamberg).
On your computer
- In the hands-on repository fork for your class, in README.md, click the GitHub Classroom link.
- Once you accept the assessment, you get a personal, private repository URL for your USER_NAME:
http://github.com/fhnw-iot-CLASS/fhnw-iot-work-09-USER_NAME
On your computer or Raspberry Pi
- Clone the repository
$ cd ~ $ git clone REPO_URL
- Add a file
$ git add FILE
- Commit changes
$ git commit FILE -m "Fixed all bugs"
- Push changes
$ git push