Skip to content

fhnw-iot-4ia/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.
Create your personal copy by clicking this GitHub Classroom link.

a) Dashboard as a service, 15'

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

b) Glue code, 15'

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

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.

Submitting results

Tools

Git

On your computer

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

Wiki

Support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published