We use two submodules, to load them if the repo has already been cloned:
git submodule update --init
.
├── balena-containers <- Balena Project
│ ├── backend
│ ├── docker-compose.yml <- Main docker-compose.yml
│ ├── mosquitto
│ ├── mysql
│ ├── mysql-data
│ ├── raspberrypirfid
│ └── update-server
├── beverage-backend-spring <- Backend Submodule
├── blog <- Dir containing posts that are on Github
│ └── iot-blog-posts-mulc
├── esp-code <- Code for the esp8622 microcontroller
│ ├── barhardware
│ └── bierdeckel
├── README.md
└── tools <- Dir for potential tools
└── keys
- Register in Balena.io
- Download Image for Raspberry PI 4B and install it to SD Card using Balena Etcher
- Download ESP8266_Code.cpp and
- Set Wifi SSID and Password
- Flash it onto ESP8266 using Arduino IDE
- Check with predefined weight if values are realistic
- Clone the repository to local file
- Start with Eclipse oder gradle bootRun
- You need to have MySQL and a MQTT-Server running
- In the final product: The backend, mqtt server and the database are installed on the raspberry pi using balena cloud
see https://www.iot-embedded.de/iot-2021/category/beverage-monitoring/