Page 1 of 1

Sunrise block does not show any data anymore

Posted: Monday 04 March 2024 17:11
by jvdk
The sunrise block no longer shows any data:
Sunrise.jpg
Sunrise.jpg (13.11 KiB) Viewed 2184 times
Only the icons are shown.

I tried the 3.12.0 master and the beta. Both do not show the sunrise data.

I found an old V 3.10.0.1 version on my Raspberry. In that version it still works:
v 3.10.01.jpg
v 3.10.01.jpg (16.63 KiB) Viewed 2184 times
I saw that something has changes in the V3.12.0 regarding sunrise. Has something went wrong?

Re: Sunrise block does not show any data anymore

Posted: Monday 04 March 2024 20:43
by Lokonli
It's still working on my system...

Can you share your block definition for the sunrise block?

Also please share your custom.js and custom.css if you are using that.

Maybe something else is giving an error.
Can you open DevTools in Chrome by pressing F12, and refresh Dashticz.
Do you see errors in DevTools -> console tab?

Re: Sunrise block does not show any data anymore

Posted: Wednesday 06 March 2024 19:21
by jvdk
I just defined the block 'sunrise' in: columns[3]['blocks'] = ['sunrise','18','elecJaarVerbruik','Stroomnet','ElecUseNow2','ElecNetUseToday','elecTotalYear']

I attached custom.js and custom.css. I renamed custom.css to custumcss.txt to be able to upload it. A .css cannot be uploaded I just discovered.

In the console tab I see many errors. I did not find a way to export the console readings, so I attached screen grabs of the console.

The number of attachments is limited to 3. I will attach the other console grabs to a separate post.

Re: Sunrise block does not show any data anymore

Posted: Wednesday 06 March 2024 19:29
by jvdk
In V3.10.0.1 the console reads:
Console 3.10.0.1.png
Console 3.10.0.1.png (289.44 KiB) Viewed 2142 times

Re: Sunrise block does not show any data anymore

Posted: Wednesday 06 March 2024 19:35
by jvdk
The other console grabs in Dashticz 3.12.
console_grab1.png
console_grab1.png (377.02 KiB) Viewed 2140 times
console_grab2.png
console_grab2.png (180.36 KiB) Viewed 2140 times

Re: Sunrise block does not show any data anymore

Posted: Wednesday 06 March 2024 20:21
by Lokonli
Thanks.

Probably the cause of the problem is that you try to create a dial for device 1191 and 1193, which do not exist in Domoticz. (or not in the room plan if you make use of that).

Can you check this?

I'll make the error handling in Dashticz more robust for this in a next version.

Re: Sunrise block does not show any data anymore

Posted: Wednesday 06 March 2024 20:25
by Lokonli
jvdk wrote: Wednesday 06 March 2024 19:29 In V3.10.0.1 the console reads:
Console 3.10.0.1.png
The 'requestFullScreen' error comes from your custom.js:
A javascript program is not allowed to maximize the screen, unless this is initiated by a user gesture. I cannot change that.

Re: Sunrise block does not show any data anymore

Posted: Wednesday 06 March 2024 20:30
by Lokonli
jvdk wrote: Wednesday 06 March 2024 19:21 I just defined the block 'sunrise' in: columns[3]['blocks'] = ['sunrise','18','elecJaarVerbruik','Stroomnet','ElecUseNow2','ElecNetUseToday','elecTotalYear']

I attached custom.js and custom.css. I renamed custom.css to custumcss.txt to be able to upload it. A .css cannot be uploaded I just discovered.

In the console tab I see many errors. I did not find a way to export the console readings, so I attached screen grabs of the console.

The number of attachments is limited to 3. I will attach the other console grabs to a separate post.
I also see quite some svg errors. Probably they are caused by an embedded iFrame, or by a plugin: The file content.js doesn't belong to Dashticz.

Re: Sunrise block does not show any data anymore

Posted: Thursday 07 March 2024 15:26
by jvdk
SOLVED! It to me a long time to figure out what was causing the problem. Devices 1191 and 1193 were the root cause. They have to do with the air conditioner. For some reason I disabled the airco hardware in Domoticz. I did not notice because the airco has been disconnected from the mains during winter. As a result of disabling the hardware in Domoticz the speed and temperature dial gave errors in Dashticz.

I will investigate the other problems.

This post can be closed.

Thanks for the support Lokonli!

Re: Sunrise block does not show any data anymore

Posted: Thursday 07 March 2024 15:53
by jvdk
Lokonli wrote: Wednesday 06 March 2024 20:25
jvdk wrote: Wednesday 06 March 2024 19:29 In V3.10.0.1 the console reads:
Console 3.10.0.1.png
The 'requestFullScreen' error comes from your custom.js:
A javascript program is not allowed to maximize the screen, unless this is initiated by a user gesture. I cannot change that.
Removed it from custom.js. OK now.

Re: Sunrise block does not show any data anymore

Posted: Thursday 07 March 2024 16:16
by jvdk
Lokonli wrote: Wednesday 06 March 2024 20:30
jvdk wrote: Wednesday 06 March 2024 19:21 I just defined the block 'sunrise' in: columns[3]['blocks'] = ['sunrise','18','elecJaarVerbruik','Stroomnet','ElecUseNow2','ElecNetUseToday','elecTotalYear']

I attached custom.js and custom.css. I renamed custom.css to custumcss.txt to be able to upload it. A .css cannot be uploaded I just discovered.

In the console tab I see many errors. I did not find a way to export the console readings, so I attached screen grabs of the console.

The number of attachments is limited to 3. I will attach the other console grabs to a separate post.
I also see quite some svg errors. Probably they are caused by an embedded iFrame, or by a plugin: The file content.js doesn't belong to Dashticz.
The svg errors were caused by a "Microsoft Editor Spelling and Grammar" browser extension.