Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Saratoga Base-World templates switch to DarkSky forecast before WU API shutdown

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Saratoga Base-World templates switch to DarkSky forecast before WU API shutdown

Post by saratogaWX »

For all the Base-World template users, make sure you switch to using DarkSky for forecasts before the planned 15-Feb-2019 shutdown of the WeatherUnderground API (at which time your WU-forecast.php scripts will cease operation).

The easiest way to switch is to use the update tool page with a query of Base-World, Plugin-*, 02-Dec-2018 to get all the needed files. Follow the instructions in the included Settings-DarkSky-README.txt file to change your Settings.php to add the DarkSky API key and forecast locations to your site. The ajax-dashboard.php and wxforecast.php scripts have also been updated for DarkSky support.

If you're using the ajax-dashboard6.php, please see this post for details on what to modify. I've also updated the legacy script page with 6.95a of Scott's alternative ajax-dashboard6.php script (just the one file was updated).

WU has revealed the future API replacement and said it would be free for low-volume PWS data submitters to use, but has not offered any API keys for the new API yet -- the new API is INCOMPATIBLE with the existing WU-forecast.php, so you'll have to change to DarkSky.net forecasts before they shut off the old API. I'll try a rewrite of WU-forecast for the new API as soon as keys are available -- right now they're only talking about a 5 day forecast period (instead of the current 7 day forecast). DarkSky provides a 7 day forecast, but only for 24hr periods (so only 7 icons).

I'll keep you posted about developments for the WU API replacement -- in the meantime, DO update your sites to use DarkSky forecasts NOW.

Best regards,
Ken
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Saratoga Base-World templates switch to DarkSky forecast before WU API shutdown

Post by saratogaWX »

I've done an update to the DarkSky forecast script (DS-forecast.php V1.09, DS-forecast-lang.php V1.06) that adds a tabbed display of the Daily and Hourly(24hrs) forecasts. Including scripts also need to add some CSS to format the tabbed display.

Standalone: https://saratoga-weather.org/scripts-DSforecast.php (the scripts and CSS addition are available there)

Template: https://saratoga-weather.org/wxtemplates/updates.php with query 23-Jan-2019, Base-World, Plugin-*
which updates DS-forecast.php, DS-forecast-lang.php and wxforecast.php scripts (the latter has the needed CSS included)
User avatar
BeaumarisWX
Posts: 357
Joined: Mon 09 Apr 2012 2:38 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 Pro Hades Canyon
Location: Beaumaris, Tasmania, AU
Contact:

Re: Saratoga Base-World templates switch to DarkSky forecast before WU API shutdown

Post by BeaumarisWX »

Thanks Ken, Greatly Appreciated. https://southfranklinweather.com/weathe ... ast-DS.php
Kind Regards,
Tony Beaumaris, Tasmania (AUS)

CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
Image
Mark14
Posts: 79
Joined: Thu 23 Aug 2012 8:53 pm
Weather Station: Ecowitt HP3501
Operating System: Windows 10
Location: Konin, Poland

Re: Saratoga Base-World templates switch to DarkSky forecast before WU API shutdown

Post by Mark14 »

At last I have updated my template. It works but apparently I ommited something. I edited flyout-menu-test.xml and added a new element in my menu with forecasts leading to DS-forecast.php
However it isn't embedded within main site template: http://serwer1823145.home.pl/DS-forecast.php
like the rest of forecasts, eg. http://serwer1823145.home.pl/wxforecast.php

How to solve it?
Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Saratoga Base-World templates switch to DarkSky forecast before WU API shutdown

Post by saratogaWX »

Use the updated wxforecast.php page. Use check-fetch-times.php?show=versions to see all updates needed.
Post Reply