Add logger call examples
This commit is contained in:
15
README.md
15
README.md
@@ -34,3 +34,18 @@ In addition to all the runtime dependencies the following dependencies are requi
|
|||||||
- A C++20 compatible compiler
|
- A C++20 compatible compiler
|
||||||
- Nlohmann JSON, [website](https://github.com/nlohmann/json/tree/v3.11.2)
|
- Nlohmann JSON, [website](https://github.com/nlohmann/json/tree/v3.11.2)
|
||||||
- cxxopts, [website](https://github.com/jarro2783/cxxopts/tree/v3.0.0)
|
- 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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user