Add logger call examples

This commit is contained in:
2022-09-14 20:00:37 +02:00
parent 12a0c3c752
commit 4de991164f

View File

@@ -34,3 +34,18 @@ In addition to all the runtime dependencies the following dependencies are requi
- A C++20 compatible compiler
- Nlohmann JSON, [website](https://github.com/nlohmann/json/tree/v3.11.2)
- cxxopts, [website](https://github.com/jarro2783/cxxopts/tree/v3.0.0)
## Examples
### Solar Logging
```bash
solar-logger --connection-string "/mnt/data0/log/solarpaneloutput.db" -u "http://192.168.2.26/home.cgi" --type Zeverlution
solar-logger --connection-string "/mnt/data0/log/solarpaneloutput.db" -u "http://192.168.2.84/production.json" --type Envoy
```
### Electricity Logging
```bash
electricity-logger -d /dev/ttyUSB0 --connection-string /home/pi/logs/electricity.logs
```