Http cache images from grafana

  • Platform information:
    • Hardware: RPI3
    • OS: openhabian

loading grafana rendered graphs in BasicUI or the Android app takes about 6-10 seconds just for the rendering. That seems to be normal.
Is it possible to cache those images, maybe using the http binding ? I tried but could not find an example on how to cache images and use them later in the UI.

If I use a http.conf configuration

temperaturesCache.url=http://192.168.1.52:3000/render/d-solo/Mpq0HyRRz/temperaturen?panelId=2&orgId=1&tab=display&from=now-2d&to=now&width=800&height=250&tz=UTC%2B02%3A00
temperaturesCache.updateInterval=60000

where would I find the cached image ?

Some people use a Rule with a cron trigger to pull down and save the image to the html folder periodically so the rendering time is spent in your Rules instead of your UIs. I don’t know the specifics of how they do it. I think they use executeCommandLine and wget or curl to pull down the image.