Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 18, 2013 9:07 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, 2, 3, 4, 5, 6, 7, 8 ... 54  Next
Author Message
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Thu Feb 17, 2011 7:10 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
You don't have a remote path to CUtags.php .... something like /folder/CUtags.php so the file goes to ? You can set ftp-logging for a while.

The CUtags.php don't need the realtime ticked so the setting for that file is good.

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 1:25 am 
Offline
User avatar

Joined: Sat Mar 20, 2010 1:01 am
Posts: 111
Location: Elvas, Portugal
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
nitrx wrote:
You don't have a remote path to CUtags.php .... something like /folder/CUtags.php so the file goes to ? You can set ftp-logging for a while.

The CUtags.php don't need the realtime ticked so the setting for that file is good.


Thank you very much! :clap:

I did what you said and it works fine now!

This is the link for my temporary tests: http://www.meteoelvas.com/estacao/wxindex.php

Once again I am thankful to Ken, for the given help! :D

_________________
Kind Regards, Manuel.

Image


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 2:50 am 
Offline

Joined: Sun May 10, 2009 8:52 pm
Posts: 499
Location: Springfield, IL
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Hi Ken
were can fdl_low.gif fdl_low.gif be found also is cbi in the ajaxcu
thanks Beau


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 3:22 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
n9mfk wrote:
were can fdl_low.gif fdl_low.gif be found
Beau the 'fire danger' files are not part of the templates - I have attached the 'fdl_images.zip' file in case those are the images you are looking for.

If, instead, you are looking for the 'fire weather' files, they are include in the 'usa' template set an can be found in the 'ajax-images' sub-directory.

n9mfk wrote:
also is cbi in the ajaxcu
Neither the 'cbi' nor the 'fwi' have been include into the 'ajaxCUwx.js' or the 'ajax-dashboard.php' files as Cumulus does not produce data for the fire weather.


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 12:28 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
Hi Ken,
My php-ajax template doesn't work as I wish I've mentioned before that I've no decimals in the temperatue (I use a comma in Cumulus) although this site http://www.meteoelvas.com/estacao/wxindex.php (not mine) shows the values with decimals (comma's)

I think it's something with the date notation in my CUtags.php the date is 18-2-2011 (day month year) but the date on my site is http://www.apeldoorn.tk/weer/wxindex.php 18/12/1999 (day december ?? 1999 ?? so very strange..) The page doesnt update by itself most values are correct allthough..

The CUtags.php is updated every 15 minutes and realtime.txt every 60 secs , the status page doesnt update for Cumulus weather data this is because the date is wrong I think.. the date notation in my realtime.txt is 18-02-11 (dd-mm-yy) I hope there will be a solution

BTW on your instruction page
Quote:
You should now be able to see a data file on your website
http://www.yourwebsite.com/realtime.txt

This file will be used by the ajaxCUwx.js JavaScript to provide AJAX updates to your pages.

It seems there is a code in ajaxCUwx.js looking for a 'valid' realtime.txt


Update I think the wrong readings have more to do with my WUtag.php http://www.apeldoorn.tk/weer/CUtags.php?sce=dump
Regards Ron

_________________
Ron

Image

Apeldoorn, The Netherlands


Last edited by nitrx on Fri Feb 18, 2011 2:41 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 1:46 pm 
Offline

Joined: Sun May 10, 2009 8:52 pm
Posts: 499
Location: Springfield, IL
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Hi Ron,
look at ajaxcu.js
this is what that line should read
var realtimeFile = 'http://www.apeldoorn.tk/weer/realtime.txt';
Beau


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 1:54 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
n9mfk wrote:
Hi Ron,
look at ajaxcu.js
this is what that line should read
var realtimeFile = 'http://www.apeldoorn.tk/weer/realtime.txt';
Beau


Hi Beau
The realtime.txt is read (I changed it but no difference) it has something to do with the date (I think) in my realtime.txt
Ron

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 3:22 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
Hi Beau and Ron,

Beau, the value for the realtimefile in ajaxCUwx.js should NOT include the http://hostname, but only the URL path from the root to the realtime file. While adding the http://hostname works for your own site, if you tried it using a different hostname (not your site), it would be rejected as a cross-site-scripting error (by design of the XMLHttpRequest method. So, Ron's setting of '/weer/realtime.txt' is correct.

Ron,
I've discovered the comma decimal and date format issue while working with actioman in Lisbon and have updates you can try for the dashboard/gizmo/ajaxCUwx/CU-defs/wxstatus that will allow you to display the PHP and AJAX updates using comma decimal.

Give the attached a try. When actioman and I have finished working on the issues, I'll release the update for all :)

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: Fri Feb 18, 2011 4:41 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
Thanks Ken, the updates works fine (I only don't see the green 'flashupdates')

So far I'm glad you found a solution this give's me inspiration to go further with this template :clap:

Thanks,
Ron

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 4:44 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
nitrx wrote:
Thanks Ken, the updates works fine (I only don't see the green 'flashupdates')

So far I'm glad you found a solution this give's me inspiration to go further with this template :clap:

Thanks,
Ron

Hi Ron,
Don't forget to change the realtimeFile entry in the ajaxCUwx.js .. it defaults to /realtime.txt and I think you're using /weer/realtime.txt

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 4:55 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
Hi Ken , I've changed it to /weer/realtime.txt [strike]but there seems no difference..[/strike] and it WORKS

Thanks Ron

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 7:15 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
Thanks for testing it Ron :)

I'm going to do an update to the get-uv-forecast-inc.php to allow comma decimal in the output.. then your entire PHP and AJAX updates will have that capability.

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 7:27 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
You're welcome just one point the temperature 'feels like' I think it's the windchill has no decimal currently I've 0,7 C and feels like 1

Best regards,
Ron

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Now available: AJAX/PHP multilingual website templates
PostPosted: Fri Feb 18, 2011 8:57 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
I've done an update to the get-uv-forecast-inc.php and wxuvforecast.php page which shows the forecasts using comma decimals (if your site uses comma decimals).

Ron, you should try these too:


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: Fri Feb 18, 2011 9:43 pm 
Offline

Joined: Sun May 10, 2009 8:52 pm
Posts: 499
Location: Springfield, IL
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Hi ken
i miss read this
Quote:
URL location of realtime.txt relative to document root of website


on an other note if i went to add some bata tags like monthly gust speed an date
what files wood it need to be in Thanks beau


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 796 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 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