Export HighCharts SVG from API

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
philchillbill
Posts: 400
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Export HighCharts SVG from API

Post by philchillbill »

Using the API and a request such as

Code: Select all

/json.htm?type=graph&sensor=temp&idx=IDX&range=day
you can get raw data for a temperature plot. Is there a way to export an actual graphics file (like a .svg or a .png) rather than raw data from the API? The UI does it when you click on the hamburger menu while viewing a plot so I'd suspect it can be done from the /json.htm interface too...
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
User avatar
waltervl
Posts: 6689
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Export HighCharts SVG from API

Post by waltervl »

I believe this has been asked before. As I remember:
As it is the client (your browser) that creates the PNG wile exporting it with the hamburger menu entry it seems not possible to execute this from a server API. It will need an Highcharts server to do this.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest