Hi,
Probably someone has already made this but I couldn’t find it anywhere. With help from a awesome friend I have made a script that saves a grafana-panel to a jpg image. And with help of that jpg image I can display it on my control page.
First of all I install the Grafana/Influx plugin and make all settings for that plugin, make panels etc.
After that I add a API Key to get a authorization key.
Copy link, all text AFTER Authorization:
Then I go back to the grafana dashboard to choose which panel I want to view.
In top of the panel I press the little arrow and choose ”Share”
In the dialog box that opens I press the ”Direct link rendered image” button in the bottom left.
Copy that link as well. delete the from & to in the link or else you will have a static image.
then make a Action Group that executes a apple script:
do shell script "curl -o \”/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/image.jpg>” -H \"Authorization: <INSERT LINK FROM API>\” \"http://<INSERT GRAFANA LINK TO DIRECT LINK RENDERED IMAGE>\””
Of course you can change the path to the web server if you want to do another folder.
Make a schedule that automatically executes the action
After this you can add a refreshing URL in your control page, in my case:
http://user:password@127.0.0.1:8176/images/image.jpg
Hope you like it!
//Eric