Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 10:48 am
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 ... 34, 35, 36, 37, 38, 39, 40 ... 54  Next
Author Message
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Dec 16, 2011 10:33 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
saratogaWX wrote:
So, just change
Code:
langlookup|A few clouds|Alguns núvols|
to
Code:
langlookup|A few clouds|Alguns núvols|
langlookup|Few clouds|Alguns núvols|
and it should work for Catalan :)


:clap: :clap: :clap: :clap: :clap:

A lot of thanks !!!!

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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Dec 23, 2011 6:57 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
Hi,

I have a little problem with wxcurecords.php. You can look here: http://www.meteotortosa.cat/web3/wxcurecords.php

How can I fix records date?

Code:
<tr class="column-light">
    <td><?php langtrans('Temperature'); ?>  <?php langtrans('Highest'); ?></td>
    <td><?php print $WX['tempH']; ?> <?php print $SITE['uomTemp'];?></td>
    <td><?php print fix_CU_record_date($WX['TtempH']); ?></td>
  </tr>


"TtempH" tag is correct, but It wasn't on 01/1/1970 :lol:

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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Dec 31, 2011 6:25 pm 
Offline

Joined: Sat Dec 31, 2011 6:20 pm
Posts: 2
Location: Edinburgh, UK
Weather Station: Fine Offset WH1080i
Operating System: Many!
Hi Steve/Ken,

I'm been using Cumulus for a while now and I gotta say I love it!

I've recently started using the saratoga weather site scripts on my site, but I'm having issues with the rain reporting.

The site is not reporting yesterday's weather and the "time since last rain" section is reporting about 15000 days since the last rain (a little optimistic for scotland!).

I've had a look at what has been suggested above, but it's not making any sense to me - perhaps I'm running a different version of the script (downloaded 3 days ago (the 18th of December 2011).

Can anyone help me sort this please?

The site's address is http://weather.beerandanvils.co.uk

Screenshot attached!

Thanks!
David


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Dec 31, 2011 11:47 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17563
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
I don't know enough about Ken's excellent scripts to know how they work, but as far as Cumulus is concerned it only accumulates rainfall data from the point where you first run it. To adjust the time since it last rained/didn't rain when you start using Cumulus, you need to edit today.ini in the Cumulus data folder. These are the two items you need to adjust:

ConsecutiveRainDays=
ConsecutiveDryDays=

_________________
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 Jan 01, 2012 12:00 am 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 425
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
The issue is caused by having the CUtags.php uploaded without being processed by Cumulus, so none of the PHP tags contain weather values.

If you look at your site with JavaScript disabled (so you can only see the PHP results) it shows all the tags are 'unprocessed'

With JavaScript enabled, the AJAX routine updates some (but not all) the data values shown on the page.
The massive days since last rain is an artifact of the CUtags.php not having real weather data in it.

Check you Cumulus setup using the guide at http://saratoga-weather.org/wxtemplates ... umulus.php to get
CUtags.txt to upload as CUtags.php. I suspect there's not a checkmark in the 'Process' column for that file.

Best regards,
Ken


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sun Jan 01, 2012 1:13 pm 
Offline

Joined: Sat Dec 31, 2011 6:20 pm
Posts: 2
Location: Edinburgh, UK
Weather Station: Fine Offset WH1080i
Operating System: Many!
Hi Ken,

That worked like a treat (even with hogmanay still ringing in my ears!)

Thanks fellas!


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Jan 16, 2012 9:06 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
I searched the internet for a UK marine buoy script but couldn't find the code anywhere. I know there is one available as i have seen it on other websites. Anybody know of a link to the script?

Mick

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Jan 16, 2012 2:41 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
Mick, I have not found a link for the script but a link to someone that might be able to tell you where such a script is available: Ken True Saratoga-Weather - Nearby Buoys

Oops... A few minutes later... :oops:

Found the page with the script: Weather station scripts - Buoy Data. As I expected, it was on Ken True's site.


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Jan 16, 2012 3:27 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
gemini06720 wrote:
Mick, I have not found a link for the script but a link to someone that might be able to tell you where such a script is available: Ken True Saratoga-Weather - Nearby Buoys

Oops... A few minutes later... :oops:

Found the page with the script: Weather station scripts - Buoy Data. As I expected, it was on Ken True's site.


I don't see any script for UK and Ireland buoys on Kens page.I think its just North american ones there. Maybe i'm wrong?

Edit, One minute later i see them, Cheers for your reply ;)

_________________
Imagehttp://www.waterfordweather.com


Last edited by mickopla on Mon Jan 16, 2012 3:30 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Jan 16, 2012 3:30 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2512
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Kens scripts are for the National Data Buoy Center - which seems to include data from the UK...
http://www.ndbc.noaa.gov/maps/United_Kingdom.shtml

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Tue Jan 17, 2012 3:19 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
I got the buoy-data.php working but i can't seem to embed it into a page on my website here is the main part of code i'm using. Obviously something wrong which i hope someone can point out.

Mick

?>
<?php
$doPrintBUOY = false;
include("buoy-data.php");
print $BUOY_CSS;
?></head>
<body>
<?php
############################################################################
include("header.php");
############################################################################
include("menubar.php");
############################################################################
?>

<div id="main-copy">
<h1>Buoy data</h1>
<?php
print $BUOY_MAP;
print $BUOY_TABLE;
?>
</div><!-- end main-copy -->

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Tue Jan 17, 2012 5:58 am 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 425
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
That's the correct code to use in a copy of wxnewpage.php as your wxbuoy.php page.

Keep in mind that the graphic for the UK buoys is just a bit wide for the narrow-aspect template at 760px (max should be about 625px to fit inside).

Your flyout-menu.xml uses 'buoy-data.php' as the link, and it likely should be the wxbuoy.php page you created instead.

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Wed Jan 18, 2012 6:53 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
saratogaWX wrote:
That's the correct code to use in a copy of wxnewpage.php as your wxbuoy.php page.

Keep in mind that the graphic for the UK buoys is just a bit wide for the narrow-aspect template at 760px (max should be about 625px to fit inside).

Your flyout-menu.xml uses 'buoy-data.php' as the link, and it likely should be the wxbuoy.php page you created instead.

Best regards,
Ken


I have the code correct and have created a new page called http://www.waterfordcityweather.com/wxbuoydata.php but i'm still getting a internal server error 500. Would the wider map cause this?
Cheers

Mick

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Wed Jan 18, 2012 4:40 pm 
Offline

Joined: Wed Jan 18, 2012 11:51 am
Posts: 11
Location: Norway
Weather Station: http://kystvind.no/wxindex.php
Operating System: Windows XP SP3
Hi!
Has tried to get the nice templates to work. It is a masterpiece , but may not get ajaxCUwx to work. Has tried in all possible ways. Can anyone please take a look.
Here is link to the side http://kystvind.no/wxindex.php

Regard Toddi


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Wed Jan 18, 2012 11:05 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Edit: (2nd attempt)

It looks as if it can't make sense of the date stamp - check any format settings.

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 796 posts ]  Go to page Previous  1 ... 34, 35, 36, 37, 38, 39, 40 ... 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