Hello @noppes123!
At the moment I have more time and so I can spend more time for my openhab project.
Actually I try to use this code:
sitemap grafana_chart
label="grafana chart" {
Switch item=room1_chartSwitch
label="Select"
icon="sofa"
mappings=[1="week to date",
2="the day so far",
3="last 5 minutes"]
Webview icon="none"
url="http://192.168.178.38:3000/d-solo/BO_TuAgRz/room1?refresh=5s&from=now/w&to=now&orgId=1&panelId=2"
height=10
visibility=[room1_chartSwitch==1]
Webview icon="none"
url="http://192.168.178.38:3000/d-solo/BO_TuAgRz/room1?refresh=5s&from=now-5m&to=now&orgId=1&panelId=2"
height=10
visibility=[room1_chartSwitch==3,
room1_chartSwitch=="Uninitialized" ]
Webview icon="none"
url="http://192.168.178.38:3000/d-solo/BO_TuAgRz/room1?refresh=5s&from=now/d&to=now&orgId=1&panelId=2"
height=10
visibility=[room1_chartSwitch==2]
}
I add now in the url a refresh of 5s.
When I switch from one time range to a other I get the message “error parsing query: invalid duration” but after some seconds the message disappear (I don’t know why I get this error message ) and I see the grafana chart and is constantly updated.
In the debug mode (F12) of chrome I get regular message like this:
It is possible that is it do do with this:
When I change on my smartphone the time range on the browser I see simultaneous the same change on my browser of the pc. It is impratical.
It is possible to do the change seperatily?
Thank you for the support!!!