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 4019) - 03 April 2024

Legacy Cumulus 1 release 1.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

BT's Global Sager Weathercaster

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
water01
Posts: 3244
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

BT's Global Sager Weathercaster

Post by water01 »

Does anyone know of a way to get the forecast from BT's Global Sager Weathercaster to appear as the Forecast in the SteelSeries gauges?
David
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: BT's Global Sager Weathercaster

Post by beteljuice »

Unproven !!!!

Take a very deep breath :?

Make a copy of the main sager file.
comment out ALL the echo statements.
At the end of the file:

Code: Select all

// This allows displaying the forecast on a HTML webpage.  Add // to the front of this line if using a PHP webpage.
// echo "document.write ('$sf');";
 echo $sf;
// End The Sager Weathercaster.
Now the sager cast only produces forecast text string.

gauges.js .....

Code: Select all

// approx line #2903

                // de-encode the forecast string if required (Cumulus support for extended characters)
 //               data.forecast = $('<div/>').html(data.forecast).text();
                data.forecast = $.get("my_new_sager.php");
                data.forecast = data.forecast.trim();
                
That is assuming you are running a single language site and the page has jquery loaded.

All off the top of my polished dome - so probably crash and burn :o
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply