Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

Now available: AJAX/PHP multilingual website templates

Discussion of Ken True's web site templates

Moderator: saratogaWX

elmdcw
Posts: 21
Joined: Wed 12 Jan 2011 9:45 am
Weather Station: VP2
Operating System: W7
Location: Ruislip

Re: Now available: AJAX/PHP multilingual website templates

Post by elmdcw »

Hi,
I found an alternative solution to getting the Davis forecast updating on my website. I used a script from Dynamic Drive to process a text file. I also got the text file to include the current conditions, partly from mweather.exe and partly generated from Cumulus alarms. It currently updates every 5 mins but will increase that when I am sure it works well.

See http://www.weather.btinternet.co.uk/ajax.htm

Dave
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by steve »

vpokroglo wrote:I noticed a strange behaviour of function "Days since last rain". I think this is happening from one of the last updates of defs, tags file. The page is showing one day less, than it should be. So if it is raining on 26. 10. 2011, and today is 28. 10. 2011, there are 2 days, but my page shows "1 day since last rain.".
I don't know if this is the same thing that you're asking about, but the figure supplied by Cumulus itself is the number of complete meteorological days since the last day with rain. So, if for example it last rained on Monday, and today is Thursday, that's two complete days without rain (Tuesday and Wednesday).
Steve
User avatar
saratogaWX
Posts: 1211
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

Just a note to let you know that several updates to the templates are now available.

First, a new wxmetar.php page was added to the Base-* distributions .. this new page allows you to display the reports from your nearby METAR stations. For Canada/World, the display is also multilingual.

Second, for Base-World distribution, an improved WU-forecast.php is available with multi-city forecast capability (like the same capability for Base-USA in the NOAA forecasts).

Third, the capability for right-to-left reading languages has been added to the Base-World template, and the Hebrew translations were provided by Eli of Sde Hemed Weather. For this capability, a new Settings-language.php file was implemented to make it easier to update languages as they become available.

Updates for V3 templates are available from the updates page

Convert V2 WD/AJAX/PHP to V3 easily using the upgrade tool page.

You can keep informed of updates as they become available using the RSS feed and/or the SaratogaWXPHP Twitter feed.

Best regards,
Ken
User avatar
saratogaWX
Posts: 1211
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

Another update 21-Nov-2011 to Base-* V3 websites. The wxstatus.php page has been redesigned to accommodate any custom checks you'd like to do, and the stock weather software checks have been moved to a new include-wxstatus.php page .. this enables an easy update of include-wxstatus.php when new weather software is added to the templates, and not to disturb your custom checks in wxstatus.php

The update has the following changes:
1) fixed Weather-Display clientraw.txt test
2) fixed several Multi-lingual omissions
3) added stock checks for Cumulus, VWS and WeatherLink NOAA-style reports (Thanks to Beau for the suggestion)
4) added Weather-Display <Month><year>.htm monthly report check

Update from the updates page. (21-Nov-2011)

Best regards,
Ken
User avatar
NetRaider
Posts: 17
Joined: Mon 21 Nov 2011 9:56 pm
Weather Station: WH1081
Operating System: Win7, XP, CentOS 5, Linux Mint
Location: Langbank, Scotland
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by NetRaider »

Got a bit of an odd problem. If you look at the page here;

http://www.monaghan.tv/weather/ajax

Underneath the thermometer the highs and lows for today and yesterday are displayed. Today shows fine but yesterdays results appear to be stuck both temps and time, the values are wrong anyway as they are too high. I've let this run for a couple of days to see if anything changes but no joy.

If I change the configuration from Centigrade to Fahrenheit yesterdays values still show in centigrade with the wrong values.

I'd appreciate any help with this.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by nitrx »

Thre is someting odd with your uploads ? http://www.monaghan.tv/weather/ajax/wxstatus.php I don't have time now but Ken knows the most of it and about your cumulus version ?? Cumulus (1.9.0-b958)
User avatar
NetRaider
Posts: 17
Joined: Mon 21 Nov 2011 9:56 pm
Weather Station: WH1081
Operating System: Win7, XP, CentOS 5, Linux Mint
Location: Langbank, Scotland
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by NetRaider »

nitrx wrote:Thre is someting odd with your uploads ? http://www.monaghan.tv/weather/ajax/wxstatus.php I don't have time now but Ken knows the most of it and about your cumulus version ?? Cumulus (1.9.0-b958)
I'm actually using 1.9.2 so not sure whay it's being reported as an older version.
User avatar
saratogaWX
Posts: 1211
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: Now available: AJAX/PHP multilingual website templates

Post by saratogaWX »

NetRaider wrote:
nitrx wrote:Thre is someting odd with your uploads ? http://www.monaghan.tv/weather/ajax/wxstatus.php I don't have time now but Ken knows the most of it and about your cumulus version ?? Cumulus (1.9.0-b958)
I'm actually using 1.9.2 so not sure whay it's being reported as an older version.
It's fairly simple. In your Settings-weather.php you have

Code: Select all

$SITE['WXtags'] = 'CUtags.php';
$SITE['realtimefile'] = '../realtime.txt';
and your tags at

http://www.monaghan.tv/weather/ajax/CUtags.php?sce=dump

show:

// $WX[] array size = 174 entries.
$WX['date'] = '1/27/2011'; // The current date
$WX['time'] = '09:15 on 27 January 2011'; // The current time and date. Example result: 18:30 on 30 December 2009. If you simply wish the time, use a combination of the day, month, year tags (below)
You appear to be uploading your tags one directory higher at:

http://www.monaghan.tv/weather/CUtags.php?sce=dump
// $WX[] array size = 478 entries.
$WX['tempunit'] = '°C';
$WX['tempunitnodeg'] = 'C';
$WX['pressunit'] = 'hPa';
$WX['rainunit'] = 'in';
$WX['windunit'] = 'mph';
$WX['windrununit'] = 'miles';
$WX['cloudbaseunit'] = 'ft';
$WX['date'] = '26/11/2011';
$WX['time'] = '16:30 on 26 November 2011';
The fix is to change your Settings-weather.php to

Code: Select all

$SITE['WXtags'] = '../CUtags.php';
so the template will use your current tags instead of the 'sample' tags included with the template (which contain data from my station back in January, 2011).

Best regards,
Ken
User avatar
NetRaider
Posts: 17
Joined: Mon 21 Nov 2011 9:56 pm
Weather Station: WH1081
Operating System: Win7, XP, CentOS 5, Linux Mint
Location: Langbank, Scotland
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by NetRaider »

saratogaWX wrote:
It's fairly simple. In your Settings-weather.php you have

Code: Select all

$SITE['WXtags'] = 'CUtags.php';
$SITE['realtimefile'] = '../realtime.txt';
and your tags at

http://www.monaghan.tv/weather/ajax/CUtags.php?sce=dump

show:

// $WX[] array size = 174 entries.
$WX['date'] = '1/27/2011'; // The current date
$WX['time'] = '09:15 on 27 January 2011'; // The current time and date. Example result: 18:30 on 30 December 2009. If you simply wish the time, use a combination of the day, month, year tags (below)
You appear to be uploading your tags one directory higher at:

http://www.monaghan.tv/weather/CUtags.php?sce=dump


The fix is to change your Settings-weather.php to

Code: Select all

$SITE['WXtags'] = '../CUtags.php';
so the template will use your current tags instead of the 'sample' tags included with the template (which contain data from my station back in January, 2011).

Best regards,
Ken
Doh! Thanks for your help much appreciated.
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Now available: AJAX/PHP multilingual website templates

Post by mickopla »

I'm having a problem getting the Weather Underground script working. Basically i'm getting the forecast for Denmark but its Waterford City, Ireland i want. I've tried putting the url in the script as guided with no joy. Do i need to delete all the URLs listed and just use the address for Waterford on the Weather Underground site? Its probably something simple i'm doing wrong. Here is the WU-Forecast.php file i have uploaded to my website. Maybe someone can tell me exactly what i need to change. Cheers
http://www.waterfordcityweather.com/WU-forecast.php
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by steve »

It looks like you need to change this line

Code: Select all

$WU_URL = 'http://www.wunderground.com/global/stations/06075.html';
and use your station number instead of 06075; but I don't know where you find your station number.

Edit: It looks like this works:

Code: Select all

$WU_URL = 'http://www.wunderground.com/global/stations/WWATE.html';
Steve
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Now available: AJAX/PHP multilingual website templates

Post by mickopla »

steve wrote:It looks like you need to change this line

Code: Select all

$WU_URL = 'http://www.wunderground.com/global/stations/06075.html';
and use your station number instead of 06075; but I don't know where you find your station number.

Edit: It looks like this works:

Code: Select all

$WU_URL = 'http://www.wunderground.com/global/stations/WWATE.html';
Thanks steve that did the trick.

Edit: Not very familiar with PHP so i'm wondering how do i center the text and also add a background color? Cheers
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by meteotortosa »

http://www.meteotortosa.cat/web3/wxindex.php

I'll see if I get it to work properly :D
Weather in Tortosa (NE Spain), updated every 15'
Image Image
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by meteotortosa »

How can I show I'm using UTC?

Thanks

www.meteotortosa.cat/web3
Weather in Tortosa (NE Spain), updated every 15'
Image Image
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Now available: AJAX/PHP multilingual website templates

Post by mickopla »

I got the script up and running today which i'm delighted about but i'm wondering how do i edit the wxindex.php to change the default settings? Also i have the WU-Forecast.php running properly for my area but the forecast on the wxindex.php is not the correct region. Here are my links Http://www.waterfordcityweather.com/wxindex.php
http://www.waterfordcityweather.com/WU-forecast.php

Edit: Changed the defaults in the settings.php file so all is well.
Post Reply