Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jetsup/dammonitor
Publish sensor data to a HTTP server
https://github.com/jetsup/dammonitor
client-server esp32 platformio vscode
Last synced: about 2 months ago
JSON representation
Publish sensor data to a HTTP server
- Host: GitHub
- URL: https://github.com/jetsup/dammonitor
- Owner: jetsup
- Created: 2024-06-23T01:06:11.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-06-25T09:25:23.000Z (7 months ago)
- Last Synced: 2024-10-16T11:33:16.934Z (4 months ago)
- Topics: client-server, esp32, platformio, vscode
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DamMonitor
Arduino project to monitor the water level in a dam and send the data to a server.
## Setup
1. Install the [PlatformIO](https://platformio.org/) extension for Visual Studio Code.
2. Open the project folder in Visual Studio Code.
3. Copy the [credentials.example.hpp](include/credentials.example.hpp) files and rename it to [credentials.hpp](include/credentials.hpp).
4. Set your credentials and specify your configurations in the [credentials.hpp](include/credentials.hpp) and [config.hpp](include/config.hpp) files respectively.
5. Build the project.
* Press `F1` to open the command palette and type `PlatformIO: Build`.
6. Upload the code to the board.
* Press `F1` to open the command palette and type `PlatformIO: Upload`.## Testing server communication
You can test the code by running the [server.py](server.py) script. It will log the data sent by the board to the console if your address in the [config.hpp](include/config.hpp) file is set to either `localhost` or `IP address` of the machine running the script.
## Tested boards
* [ESP32](https://www.espressif.com/en/products/socs/esp32)