Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddland/masterclass-dashboards
Scripts and some background information for the Masterclass Dashboards given during the Data-Driven Duurzaam in Manufactoring meeting at The Hague University of Applied Sciences [20240228]
https://github.com/ddland/masterclass-dashboards
Last synced: 5 days ago
JSON representation
Scripts and some background information for the Masterclass Dashboards given during the Data-Driven Duurzaam in Manufactoring meeting at The Hague University of Applied Sciences [20240228]
- Host: GitHub
- URL: https://github.com/ddland/masterclass-dashboards
- Owner: ddland
- License: gpl-3.0
- Created: 2024-02-14T10:01:18.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-28T14:16:31.000Z (9 months ago)
- Last Synced: 2024-02-28T15:34:35.265Z (9 months ago)
- Language: Python
- Homepage: https://www.hhs.nl
- Size: 3.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MasterClass-Dashboards
Scripts and some background information for the Masterclass Dashboards held during the Data-Driven Duurzaam in Manufacturing meeting [20240228]The presentation, with some extra slides which give some hints about making a dashboard is here also [available](dashboard.pdf).
## circuitpython
Code running on the [picopi](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html). All the files in this folder are already present on the device. At the school nothing has to be done.If you want to run the device on another network, change the `settings.toml` file (a normal text file, editable by [notepad++](https://notepad-plus-plus.org/) or any other text-editor), specifically:
* `WIFI_SSID`
* `WIFI_PASSWORD`
The other settings can be changed if you move to another MQTT-broker.If you want to do something completely different with the device, [Pico Projects](https://projects.raspberrypi.org/en/projects/get-started-pico-w) is a nice place to start.
### Dependencies
The code relies on the Adafruit Circuitpython MQTT library:
* [Adafruit miniMQTT](https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT)## Dashboard
Running the dashboard in the cloud, with only a dependency on [HiveMQ](https://hivemq.com) makes it impossible to store data or look back at certain time intervals. There is no data storage, only a stream of data from the sensor to the Grafana dashboard.If you want to store the data a database setup is required. One option is [influxdb](https://influxdata.com). They provide a cloud-version (paid), but also a open-source version which can be configured using [Docker](https://docker.io) containers. There are many guides on the internet on configuring a MQTT broker, database and visualization program on a (home)server. For example [MQTT - Influx - Grafana](https://wirelessthings.io/index.php/2023/01/31/telegraf-influxdb-grafana-with-docker-compose/).
For this demonstration project the configuration of docker and setting up the servers is too advanced.