Sunrise / sunset not updating

Posted on
Wed May 15, 2019 10:34 am
MartynD offline
Posts: 32
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 offline
Posts: 4559
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 offline
Posts: 4559
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: 32
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 offline
Posts: 4559
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 offline
Posts: 4559
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: 32
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: 32
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

Posted on
Tue Mar 31, 2020 2:21 am
RPRobinson offline
Posts: 18
Joined: Dec 09, 2015
Location: Leeds, UK

Re: Sunrise / sunset not updating

Hi - For info - I also noticed that Sunrise/Sunset didn't automatically update after the recent daylight saving clock change (last Saturday) - however a restart of the plugin seems to re-align it.

Thanks
Richard

Posted on
Tue Mar 31, 2020 2:40 am
MartynD offline
Posts: 32
Joined: May 15, 2019
Location: North Yorkshire. UK.

Re: Sunrise / sunset not updating

Same here, though I had not noticed, but it was O.K last clock change in October.

Martyn

Posted on
Fri Apr 17, 2020 9:04 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Sunrise / sunset not updating

Just had a look at this.

Sunrise/sunset updates daily whenever the Mac's current date in DDMMYY doesn't equal the current plugin DateUK_DDMMYY state.

In other words, if you're not in the UK then it might not update sunrise/sunset until the following day depending what time it is and how far out from UK time you are.

Peter

Posted on
Fri Apr 17, 2020 10:24 am
MartynD offline
Posts: 32
Joined: May 15, 2019
Location: North Yorkshire. UK.

Re: Sunrise / sunset not updating

Hi Peter.
Sorry but it doesn't update as you suggest. I am in the U.K. (not fart from you as it turns out) I noticed the problem on Tuesday after the clock change on Sunday, a restart of the plugin sorted the issue.
Martyn

Posted on
Fri Apr 17, 2020 12:51 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Sunrise / sunset not updating

Hi Martyn

I'm in Keighley :-)

I've had another look and we're both correct.

The sunrise/sunset DOES update daily as I said.

Unfortunately the plugin only determines what timezone we're in once, at device startup, so even after the clocks changed it still thought we were in GMT until you restart the plugin. :oops:

v1.0.15 will be up shortly.

Peter

Posted on
Sat Apr 18, 2020 2:31 am
MartynD offline
Posts: 32
Joined: May 15, 2019
Location: North Yorkshire. UK.

Re: Sunrise / sunset not updating

Hi Peter.

I am near York.
Thanks for looking into the issue, it's not a problem in reality, I do not use the sunset option apart from information, it is just nice to have the system sunset and clock sunset on the same page so to speak.

Martyn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests