-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed stateOfCapacity to stateOfCharge, added docs page
- Loading branch information
Showing
8 changed files
with
58 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# ioBroker SUN2000 Documentation | ||
|
||
* [Configuration](./configuration.md) | ||
* [Migration of historical data](./migration.md) | ||
|
||
WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Configuration | ||
|
||
![Admin config](./images/admin-config.png) | ||
|
||
1. Inverter IP address | ||
(IP of the Dongle connected to the inverter) | ||
2. Modbus Port | ||
3. Modbus UnitID | ||
4. Faster update interval in seconds | ||
5. Slower update interval in seconds | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Migration of historical data (on state name change) | ||
|
||
## InfluxDB | ||
|
||
1. Stop Adapter | ||
2. Copy the measurement to new one. (`stateOfCapacity` -> `stateOfCharge`)\ | ||
https://www.laub-home.de/wiki/InfluxDB_2_Measurements_umbenennen (DE) | ||
* Open InfluxDB 2 web interface (`http://<INFLUXDB2>:8086`) | ||
* On 'DataExplorer' tab click on 'Script Editor' | ||
* Replace `old`, `new` and the bucket name with your values. | ||
``` | ||
from(bucket: "example-bucket") | ||
|> range(start: 2021-11-21T00:00:00Z, stop: 2021-11-22T00:00:00Z) | ||
|> filter(fn: (r) => r._measurement == "old") | ||
|> set(key: "_measurement", value: "new") | ||
|> to(bucket: "example-bucket") | ||
``` | ||
3. Delete the old one (`stateOfCapacity`) | ||
```shell | ||
# InfluxDB Host | ||
INFLUXHOST=localhost | ||
# openHAB Database | ||
INFLUXDB=openhab_db | ||
# InflusDB API Key | ||
INFLUXDBAUTH="TkrV8yQ8adcwwwwedsiuhf5V1OhXasdfadfeGgtzsb_bfucYeHSeTID-JlB7AKBZjE47TCwf8w-jGCFzpChw==" | ||
# Measurement to delete | ||
MEASUREMENT="LaubIot07BME680_Temperature" | ||
|
||
curl -s --get http://$INFLUXHOST:8086/query?db=$INFLUXDB \ | ||
--header "Authorization: Token $INFLUXDBAUTH" \ | ||
--data-urlencode "q=DROP MEASUREMENT $MEASUREMENT" | ||
``` | ||
4. Install new adapter. Write to new state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters