Remove "begin/end" from Sitemap Chart syntax (#2018)

They aren't supported in the Sitemap syntax: https://github.com/openhab/openhab-core/blob/main/bundles/org.openhab.core.model.sitemap/src/org/openhab/core/model/sitemap/Sitemap.xtext#L63-L71

Closes #503

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
pull/2021/head
mueller-ma 2023-03-06 00:28:16 +01:00 committed by GitHub
parent 799cbf1199
commit 73a2efc548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -495,8 +495,7 @@ Video url="https://demo.openhab.org/Hue.m4v"
```java
Chart [item=<itemname>] [icon="<iconname>"] [label="<labelname>"] [refresh=xxxx]
[period=xxxx] [service="<service>"] [begin=yyyyMMddHHmm] [end=yyyyMMddHHmm] [legend=true/false]
[forceasitem=true/false]
[period=xxxx] [service="<service>"] [legend=true/false] [forceasitem=true/false]
```
Adds a time-series chart object for the display of logged data.
@ -509,9 +508,6 @@ Adds a time-series chart object for the display of logged data.
- `period` is the scale of the time axis. Valid values are `h, 4h, 8h, 12h, D, 2D, 3D, W, 2W, M, 2M, 4M or Y`.
- `begin` / `end` sets the beginning and end of the time axis.
Valid values are in the format: `yyyyMMddHHmm` (`yyyy` = year, `MM` = month, `dd` = day, `HH` = hour (0-23), `mm` = minutes).
- `legend` is used to show or to hide the chart legend.
Valid values are `true` (always show the legend) and `false` (never show the legend).
If this parameter is not set, the legend is hidden if there is only one chart series.