Export of graphics Error Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
Toulon7559
Posts: 859
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Export of graphics Error

Post by Toulon7559 »

Never a problem in the past, last 4 weeks did not use Domoticz, and now suddenly stumbling on this message when trying to get export from Domoticz of graphs in jpeg-format or png-format
.
Sorry, you have been blocked
Your are unable to access export.highcharts.com
Why have I been blocked?

Most likely your request lack the required HTTP referer and user-agent headers. Also, chart configurations that fail to render properly, excessive requests ("hammering") and similar will result in progressively longer periods of blocking.
What can I do to resolve this?

First of all check your headers, and also read our Fair Usage Policy to make sure your usage is not significantly above expected levels. Blocking is based on your IP, which may be shared, so blocking might not be caused by your actions.
.
Any explanation why this now happens, and how to remedy?
Because unclear to me what is meant in 2nd and 3rd section, because I rarely ask for export of graphs.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
waltervl
Posts: 5980
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Export of graphics

Post by waltervl »

I have the same issue I just noticed.
So it is not you only. Highcharts.com library is used to create the graphs. It seems they have an issue or more likely got more strict lately on how to adress their servers.

I move it to section bugs because perhaps something has to be changed on Domoticz side.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5980
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Export of graphics Error

Post by waltervl »

So it seems highcharts has changed its policy recently and Domoticz is apparently not complying... https://www.highcharts.com/forum/viewtopic.php?t=52902


Edit: I created an issue for this https://github.com/domoticz/domoticz/issues/6188
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Toulon7559
Posts: 859
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Export of graphics Error

Post by Toulon7559 »

There seems to be something different than just a change of policy by Google.....

Graphics appear 'undisturbed' ( in my opinion meaning that Highcharts still applied for the compilations),
but only export seems to be affected by the changes at Google.

For myself pragmatically solved by application of Nimbus for screenshot.
Might imply that for Domoticz the issue might be solved by application of a different excport-function.
Last edited by Toulon7559 on Friday 08 November 2024 23:24, edited 2 times in total.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
waltervl
Posts: 5980
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Export of graphics Error

Post by waltervl »

Toulon7559 wrote: Friday 08 November 2024 12:58 There seems to be something different than just a change of policy by Google .....

Graphics appear 'undisturbed' ( in opinion meaning that Highcharts still applied for the compilations),
but only export seems to be affected by the changes at Google.

For myself pragmatically solved by application of Nimbus for screenshot.
Might imply that for Domoticz the issue might be solved by application of a different excport-function.
This is NOT a policy change of Google but a policy change of Highcharts. Domoticz is using their servers to create the PNG/JPG file. And Highcharts is now limiting the access to their servers to prevent overload.
Highcharts also delivers a function to create the PNG/JPG file of the graph by a script on your domoticz server (without using the Highcharts servers) but that seems difficult to implement.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Toulon7559
Posts: 859
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Export of graphics Error

Post by Toulon7559 »

You are right:
sorry to have mixed up Google and Highcharts ........

With my latest message only intended to tell that in Domoticz the generation of the graphs is still OK for viewing in Domoticz,
but that 'problem' seems to be export of the graph, which can be 'escaped' by application of screenshot on the view.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
User avatar
waltervl
Posts: 5980
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Export of graphics Error

Post by waltervl »

The issue has been "solved" by removing the export function from the charts menu as it was too complicated to implement the local export Highcharts function. Workaround is to take a screenshot from your local system.
https://github.com/domoticz/domoticz/issues/6188
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2577
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Export of graphics Error

Post by gizmocuz »

After updating Highcharts to 12.1, the export seems to be working again!

(Available in beta 16495)

I also added a 'Today' zoomlevel in the day charts and changed the default dark theme here
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: boum and 1 guest