Sunrise block does not show any data anymore

Moderator: leecollings

Post Reply
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Sunrise block does not show any data anymore

Post by jvdk »

The sunrise block no longer shows any data:
Sunrise.jpg
Sunrise.jpg (13.11 KiB) Viewed 1809 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 1809 times
I saw that something has changes in the V3.12.0 regarding sunrise. Has something went wrong?
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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?
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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.
Attachments
console_grab3.png
console_grab3.png (201.35 KiB) Viewed 1768 times
customcss.txt
(2.58 KiB) Downloaded 37 times
custom.js
(6.06 KiB) Downloaded 49 times
Last edited by jvdk on Wednesday 06 March 2024 19:33, edited 1 time in total.
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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 1767 times
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post by jvdk »

The other console grabs in Dashticz 3.12.
console_grab1.png
console_grab1.png (377.02 KiB) Viewed 1765 times
console_grab2.png
console_grab2.png (180.36 KiB) Viewed 1765 times
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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.
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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.
Lokonli
Posts: 2271
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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.
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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!
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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.
jvdk
Posts: 32
Joined: Sunday 11 August 2019 17:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sunrise block does not show any data anymore

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests