Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 18, 2013 10:18 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 796 posts ]  Go to page Previous  1 ... 31, 32, 33, 34, 35, 36, 37 ... 54  Next
Author Message
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Wed Nov 02, 2011 9:47 pm 
Offline

Joined: Wed Jan 12, 2011 9:45 am
Posts: 21
Location: Ruislip
Weather Station: VP2
Operating System: W7
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

_________________
http://www.weather.btinternet.co.uk/


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Nov 03, 2011 7:52 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17548
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Nov 18, 2011 5:39 pm 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 423
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Nov 21, 2011 10:51 pm 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 423
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Nov 26, 2011 1:43 pm 
Offline
User avatar

Joined: Mon Nov 21, 2011 9:56 pm
Posts: 17
Location: Langbank, Scotland
Weather Station: WH1081
Operating System: Win7, XP, CentOS 5, Linux Mint
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.

_________________
http://www.monaghan.tv

Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Nov 26, 2011 3:56 pm 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
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)

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Nov 26, 2011 4:16 pm 
Offline
User avatar

Joined: Mon Nov 21, 2011 9:56 pm
Posts: 17
Location: Langbank, Scotland
Weather Station: WH1081
Operating System: Win7, XP, CentOS 5, Linux Mint
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.

_________________
http://www.monaghan.tv

Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Nov 26, 2011 4:47 pm 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 423
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
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:
$SITE['WXtags'] = 'CUtags.php';
$SITE['realtimefile'] = '../realtime.txt';
and your tags at

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

show:
Quote:

// $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

Quote:
// $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:
$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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Nov 26, 2011 5:02 pm 
Offline
User avatar

Joined: Mon Nov 21, 2011 9:56 pm
Posts: 17
Location: Langbank, Scotland
Weather Station: WH1081
Operating System: Win7, XP, CentOS 5, Linux Mint
saratogaWX wrote:

It's fairly simple. In your Settings-weather.php you have
Code:
$SITE['WXtags'] = 'CUtags.php';
$SITE['realtimefile'] = '../realtime.txt';
and your tags at

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

show:
Quote:

// $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:
$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.

_________________
http://www.monaghan.tv

Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sun Dec 04, 2011 9:08 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
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

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sun Dec 04, 2011 9:41 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17548
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
It looks like you need to change this line

Code:
$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:
$WU_URL = 'http://www.wunderground.com/global/stations/WWATE.html';

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sun Dec 04, 2011 12:22 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
steve wrote:
It looks like you need to change this line

Code:
$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:
$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

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Dec 05, 2011 2:19 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Dec 05, 2011 3:20 pm 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
How can I show I'm using UTC?

Thanks

www.meteotortosa.cat/web3

_________________
Weather in Tortosa (NE Spain), updated every 15'
Image Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Tue Dec 06, 2011 12:28 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
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.

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 796 posts ]  Go to page Previous  1 ... 31, 32, 33, 34, 35, 36, 37 ... 54  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group