cloudy cloudy

Author Topic: %hoursofpossibledaylight% tag not updating for me  (Read 740 times)

0 Members and 1 Guest are viewing this topic.

Offline mfd38

  • Posts: 1,211
  • Massachusetts
  • OS/Browser:
  • Mac OS X 10.11.6
  • Safari 11.0.2
    • Medfield, MA Weather
%hoursofpossibledaylight% tag not updating for me
« on: January 11, 2018, 09:36:19 PM »
Hi Brian,

Recently upgraded to build 296 and noticed the $hoursofpossibledaylight tag is not updating. I have checked all the Solar and Lunar setup panels, coordinates are entered in both the Solar/Lunar Coordinates and Solar Sensor panels. Anything else I should be checking?

Thanks
Paul
« Last Edit: January 11, 2018, 11:11:15 PM by mfd38 »

Offline Weather Display

  • Posts: 84,695
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: $hoursofpossibledaylight tag not updating for me
« Reply #1 on: January 11, 2018, 09:50:27 PM »
do you mean it used to work OK in the original older build?
and you when you say not updating, how do you mean exactly?
do you mean the custom tag used (you show the variable and not the actual custom tag) is not replaced with a value, or that value is wrong, or?
its not very clear

Offline mfd38

  • Posts: 1,211
  • Massachusetts
  • OS/Browser:
  • Mac OS X 10.11.6
  • Safari 11.0.2
    • Medfield, MA Weather
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #2 on: January 11, 2018, 11:10:10 PM »
The value is frozen, it reports 9.23 hours of daylight each day. I first noticed this on build 295 the other day, updated to build 296 last night. I'm not sure if it was working on earlier builds prior to 295 but I know it worked well using the older build 24 that I used until a couple of months ago.

The tag %hoursofpossibledaylight%  returns this  $hoursofpossibledaylight =  '09:23';   // Total hours/minutes of possible daylight for today

Hope that helps
« Last Edit: January 11, 2018, 11:12:32 PM by mfd38 »

Offline Weather Display

  • Posts: 84,695
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #3 on: January 11, 2018, 11:23:24 PM »
so it is updating
but you have noticed its not changing
have you checked to make sure the actual template html file has the actual custom tag in place (and not just the number 9.23)

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,426
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.132
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #4 on: January 11, 2018, 11:33:36 PM »
$changeinday in testtags is incorrect too if that means anything...

$changeinday = '10:01:22';  // change in day length since yesterday

Offline mfd38

  • Posts: 1,211
  • Massachusetts
  • OS/Browser:
  • Mac OS X 10.11.6
  • Safari 11.0.2
    • Medfield, MA Weather
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #5 on: January 12, 2018, 12:24:03 AM »
Thanks Niko, that is what drew my attention to it initially. 

Brian, Yes, I did check and the %hoursofpossibledaylight% tag is in my testtags.txt file, not just a numerical value.

Offline Weather Display

  • Posts: 84,695
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #6 on: January 12, 2018, 12:27:20 AM »
I do not know why it is not working

Offline mfd38

  • Posts: 1,211
  • Massachusetts
  • OS/Browser:
  • Mac OS X 10.11.6
  • Safari 11.0.2
    • Medfield, MA Weather
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #7 on: January 12, 2018, 12:44:15 AM »
Ok. I remember in the past it had something to do with the Solar Sensor setup, even if you did not have a solar sensor. I'll play around with those settings again to see if I can pin it down.

Thanks

Offline Weather Display

  • Posts: 84,695
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #8 on: January 12, 2018, 01:00:11 AM »
it uses the sunrise/set times
I just tested here with my lat/long (in the sun moon riset/set setup)
and it returns 14:28 (its summer here, for the %hoursofpossibledaylight%)
which is the same as the windows version reports

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,426
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.132
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #9 on: January 12, 2018, 01:36:57 AM »
The sunrise and set in testtags appear to be correct based on the location, and the difference of those times is 9:23. The length of day/hours of daylight should have increased by about a minute and a half from yesterday so it's very strange that it would be showing the correct 9:23 for today if that tag has really not updated  :?

Offline Weather Display

  • Posts: 84,695
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #10 on: January 12, 2018, 01:41:56 AM »
so the custom tag,%hoursofpossibledaylight%, is working correctly then? i.e its showing the correct value for today?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,426
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.132
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #11 on: January 12, 2018, 02:28:05 AM »
IMHO yes it is.

Offline mfd38

  • Posts: 1,211
  • Massachusetts
  • OS/Browser:
  • Mac OS X 10.11.6
  • Safari 11.0.2
    • Medfield, MA Weather
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #12 on: January 12, 2018, 02:35:46 AM »
Possibly I have it wrong, that the issue it is the change in day tag not updating....that is what caught my eye at first..it has been +10 minutes every day for a while so I made the assumption the other tag was not updating...jumped to conclusions...my bad.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,426
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.132
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #13 on: January 12, 2018, 02:43:02 AM »
$changeinday = '10:01:22';  // change in day length since yesterday

is definitely wrong.

Be interesting to see what %hoursofpossibledaylight% shows tomorrow.


Offline Weather Display

  • Posts: 84,695
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.84
    • Weather Display
Re: %hoursofpossibledaylight% tag not updating for me
« Reply #14 on: January 12, 2018, 03:01:44 AM »
I will test the change in day custom tag for the mac version here...stand by

 

cumulus