What's happening here, some error, but still getting grafana render

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.

But not a frame within a frame?

So I have the higher up frame for Technology (I also have Rooms, and House as frames). These give a nice label for the sections.

So I was kind of after:

Frame Technology
   Temperatures
       Master Temp group
       Average Temp Group
       Frame (or heading)
             Graph 1
       Frame (or heading)
             Graph 2
  Heating Controls
       Heating stuff....
Frame House
    House stuff.....

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.

Better. I think I under stood your “all in a frame or nothing in a frame” so the everything related to temps need to be in frames or none.

Still can’t work out those bad image icons, which appear right above the graph…but they don’t show on ios app.

Sitemap:

Frame label="Technology" {
		Text item=g_temperature {
			Frame label="Temperatures" {
				Group item=g_temperature
				Group item=g_temperature_average
			}
			Frame label="Central Heating" {
				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"
			}
			Frame label="House" {
				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"
			}
		}  //Group item=g_temperature

		Switch item=heating_powermode label="Central Heating" mappings=[ "On"="ON", "Off"="OFF", "Schedule"="SCHEDULE"]
		Group item=g_heating 
		{
			Text item=g_temperature_average
                }
}

about the bad image icon - did you have a look at one of the solutions in this thread?

That definitely should help

There was a bug reported about that awhile back that I though was fixed. I know I used to see them too but haven’t for some time.

Switch item=ChartVisibility mappings=[h=Hour,d=Day,w=Week,M=Month,y=Year]
Image url="http://argus:8080/static/temp.jpg" refresh=1000

Thanks, that was the solution for the weird not found graphic.

Add icon=none to the webview.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.