smart-energy-monitor/README.md

45 lines
1.2 KiB
Markdown
Raw Normal View History

2023-02-07 16:55:21 +01:00
# IoT Platform
## Docker
First install DockerDesktop and `docker-compose`:
* https://www.docker.com/products/docker-desktop/
* https://docs.docker.com/compose/install/
Then you can export a path to mount as a volume and spin up the containers:
2023-02-07 16:55:21 +01:00
```sh
export DATA_DIR = /some/path/to/mount
2023-02-07 16:55:21 +01:00
docker-compose --file software/container/docker-compose.yml up
```
### Grafana
You can login to Grafana: http://localhost:3000/login (admin:admin)
### NodeRed
NodeRed is running here: http://localhost:1880/
## Hardware
### Arduino IDE
We are using HelTec Automation Wirelsess Sticks ESP32 Dev-Boards. Their GitHub repo can be found here: https://github.com/HelTecAutomation/Heltec_ESP32
2023-02-13 19:28:29 +01:00
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").
### Find the port
Usually you can find the used port using `esptool.py`, but that's not working for me, atm (continue here)....
```sh
esptool.py write_flash_status --non-volatile 0
```
2023-02-13 18:45:43 +01:00