Sunrise / sunset not updating

Posted on
Wed May 15, 2019 10:34 am
MartynD offline
Posts: 11
Joined: May 15, 2019
Location: North Yorkshire. UK.

Sunrise / sunset not updating

Hi
I have set sunrise and sunset in a control page along with day and date. Day and date are updated but sunrise and sunset stay the same times. If I reload the plugin it changes. How do I update sunrise sunset automatically like day and date do?

Martyn

Posted on
Thu May 16, 2019 7:23 am
howartp online
Posts: 3630
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Sunrise / sunset not updating

Erm...!
I think they should do but I’ll have a look.


Sent from my iPhone using Tapatalk Pro

Posted on
Thu May 16, 2019 3:01 pm
howartp online
Posts: 3630
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Sunrise / sunset not updating

Hi Martyn.

You're spot on - they're coded to only update when the device is enabled/disabled (or thus when the plugin is restarted)!

How nobody else has noticed this, I don't know.

Fix shortly.

Peter

Posted on
Thu May 16, 2019 3:30 pm
MartynD offline
Posts: 11
Joined: May 15, 2019
Location: North Yorkshire. UK.

Re: Sunrise / sunset not updating

Oops... No doubt fairly easy to sort. Thanks for looking into this.
Martyn

Posted on
Thu May 16, 2019 3:32 pm
howartp online
Posts: 3630
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Sunrise / sunset not updating

v1.0.12 on the plugin store.

Should update whenever the date changes (as I already logic for that coded) - in other words, it'll update sunrise/set at midnight every day.

Let me know how it goes.

Peter

Posted on
Fri May 17, 2019 1:46 pm
howartp online
Posts: 3630
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Sunrise / sunset not updating

You'll need 1.0.13 which i've just uploaded - there's a bug at midnight in 1.0.12

Peter

Posted on
Fri May 17, 2019 3:28 pm
MartynD offline
Posts: 11
Joined: May 15, 2019
Location: North Yorkshire. UK.

Re: Sunrise / sunset not updating

O.K. Will update and let you know how it goes. Just updated Indigo today, so plug-in was updated at the same time. I will update tomorrow.

Martyn

Posted on
Sun May 19, 2019 3:09 am
MartynD offline
Posts: 11
Joined: May 15, 2019
Location: North Yorkshire. UK.

Re: Sunrise / sunset not updating

Hi Peter

Seems to be working correctly now, just checked and its showing correct times, so it has sorted itself out overnight. Who knew .13 could be lucky?

Thanks for doing it quickly.

Martyn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest