Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 1:32 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 ... 33, 34, 35, 36, 37, 38, 39 ... 54  Next
Author Message
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Mon Dec 12, 2011 8:22 am 
Offline
User avatar

Joined: Thu Dec 04, 2008 12:15 am
Posts: 298
Location: Tortosa-Baix Ebre- Catalonia
Weather Station: Davis Vantage Pro2 Plus
To Saratogawx

how can I tell in the web that all the hours are in UTC?

Thanks,

Lluís

_________________
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 12, 2011 1:43 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
saratogaWX wrote:
mickopla wrote:
saratogaWX wrote:
The source for the image-resizing PHP script shows

Error 003: Download error: cannot write to file, check server permission settings

so it's likely the script cannot create/write the cache file needed to save the image. You may need to adjust settings inside the image-*.php scripts and/or create the indicated cache files and set their permissions to 666 so PHP can write them.

Leave the allow_url_fopen = on; in your php.ini .. it prevents you from having a Error 004: Unable to read source file for image.

Best regards,
Ken


Hi Ken

What settings do i need to adjust in the image*.php scripts? Also how do i create new cache files and what should i name them? Cheers

Mike


There are 9 image-*.php scripts and each has a $localimgName entry with the name of the file used for the cache in that script. Here's the list:

File: image-space-aurora.php (1 hits)
Line 153: $localimgName = 'image-space-aurora.gif';
File: image-space-xray.php (1 hits)
Line 153: $localimgName = 'image-space-xray.gif';
File: image-space-aurora-s.php (1 hits)
Line 153: $localimgName = 'image-space-aurora-s.gif';
File: image-space-eit-284.php (1 hits)
Line 153: $localimgName = 'image-space-eit-284.jpg';
File: image-space-eit-304.php (1 hits)
Line 153: $localimgName = 'image-space-eit-304.jpg';
File: image-space-sat-env.php (1 hits)
Line 153: $localimgName = 'image-space-sat-env.gif';
File: image-space-solar-cycle.php (1 hits)
Line 153: $localimgName = 'image-space-solar-cycle.gif';
File: image-space-solar-disk.php (1 hits)
Line 153: $localimgName = 'image-space-solar-disk.gif';
File: image-space-solar-wind.php (1 hits)
Line 153: $localimgName = 'image-space-solar-wind.gif';

Those names, and the -cached.[type] names are used by the image-*.php scripts.

I've attached a .zip with my current cache of those files, upload them, and set their permissions to 666 to enable writing the files.

Best regards,
Ken



Thanks Ken

Working fine now. Much appreciated.

Mick

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Dec 15, 2011 11:23 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,

my Davis upload UTC hours, can I show them in local time?

Thanks

Lluís

_________________
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 16, 2011 12:28 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
meteotortosa wrote:
Hi,

my Davis upload UTC hours, can I show them in local time?

Thanks

Lluís


Hi, I've not encountered a setup like that before. The template set has a timezone setting in Settings.php which then handles date formats on the website (for the date() PHP function), but the weather station's internal date timezone is assumed to be the same as the timezone set in Settings.php.

Currently there is no built-in provision to provide UTC dates from the weather station and then format them into local time.. sorry.


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Dec 16, 2011 9:18 am 
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:
meteotortosa wrote:
Hi,

my Davis upload UTC hours, can I show them in local time?

Thanks

Lluís


Hi, I've not encountered a setup like that before. The template set has a timezone setting in Settings.php which then handles date formats on the website (for the date() PHP function), but the weather station's internal date timezone is assumed to be the same as the timezone set in Settings.php.

Currently there is no built-in provision to provide UTC dates from the weather station and then format them into local time.. sorry.


Are there any place in the script where I can put "UTC" and show it in the web?

P.D.: I think my English is too bad... :?

_________________
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 16, 2011 1:47 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
Where can I transalte this?

I see is the same in all languages

Attachment:
MeteoTortosa.cat Inici.png


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

_________________
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 16, 2011 6:13 pm 
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
meteotortosa wrote:
saratogaWX wrote:
meteotortosa wrote:
Hi,

my Davis upload UTC hours, can I show them in local time?

Thanks

Lluís


Hi, I've not encountered a setup like that before. The template set has a timezone setting in Settings.php which then handles date formats on the website (for the date() PHP function), but the weather station's internal date timezone is assumed to be the same as the timezone set in Settings.php.

Currently there is no built-in provision to provide UTC dates from the weather station and then format them into local time.. sorry.


Are there any place in the script where I can put "UTC" and show it in the web?

P.D.: I think my English is too bad... :?


You can try using in Settings.php
Code:
$SITE['tz'] = 'UTC';
$SITE['timeFormat'] = 'd/m/Y H:i T';       // Euro format 31/03/2006 14:03

$SITE['timeOnlyFormat'] = 'H:i T';          // Euro format hh:mm  (hh=00..23);
$SITE['dateOnlyFormat'] = 'd/m/Y T';        // for 31-Mar-2008 or 'd/m/Y' for Euro format
and see if that does what you want. (Your entire site should display dates/times based on UTC with the 'T' showing 'UTC').


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Dec 16, 2011 6:19 pm 
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
meteotortosa wrote:
Where can I transalte this?

I see is the same in all languages

Attachment:
MeteoTortosa.cat Inici.png


Sure.. the proper place to put the translation is in language-LL.txt (LL is the language code) somewhere between the

conditions|begin||
...
langlookup|Few clouds|<translation for few clouds>|
...
conditions|end||

lines.


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Dec 16, 2011 7:17 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:
meteotortosa wrote:
Where can I transalte this?

I see is the same in all languages

Attachment:
MeteoTortosa.cat Inici.png


Sure.. the proper place to put the translation is in language-LL.txt (LL is the language code) somewhere between the

conditions|begin||
...
langlookup|Few clouds|<translation for few clouds>|
...
conditions|end||

lines.


That's my "language-ct.txt"
You can see: http://www.meteotortosa.cat/web3/wxindex.php

Code:
conditions|begin||
langlookup|Dry|Sec|
langlookup|Light rain|Pluja dèbil|
langlookup|Moderate drizzle|Plugim|
langlookup|Moderate rain|Pluja|
langlookup|Heavy rain|Pluja forta|
langlookup|Stopped raining|Ha deixat de ploure|
# conditions time
langlookup|Dawn|Alba|
langlookup|Dusk|Crepuscle|
langlookup|Night time|Nit|
# Clouds (sky)
langlookup|Clear|Seré|
langlookup|Sunny|Assolellat|
langlookup|Clear skies|Despejat|
langlookup|Mostly sunny|Practicament despejat|
langlookup|A few clouds|Alguns núvols|
langlookup|Sc|Parcialment cobert|
langlookup|Partly cloudy|Bastant cobert|
langlookup|Mostly cloudy|Núvols i clarianes|
langlookup|Cloudy with clear p|Núvols i clarianes|
langlookup|Overcast|Tapat|
conditions|end||


:?

_________________
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 16, 2011 7:28 pm 
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
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 :)


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