An Open-Source prototype for collecting, working with and displaying sensor data from MQTT enabled IoT devices. https://wiki.curious.bio/de/Projekte/IoT-Plattform
Find a file
2023-02-23 16:57:17 +01:00
.reuse first commit 2023-01-25 12:21:02 +01:00
docs more documentation 2023-02-17 16:19:51 +01:00
hardware first commit 2023-01-25 12:21:02 +01:00
LICENSES first commit 2023-01-25 12:21:02 +01:00
nix added a nixos configuration to build and deploy the gateway 2023-02-20 23:03:41 +01:00
software screenshot of token 2023-02-23 16:57:17 +01:00
.dockerignore first commit 2023-01-25 12:21:02 +01:00
.editorconfig updated dev env 2023-02-07 16:55:21 +01:00
.envrc added a nixos configuration to build and deploy the gateway 2023-02-20 23:03:41 +01:00
.gitignore gitignore 2023-02-18 17:20:13 +01:00
flake.lock added a nixos configuration to build and deploy the gateway 2023-02-20 23:03:41 +01:00
flake.nix added a nixos configuration to build and deploy the gateway 2023-02-20 23:03:41 +01:00
mkdocs.yml updated dev env 2023-02-07 16:55:21 +01:00
okh.toml first commit 2023-01-25 12:21:02 +01:00
README.md influx data exploration 2023-02-23 16:50:38 +01:00

IoT Platform

Docker

First install DockerDesktop and docker-compose:

Then you can export a path to mount as a volume and spin up the containers:

export DATA_DIR = /some/path/to/mount
docker-compose --file software/container/docker-compose.yml up

Mosquitto

mosquitto_sub -h localhost -t '#' -p 1883
mosquitto_pub -h localhost -p 1883 -t '/' -m $(date --utc +%s)

Grafana

You can login to Grafana: http://localhost:3000/login (admin:admin)

Node-RED

NodeRed is running here: http://localhost:1880/

A simple introduction to Node-RED can be found - along with the nodes / the code - in this repository, please have a look!

Hardware

We are using HelTec Automation Wirelsess Sticks ESP32 Dev-Boards.

PinOut

The PinOut of our version 3 modules can be found here: https://docs.heltec.org/en/node/esp32/dev-board/hardware_update_log.html#wifi-lora-32-hardware-update-logs

PinOut

License

For some parts of the Heltec board you need a "license".

USB-C

Our HelTec Automation Wirelsess Sticks ESP32 Dev-Boards already have USB-C. But they do not support Power Deliver (PD). If your computer tries to do PD, just plug a cheap USB hub between the board and your computer.

Arduino IDE

HelTecs GitHub repo can be found here: https://github.com/HelTecAutomation/Heltec_ESP32

I had to install VCP Drivers, first: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads

You can add their Board Manager to the boards managers URLs: https://github.com/HelTecAutomation/Heltec_ESP32/blob/master/library.json and find their libraries in the IDE (Sketch -> Include Library -> Manage Libraries... Search for "heltec esp32").

These boards are already V3 boards, so be careful selecting the right board and port (VCP).

Arduino IDE

Install esptool

Esptool is a Pyhton program to flash ESP32. As it's a Pyhton tool you can install it using pip:

pip install esptool

Find the port

Usually you can find the used port using esptool.py:

esptool.py write_flash_status --non-volatile 0

Using MicroPython

Download the firmware: https://micropython.org/download/

Flash it using esptool: https://micropython.org/download/GENERIC_S3/

esptool.py --chip esp32s3  write_flash -z 0  ~/Desktop/GENERIC_S3-20220117-v1.18.bin

Hardware sensors