Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Calling forecast conditions

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

Moderator: daj

Post Reply
gabrielle
Posts: 5
Joined: Fri 10 Apr 2009 2:31 pm

Calling forecast conditions

Post by gabrielle »

I have just began using cumulus and enjoy all the functions for information. I am using the WH1081 type weather stationweb site address is http://www.volcano.net/~gabrielle/weather/ . I want to use the weather forcast "Forecast: Fairly fine, showers likely" BUT omit the first phrase in the forcast 'Fairly fine'. I havent been able to locate where its calling the data from. Its my understanding barometer reading, but to change the text? Say just post 'showers likely'. Thank you in advance for the help.
gabrielle
Posts: 5
Joined: Fri 10 Apr 2009 2:31 pm

Re: Calling forecast conditions

Post by gabrielle »

Maybe I was just over thinking it, seems to be called from the HTML index page. I will eventually answer my own question if the text does not revert back to it original form.
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: Calling forecast conditions

Post by beteljuice »

The current 'built in' forecast is not editable.

It is possible to 'lift' a forecast from other sources (edit the indexT.htm file) or if you have coding expertise use the forecast JavaScript which separates the forecast from Cumulus and is editable.
Image
......................Imagine, what you will KNOW tomorrow !
stevew
Posts: 60
Joined: Sun 01 Mar 2009 3:23 pm
Weather Station: WS2350 (via serial)
Operating System: win7/Linux
Location: Redwood Lake, Reading
Contact:

Re: Calling forecast conditions

Post by stevew »

beteljuice wrote:or if you have coding expertise use the forecast JavaScript which separates the forecast from Cumulus and is editable.
This sounds like it may be what I am looking for. Right now I want to extract something from the cumulus upload that will allow me to provide a 'current conditions' text and from that selected images (rain clouds when its raining). Who, what, where is this 'forecast JavaScript' you speak of oh Beteljuice?

edit : I found it, very useful :)
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: Calling forecast conditions

Post by beteljuice »

stevew wrote: ... Right now I want to extract something from the cumulus upload that will allow me to provide a 'current conditions' text and from that selected images (rain clouds when its raining).
Current conditions aren't a forecast :D
You can say it's windy, cold, and it has rained in the last hour !

For observations (which you aren't entering), you would be better importing one of the many weather site obs / forecasts or interrogating a METAR based feed, although that may not be truly local, and possibly a few hours old.

eg.

http://weather.yahooapis.com/forecastrss?p=UKXX0044&u=c

There's more in the feed than appears in the browser.

http://developer.yahoo.com/weather/

One of the advantages of this feed is that both current and tomorrow forecast are give a code number from which you can create your own text, weather icons, page background etc.

The JavaScript Zambretti forecaster also returns a 'numbered' condition ;)
Image
......................Imagine, what you will KNOW tomorrow !
ritchie
Posts: 42
Joined: Mon 02 Feb 2009 10:25 pm
Weather Station: WS 1081
Operating System: windows 10
Location: Rieti Italy

Re: Calling forecast conditions

Post by ritchie »

Gabrielle
I have created a serverside script that will translate the output from the Cumulus system - translate used loosely here could be taken as 'change the text' !
It may be quite complex for you to setup, I don't know what your skills are, but you are welcome to try it if you feel it may help.
There is another thread which covers it specifically.
Image
User avatar
garytx
Posts: 52
Joined: Sun 22 Jun 2008 3:00 pm
Weather Station: Davis VantagePro 2 Plus w/FARS
Operating System: Windows 7
Location: Central Texas, USA
Contact:

Re: Calling forecast conditions

Post by garytx »

You could use javascript to "describe" current conditions.

If the temperature is over a threshhold you could say "warm" or "hot", under certain threshholds you could display "cold" or "frigid." Wind gust over a threshhold you could display "breezy" or "windy". Rainfall rate over one threshhold you could display "drizzle," "light rain," or "heavy rain." I've done this with other weather software, could just as easily be done with Cumulus.
Post Reply