Page 5 of 54

Re: Now available: AJAX/PHP multilingual website templates

Posted: Thu 17 Feb 2011 7:10 pm
by nitrx
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.

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 1:25 am
by actioman
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 2:50 am
by n9mfk
Hi Ken
were can fdl_low.gif fdl_low.gif be found also is cbi in the ajaxcu
thanks Beau

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 3:22 am
by gemini06720
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.

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 12:28 pm
by nitrx
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
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 1:46 pm
by n9mfk
Hi Ron,
look at ajaxcu.js
this is what that line should read
var realtimeFile = 'http://www.apeldoorn.tk/weer/realtime.txt';
Beau

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 1:54 pm
by nitrx
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 3:22 pm
by saratogaWX
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 4:41 pm
by nitrx
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 4:44 pm
by saratogaWX
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 4:55 pm
by nitrx
Hi Ken , I've changed it to /weer/realtime.txt [strike]but there seems no difference..[/strike] and it WORKS

Thanks Ron

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 7:15 pm
by saratogaWX
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 7:27 pm
by nitrx
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

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 8:57 pm
by saratogaWX
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:

Re: Now available: AJAX/PHP multilingual website templates

Posted: Fri 18 Feb 2011 9:43 pm
by n9mfk
Hi ken
i miss read this
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