Skip to content

Commit 7dcf6fe

Browse files
committed
Readme: Add note about data rebuild
1 parent f846653 commit 7dcf6fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ This enables SOLECTRUS to accurately calculate the electricity usage and costs f
3232

3333
The Docker image supports multiple platforms: `linux/amd64`, `linux/arm64`
3434

35+
36+
To force a data rebuild, you can delete the measurement from the InfluxDB database:
37+
38+
```bash
39+
influx delete --bucket ${INFLUX_BUCKET} --start '1970-01-01T00:00:00Z' --stop $(date -u +"%Y-%m-%dT%H:%M:%SZ") --predicate '_measurement="power_splitter"' --org ${INFLUX_ORG} --token ${INFLUX_TOKEN}
40+
```
41+
3542
## Development
3643

3744
For development you need a recent Ruby setup. On a Mac, I recommend [rbenv](https://github.com/rbenv/rbenv).

0 commit comments

Comments
 (0)