Sandaysoft

Support forum for Cumulus weather station software
It is currently Sun May 26, 2013 4:26 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 ... 32, 33, 34, 35, 36, 37, 38 ... 54  Next
Author Message
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Dec 08, 2011 8:17 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
saratogaWX wrote:
mickopla wrote:
Thanks Ken

I really appreciate your fantastic templates. It took me a while to adjust to the php format and which php files to edit to make changes but i'm getting there.

Best Regards

Mike

Edit: I set up a satellite php but i cant get the maps to fit properly on the page. I have seen the exact set up on another website and they fit fine. I'm wondering what i need to edit in order to fix this page. Cheers, Mike
http://www.waterfordcityweather.com/wxsatellite.php


Hi Mike,

Thanks for the kind words, and I'm glad you are enjoying using the template set :)

You just need to add a ' width="620" height="451" ' to the <img ... /> statements to have the browser scale the images to fit in the 620px space available in the narrow template. Those images are 845px wide by 615px tall so overflow the display area.

Best regards,
Ken


Thanks Ken
That worked great.

Not directed at Ken but maybe someone else or Ken might know the answer. I want to add the wxspace.php to my site. I have tried the script that is for the USA template but i'm getting a Error 003 on the images. I was looking for a Base-World version of the script but couldn't find one that's why i used the USA version. so i'm wondering is the error 003 because its the wrong version or would it be the file permissions which i have changed as per Readme.txt of script? Thanks in advance.

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Dec 08, 2011 4: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
saratogaWX wrote:
There are three items in Settings-weather.php that need to be changed to make the graphs and NOAA reports work. You need to use relative file addressing for these items, not URL links, so change
Code:
$SITE['realtimefile'] = 'http://www.meteotortosa.cat/liveview/realtime.txt';
$SITE['graphImageDir'] = 'http://www.meteotortosa.cat/liveview/images/';
$SITE['NOAAdir'] = 'http://www.meteotortosa.cat/meteoct/NOAA-reports/';
to
Code:
$SITE['realtimefile'] = '../liveview/realtime.txt';
$SITE['graphImageDir'] = '../liveview/images/';
$SITE['NOAAdir'] = '../meteoct/NOAA-reports/';
and it should work (assuming your site stays in the ./web3/ directory relative to the document root of the website.

Best regards,
Ken


A lot of thanks Ken, It's works !!! or not !! :o

Can you see this, please? -> http://www.meteotortosa.cat/web3/wxnoaa ... eports.php
And my NOAA-reports web folder -> http://www.meteotortosa.cat/meteoct/NOAA-reports/

I'm looking for into some files, and I think is all OK

A lot of thanks again

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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Dec 08, 2011 5:08 pm 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 428
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
mickopla wrote:
Thanks Ken
That worked great.

Not directed at Ken but maybe someone else or Ken might know the answer. I want to add the wxspace.php to my site. I have tried the script that is for the USA template but i'm getting a Error 003 on the images. I was looking for a Base-World version of the script but couldn't find one that's why i used the USA version. so i'm wondering is the error 003 because its the wrong version or would it be the file permissions which i have changed as per Readme.txt of script? Thanks in advance.


It's likely that your PHP installation has turned off allow_url_fopen (it's the default in PHP5).

Edit (or create a new) php.ini file in the document root of your website and put in it:

allow_url_fopen = on;

Then the image scripts should be able to open/resize/cache the images on the space weather page.

Yes, you can use the USA version with your template set .. the only downside is that it will remain in English (as there is no built-in support for the translation functions).

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Dec 08, 2011 5:25 pm 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 428
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
meteotortosa wrote:

A lot of thanks Ken, It's works !!! or not !! :o

Can you see this, please? -> http://www.meteotortosa.cat/web3/wxnoaa ... eports.php
And my NOAA-reports web folder -> http://www.meteotortosa.cat/meteoct/NOAA-reports/

I'm looking for into some files, and I think is all OK

A lot of thanks again


Glad the Graphs images are working now :)

The issue with the NOAA reports is caused by the naming of the files in your meteoct/NOAA-reports/ directory.

The files there are
Quote:
NOAA2007.txt
NOAA200705.txt
NOAA200706.txt
NOAA200707.txt
NOAA200708.txt
NOAA200709.txt
NOAA200710.txt
NOAA200711.txt
NOAA200712.txt
NOAA2008.txt
NOAA200801.txt
NOAA200802.txt
NOAA200803.txt
NOAA200804.txt
NOAA200805.txt
NOAA200806.txt
NOAA200807.txt
NOAA200808.txt
NOAA200809.txt
NOAA200810.txt
NOAA200811.txt
NOAA200812.txt
NOAA2009.txt
NOAA200901.txt
NOAA200902.txt
NOAA200903.txt
NOAA200904.txt
NOAA200905.txt
NOAA200906.txt
NOAA200907.txt
NOAA200908.txt
NOAA200909.txt
NOAA200910.txt
NOAA200911.txt
NOAA200912.txt
NOAA2010.txt
NOAA201001.txt
NOAA201002.txt
NOAA201003.txt
NOAA201004.txt
NOAA201005.txt
NOAA201006.txt
NOAA201007.txt
NOAA201008.txt
NOAA201009.txt
NOAA201010.txt
NOAA201011.txt
NOAA201012.txt
NOAA201101.txt
NOAA201102.txt
NOAA201103.txt
NOAA201104.txt
NOAA201105.txt
NOAA201106.txt
NOAA201107.txt
NOAA201108.txt
NOAA201109.txt
NOAA201110.txt
NOAA201111.txt
NOAAMO.TXT
NOAAMO200703.txt
NOAAMO200704.txt
NOAAPRMO.TXT
NOAAPRYR.TXT
NOAAYR.TXT
NOOA200708.txt
NOOA200809.txt
NOOA200810.txt
and for Cumulus reports, should be named as

NOAAMO<MM><YY>.txt for monthly reports (e.g. NOAAMO1211.txt for December, 2011)
NOAAYR<YYYY>.txt for yearly reports (e.g. NOAAYR2011.txt for 2011 report)

It looks like you have a mix of WeatherLink names and Cumulus names in that directory. Correct the filenames to match the Cumulus convention, and the NOAA report display should work fine. Be sure to remove all the other files not matching the Cumulus convention from the directory.

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Dec 09, 2011 4:08 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
saratogaWX wrote:
mickopla wrote:
Thanks Ken
That worked great.

Not directed at Ken but maybe someone else or Ken might know the answer. I want to add the wxspace.php to my site. I have tried the script that is for the USA template but i'm getting a Error 003 on the images. I was looking for a Base-World version of the script but couldn't find one that's why i used the USA version. so i'm wondering is the error 003 because its the wrong version or would it be the file permissions which i have changed as per Readme.txt of script? Thanks in advance.


It's likely that your PHP installation has turned off allow_url_fopen (it's the default in PHP5).

Edit (or create a new) php.ini file in the document root of your website and put in it:

allow_url_fopen = on;

Then the image scripts should be able to open/resize/cache the images on the space weather page.

Yes, you can use the USA version with your template set .. the only downside is that it will remain in English (as there is no built-in support for the translation functions).

Best regards,
Ken


Hi Ken

I created a php.ini file with just "allow_url_fopen = on;" in the body of the file and i still have the error 003. Should there be anything other than the "allow_url_fopen = on;" in the txt of the file? Would love to get this working but it is trying on my patience at this stage ;) Thanks in advance

Mike

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Dec 09, 2011 6:26 am 
Offline
User avatar

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


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Dec 10, 2011 12:21 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

I use WeatherLink for 4 years, Cumulus just 1 year. I like to keep WL NOAA files because they are in Spanish as well as the WL. Would it be possible in some way to view files in the format NOAA WL but not with the Cumulus?

I used the Google Translator, I hope you understand my question.

_________________
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 10, 2011 1:34 am 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 428
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
meteotortosa wrote:
To SaratogaWX

I use WeatherLink for 4 years, Cumulus just 1 year. I like to keep WL NOAA files because they are in Spanish as well as the WL. Would it be possible in some way to view files in the format NOAA WL but not with the Cumulus?

I used the Google Translator, I hope you understand my question.


Yes, it is possible to view the older WeatherLink files, but you will need to rename them to use the Cumulus format for the file names.

For examples:

Old name -> new name

NOAA2007.txt -> NOAAYR2007.txt
NOAA200705.txt -> NOAAMO0507.txt
NOAA200706.txt -> NOAAMO0607.txt

NOAA201109.txt -> NOAAMO0911.txt
NOAA201110.txt -> NOAAMO1011.txt
NOAA201111.txt -> NOAAMO1111.txt

NOAAMO.TXT -> delete
NOAAMO200703.txt -> NOAAMO0307.txt
NOAAMO200704.txt -> NOAAMO0407.txt
NOAAPRMO.TXT -> delete
NOAAPRYR.TXT -> delete
NOAAYR.TXT -> delete

After you rename all the files in the directory (and delete the files indicated), the old WeatherLink files will be viewable with the Cumulus-configured template.

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Dec 10, 2011 3:32 am 
Offline

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

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Sat Dec 10, 2011 8:48 pm 
Offline
User avatar

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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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