isothermalsection

Author Topic: Home Weather Station Dashboard 3.4 - forecast  (Read 8411 times)

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Home Weather Station Dashboard 3.4 - forecast
« on: September 22, 2017, 08:47:59 AM »
One minor annoyance I have found with the Dashboard is that when the page was launched, the weather forecast showed up displaying the days it was last launched which may have been some days previous. Has anyone noticed the same? By refreshing the page, it went away and got the current 3 day forecast. Wether this is due to the Browser (Firefox) I'm using I don't know.
I solved it with a bit of code at the bottom of index,php which refreshes the page just once after loading. If anyone is interested this is what it is.
I believe that if people have cookies turned off it might not work, but it works for me anyway  :)

<script type='text/javascript'>
(function()
{
  if( window.localStorage )
  {
    if( !localStorage.getItem( 'firstLoad' ) )
    {
      localStorage[ 'firstLoad' ] = true;
      window.location.reload();
    } 
    else
      localStorage.removeItem( 'firstLoad' );
  }
})();
</script>

cheers

Tony C.


Davis VP Pro2 wireless with Solar sensor using Weather Display (ver10.37S(Build93) running on a Micro PC Windows 10
Port Robinson, North Canterbury weather station: Port Robinson, NewZealand

Offline PaulMy

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 4086
  • Country: ca
  • Karma: 234
  • Gender: Male
  • Enjoy!
    • KomokaWeather
  • Station: Davis VP2 Plus w/24 FARS 6163
Re: Home Weather Station Dashboard 3.4 - forecast
« Reply #1 on: September 23, 2017, 01:16:30 AM »
Hi Tony,
Yes I have noticed that the Forecast block shows for yesterday's day/date, as well as today and tomorrow, but can't recall if I have seen it start with any earlier  day/date

 KOMOKA, ON CANADA Smart Home Weather Station

Seeing yesterday's forecast there doesn't bother me as I can then quickly compare yesterday's forecast to what we actually had.
A refresh brings up today and the next 2.

Enjoy,
Paul


Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard 3.4 - forecast
« Reply #2 on: September 23, 2017, 08:51:53 AM »
I guess what was bothering me is if no one looked at the page (including myself) for a number of days, the forecast that first appeared would be well out of date and visitors wouldn't know that they needed to refresh the page. This will hopefully will fix that for most viewers of my site anyway.

cheers
TC

Offline Wolfie33

  • Administrator
  • Hero Member
  • *****
  • Posts: 4079
  • Country: nz
  • Karma: 168
  • Gender: Male
    • Opotiki Town Weather
Re: Home Weather Station Dashboard 3.4 - forecast
« Reply #3 on: September 23, 2017, 10:15:23 AM »
I don't appear to have that issue with 3.4a. Only occasionally the current conditions image reports my WU as offline.
From memory this version still relies on a cron, maybe something going on there, perhaps a cache issue?
Cheers
« Last Edit: September 23, 2017, 01:18:14 PM by Wolfie33 »
Aercus WS2083, Cumulus 1.9.4 on Windoze XP
Sensors on a broomstick in back yard, for now!!
Web:  Opotiki weather

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard 3.4 - forecast
« Reply #4 on: September 24, 2017, 09:53:57 AM »

I'm using V34-X5 which doesn't use cron jobs.......
TC
« Last Edit: September 24, 2017, 09:59:50 AM by TonyC »

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10088
  • Country: nz
  • Karma: 655
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Home Weather Station Dashboard 3.4 - forecast
« Reply #5 on: October 05, 2017, 02:30:41 PM »
Yep cron jobs were abolished many many versions back :)
Makes it much easier to set up now.

re the forecast. The template is reliant on weather underground and we know how flakey they can be.
Currently I have no weather forecast so I presume they have issues once again.

I agree with Paul. I also do the same, look and see if yesterdays forecast was what we actually had.

Usually is :)
Living in Wairoa, Northern Hawkes Bay
Website: wairoa.net/weather

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3699
  • Country: nz
  • Karma: 407
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard 3.4 - forecast
« Reply #6 on: October 05, 2017, 07:26:28 PM »

My forecast has been coming in reliably since I updated the script to reload on launch.
Also the WD forecast matches the Met one for Kaikoura.

cheers
Tony C


Share via twitter

lamp
Home Weather Station Dashboard Version 4.33

Started by JennyLeez

54 Replies
40334 Views
Last post October 02, 2016, 04:19:48 PM
by Wolfie33
xx
Free to good home...complete weather station!

Started by hbweather

2 Replies
7037 Views
Last post December 16, 2013, 12:51:46 PM
by hbweather
lamp
What do we think about Weather Underground's new Dashboard?

Started by JennyLeez

44 Replies
36487 Views
Last post October 09, 2015, 11:33:17 AM
by JennyLeez
xx
Starlink, Home Webstations, Weather Display

Started by TonyC

0 Replies
4893 Views
Last post September 17, 2024, 10:26:35 PM
by TonyC
xx
A Voyager Far From Home

Started by Deano

6 Replies
5177 Views
Last post September 07, 2012, 11:45:07 PM
by JennyLeez