jetsup / DamMonitor

Publish sensor data to a HTTP server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DamMonitor

Arduino project to monitor the water level in a dam and send the data to a server.

Setup

  1. Install the PlatformIO extension for Visual Studio Code.
  2. Open the project folder in Visual Studio Code.
  3. Copy the credentials.example.hpp files and rename it to credentials.hpp.
  4. Set your credentials and specify your configurations in the credentials.hpp and 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 script. It will log the data sent by the board to the console if your address in the config.hpp file is set to either localhost or IP address of the machine running the script.

Tested boards

About

Publish sensor data to a HTTP server


Languages

Language:C++ 93.2%Language:Python 6.8%