Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

cumuluswebtags.php file get messed up

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

Post Reply
Trainman
Posts: 27
Joined: Fri 21 May 2010 5:47 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Kvistgård Danmark
Contact:

cumuluswebtags.php file get messed up

Post by Trainman » Sat 27 Apr 2019 6:03 pm

Hi I have been running Cumulus ver.1.9.4 for several years and have now decided it's time to move on to Cumulus MX. I have downloaded the latest version and I believe I have done what I should, according to the wiki and the faq. Cumulus is running nicely on my PC, and uploading, to various sites like wunderground, is working fine. Uploading realtime.txt is ok and working.
But the cumuluswebtags.php files are putting my site down. I have downloaded the cumuluswebtag file from my site, and I can see, that it is, in some way corrupted. In some tags, qoutes are missing.
I can figure out, that something is going wrong in the processing from cumuluswebtags.txt to cumuluswebtags.php, but what?

I am using the ini-files from Cumulus ver.1.. and have changed decimal commas in to periods.

I have search the forum, but have not found an answer.
I have uploaded a screenshot of the file opened in dreamweaver..

I have returned to ver. 1.9.4 until I have sorted this out.
You do not have the required permissions to view the files attached to this post.

water01
Posts: 1522
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: cumuluswebtags.php file get messed up

Post by water01 » Sat 27 Apr 2019 6:34 pm

You need to read the first post in the Cumulus MX announcement viewtopic.php?f=27&t=12908 and amend you tags file accourdingly.

A lot of the month, day, hour and other tag formatters changed in Cumulus MX to upper case from lower case and vice versa and some were completely different. These are all documented at the bottom of the first post in a table. I believe they are also documented in the Wiki https://cumuluswiki.wxforum.net/a/Main_Page

User avatar
mcrossley
Posts: 5518
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: cumuluswebtags.php file get messed up

Post by mcrossley » Sat 27 Apr 2019 7:32 pm

Your tag file is assuming that most of the decimal values are numeric, but your locale is using a comma for decimals. That will not work for PHP or JavaScript, they require dot decimals.

Have you changed your locale decimal format?

If you want to use comma decimals then you will have to quote all decimal values to turn them into strings... And hope your scripts do not use them in calculations!

Trainman
Posts: 27
Joined: Fri 21 May 2010 5:47 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Kvistgård Danmark
Contact:

Re: cumuluswebtags.php file get messed up

Post by Trainman » Sun 28 Apr 2019 7:18 am

mcrossley wrote:
Sat 27 Apr 2019 7:32 pm
Your tag file is assuming that most of the decimal values are numeric, but your locale is using a comma for decimals. That will not work for PHP or JavaScript, they require dot decimals.

Have you changed your locale decimal format?

If you want to use comma decimals then you will have to quote all decimal values to turn them into strings... And hope your scripts do not use them in calculations!

Thanks for trying to point me in the rigtht direction.
English is not my native language, so reading texts with a lot of technically English terms and understanding what is read is not easy.
I am doing calculations in my scripts, so your solution won't work. I think I will stick with cumulus 1.and see what happens in the year 2020.
Thanks again
Kind regards

Post Reply