Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)

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

Legacy Cumulus 1 release 1.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

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 »

Yesterday template:

I've been playing with the wx-tags and made a template for the yesterday data (based on Ken's wxrecords.php).

I'm not sure if I've found the right tags but I think I've made it (have an headache too :roll: ) this is the Dutch version online http://www.apeldoorn.tk/weer/wxyesterday.php?lang=nl (there is only one additional translation made for Yesterday weather the English version is here http://www.apeldoorn.tk/weer/wxyesterday.php?lang=en , You don't have to make additional translations if you use the English version as far as I know.

Hopefully somebody can try this template , because I couldn't check rainfall and rainraite because it was dry yesterday. (I will not make a template for 'today'because those values are in the package).

Maybe I've forgot something , Attached a zip for the template.

Feedback is welcome, BTW Ray I don't use weather display and never will :mrgreen:

*edit* I did forgot the total rainfall for yesterday this seems to be the wx-tag rfallY but strange enough it gives a mm/hr instead only mm :?: see http://saratoga-weather.org/wxtemplates ... p?sce=dump OEPS my error.

New zip attached latest is the 'good' one
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 have a question maxupdates = 12;
once this comes up Updates paused - reload page to start @ 02/23/11 17:33:48 - updated 1736 sec ago the counter just keeps going up is there some way to stop it once it has paused
beau
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Now available: AJAX/PHP multilingual website templates

Post by beteljuice »

Hello Beau.
... updated 1736 sec ago the counter just keeps going up is there some way to stop it once it has paused ...
It's doing what it should do, It's telling you how long since the last update.

So why would you want to stop it ? - It would then be lying !!!!
Image
......................Imagine, what you will KNOW tomorrow !
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 »

Beteljuice,
because some time my eyes skip over paused - reload page to start
so my thinking was if the counting stops i wood see it
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 »

This Month Extremes:

I've made a template for this month extremes http://www.apeldoorn.tk/weer/wxmonthext ... hp?lang=en (English) http://www.apeldoorn.tk/weer/wxmonthext ... hp?lang=nl (Dutch) only transaltion made for 'Extremes this month'

Ken , I think the month WX-tags in CU-defs.php are wrong for Rain/Pressure (Baro) , I'm not sure about wind because all windextremes for me are reached in February 2011 so I can't check this. The temperatures are fine I think UPdate: I uploaded the wrong file :bash: the values are good. :)

zip attached

Grts,
Ron
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 »

Last template: This year extremes

one translation made 'Extremes this year' for the Dutch version http://www.apeldoorn.tk/weer/wxyearextremes.php?lang=nl English version http://www.apeldoorn.tk/weer/wxyearextremes.php?lang=en also made the flyout menu 'station extremes' .

attached wxyearextremes.php

Ron
You do not have the required permissions to view the files attached to this post.
User avatar
PaulMy
Posts: 3908
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by PaulMy »

Yesterday template:
I've been playing with the wx-tags and made a template for the yesterday data (based on Ken's wxrecords.php).
Feedback is welcome
I've added this and removed the Low Wind Chill and Highest Hourly Rainfall in Yesterday as I don't have these webtags.
Thanks Ron for sharing.
This Month Extremes
I've made a template for this month extremes
Last template:
This year extremes attached wxyearextremes.php
These are not working for me as I don't have the webtags and I presume you have customized from a database?

You've done what I wanted but couldn't :?: do yet :clap:
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
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 »

PaulMy wrote: These are not working for me as I don't have the webtags and I presume you have customized from a database?

You've done what I wanted but couldn't :?: :
Well if you have the latest vesrion of Cumulus and the latest updates from Ken it should have to work , it was rather easy when you have done one (the first give me headache :D ) later I found it great fun :!:
Ron
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 »

Paul I saw you're running Cumulus v1.9.0 (958) You need at least V1.9.1 so you better upgrade, I don't use a database for the templates.
Good luck,
Ron
User avatar
PaulMy
Posts: 3908
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by PaulMy »

Ah, and I was waiting for v.1.9.1 until Steve released it as non-Beta.

Thanks Ron,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Now available: AJAX/PHP multilingual website templates

Post by steve »

PaulMy wrote:Ah, and I was waiting for v.1.9.1 until Steve released it as non-Beta.
I'm thinking perhaps this weekend some time. Unless someone comes up with a serious bug.
Steve
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 »

Ken, sorry for the delay in my reply - I have been busy at other scripts and did not noticed your reply/comment (I had forgotten to subscribe to this thread). :oops:
saratogaWX wrote:Looks like I'm a few Beta tags short at 329 in the current prod+beta tags.txt .. guess I'll have to scour the beta forum for the missing ones.
No need, I will be attaching my latest version of 'tags.txt' (last updated yesterday - 400 alphabetically sorted tags).
saratogaWX wrote:...why are you also modifying the CU-defs.php file?
Because (at least) 4-6 Weather Display type tags were needed in one of the template I was playing with - thus I had to modify the 'CU-defs.php' to include those WD tags.
saratogaWX wrote:...but be aware that future releases of the plugin will probably replace the CU-defs.php file as more WD:CU matching variables are implemented.
That would be the last of my worries - I never update anything (software, scripts, templates, etc) before making a backup copy of the old stuff. As for the templates, they are always extracted into their own directory, away from the modified/in-use templates. When I decide to update a template, I compare the new template with the old template and enter only the modified sections of the code into my template - my templates are never replaced but only modified or updated thus keeping page formatting I prefer (without any tab characters).
saratogaWX wrote:...if you stuck to addressing the Cumulus-specific variablenames as $WX['variablename'] .. just makes your code potentially portable to all the other Cumulus template users instead of grounding it to your specific installation.
The templates I have been adapting to Cumulus have been using the $WX['variablename'] format - I have been using that format for the past years since I did some preliminary work with Kevin Reed and was introduced to the format. Although I spend many hours adapting the scripts, at no time have I ever planned nor thought of doing the modification to make the code portable - I make the modifications so the scripts/templates operate within my own installation. If someone like my scripts/templates, I will gladly modify them for their own use. I tried once to produce portable code but that experience proved unrewarding... :evil:
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 have a question why is forecast.txt not stored in the cache folder?
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:...why is forecast.txt not stored in the cache folder?
Because the code for the 'forecast.txt' file in 'advforecast2.php' does not point to the cache directory.

If you want to make sure the 'forecast.txt' file is saved in the cache directory (as it should be), you will have to modify the 'advforecast2.php' script and change the path of the variable '$cacheName' - but, remember that modifying the 'advforecast2.php' script will make it non-compliant with the template set and you risk the modified script to be overwritten when a new version of 'advforecast2.php' is released.
User avatar
saratogaWX
Posts: 1211
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 »

n9mfk wrote:Hi Ken,
I have a question why is forecast.txt not stored in the cache folder?
thanks Beau
Ummmm... because I forgot to update the script :oops: :shock:

Now updated (advforecast2.php V2.18 - 27-Feb-2011) with common cache support.

Use the Updates page http://saratoga-weather.org/wxtemplates/updates.php for an updated copy.

Thanks Beau... and thanks Ray for the tags list.

Best regards,
Ken
Post Reply