So I’ve been playing with my grafana renders. Got them working again after grafana upgrade, and they display. I did want to put a frame around them…or some way of titling the image. But that just seems to get me a Linkable widget should contain either only frames or none at all error.
Here is the sitemap:
Frame label="Technology" {
Group item=g_temperature {
Group item=g_temperature
Group item=g_temperature_average
Image label="Temperatures for controlling heating" refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=6&width=1000&height=850&tz=Pacific%2FAuckland"
Image refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=10&width=1000&height=850&tz=Pacific%2FAuckland"
//Frame {
// Webview height=10 url="https://internal.andc.nz/grafana/d-solo/000000011/temperatures-oh2?orgId=1&panelId=3"
//}
} //Group item=g_temperature
}
g_temperature is a master temperature group (and an avg item)
g_temperature_average is a sub group with the temps that control my heating.
As the error indicates, you can either have all frames or no frames. So put your Group lines into one Frame and your Image lines to another.
Text item=g_temperature {
Frame {
Group item=g_temperature
Group item=g_temperature_average
}
Frame {
Image label="Temperatures for controlling heating" refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=6&width=1000&height=850&tz=Pacific%2FAuckland"
Image refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=10&width=1000&height=850&tz=Pacific%2FAuckland"
}
}
Frame. Or put everything into one Frame.
Text item=g_temperature {
Frame {
Group item=g_temperature
Group item=g_temperature_average
Image label="Temperatures for controlling heating" refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=6&width=1000&height=850&tz=Pacific%2FAuckland"
Image refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=10&width=1000&height=850&tz=Pacific%2FAuckland"
}
}
Or don’t put anything into a Frame.
Text item=g_temperature {
Group item=g_temperature
Group item=g_temperature_average
Image label="Temperatures for controlling heating" refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=6&width=1000&height=850&tz=Pacific%2FAuckland"
Image refresh=60000 Webview url="https://internal.andc.nz/grafana/d-solo/000000006/temperatures?orgId=1&var-ginterval=15m&panelId=10&width=1000&height=850&tz=Pacific%2FAuckland"
}
Finally, notice I use Text instead of Group. It makes no sense to use Group in that context. It can’t expand because you’ve overridden the expansion with your own.
Having a Frame in a Frame generates a different error.
You can do:
Frame Technology
Temperatures
Frame
Master Temp group
Average Temp Group
Frame (or heading)
Graph 1
Frame (or heading)
Graph 2
Heating Controls
Heating stuff....
Frame House
House stuff.....
The problem is you have stuff under “Temperatures” that is in a Frame and some stuff that isn’t in a Frame. That isn’t allowed.
For the heading part you can supply an item or a label to the Frame element. but inside any context (i.e. { }) it either needs to be all Frames at that level or no Frames at that level.