Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Now available: AJAX/PHP multilingual website templates

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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.
User avatar
actioman
Posts: 118
Joined: Sat 20 Mar 2010 1:01 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Elvas, Portugal
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
Kind Regards, Manuel.

Image
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Now available: AJAX/PHP multilingual website templates

Post by n9mfk »

Hi Ken
were can fdl_low.gif fdl_low.gif be found also is cbi in the ajaxcu
thanks Beau
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Now available: AJAX/PHP multilingual website templates

Post 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.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
Last edited by nitrx on Fri 18 Feb 2011 2:41 pm, edited 1 time in total.
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Now available: AJAX/PHP multilingual website templates

Post 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
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by nitrx »

Hi Ken , I've changed it to /weer/realtime.txt [strike]but there seems no difference..[/strike] and it WORKS

Thanks Ron
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post 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:
You do not have the required permissions to view the files attached to this post.
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: Now available: AJAX/PHP multilingual website templates

Post 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
Post Reply