https://github.com/congard/weather-station-agh
https://github.com/congard/weather-station-agh
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/congard/weather-station-agh
- Owner: congard
- License: mit
- Created: 2024-04-05T14:56:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-31T17:29:20.000Z (over 1 year ago)
- Last Synced: 2024-06-02T01:27:25.880Z (over 1 year ago)
- Language: C++
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WeatherStation

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:```bash
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:```json
{
"ssid": "",
"passwd": ""
}
```> [!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`:
```bash
cd scripts
```### Web UI
Make sure you have `npm` installed. Tested with `npm 10.5.0`.
1. Make the script executable
```bash
chmod +x www.sh
```
2. Install dependencies
```bash
./www.sh init
```
3. Build
```bash
./www.sh build
```
4. And, finally, flash it to the board
```bash
./www.sh flash
```> [!TIP]
> You can perform all three actions at once:
> ```bash
> ./www.sh init build flash
> ```### Backend
1. Make the script executable
```bash
chmod +x ws.sh
```
2. In order to run (i.e., build and monitor), execute
```bash
./ws.sh run
```