congard / weather-station-agh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WeatherStation

stability-wip

WIP: more detailed description will be added later.

Dependencies

After cloning, you need to execute the following command in order to download all the dependencies:

git submodule update --init --recursive

Configuration

The app will connect to your Wi-Fi network, so you should provide network's credentials by creating credentials.json file with the following content:

{
  "ssid": "<network name>",
  "passwd": "<password>"
}

Important

Most ESP32 board won't be able to connect to 5GHz network. So you should make sure you are connecting to the 2.4GHz network.

Building

First of all, change working directory to scripts:

cd scripts

Web UI

Make sure you have npm installed. Tested with npm 10.5.0.

  1. Make the script executable
    chmod +x www.sh
  2. Install dependencies
    ./www.sh init
  3. Build
    ./www.sh build
  4. And, finally, flash it to the board
    ./www.sh flash

Tip

You can perform all three actions at once:

./www.sh init build flash

Backend

  1. Make the script executable
    chmod +x ws.sh
  2. In order to run (i.e., build and monitor), execute
    ./ws.sh run

About

License:MIT License


Languages

Language:C++ 79.5%Language:TypeScript 13.2%Language:Shell 2.8%Language:HTML 1.8%Language:CMake 1.3%Language:Python 1.1%Language:C 0.4%