Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Error in testtags.php

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

saratogaWX wrote:Also, it looks like your CUtags.php is not being uploaded fully

http://www.torrevieja-weather.net/CUtags.php?sce=dump

shows nothing, so your site will show no current weather data.
I got this error message in my Cumulus software :cry:

Code: Select all

08/10/2011 23:27:14 : Error reading alltime.ini: Could not convert variant of type (UnicodeString) into type (Date)
08/10/2011 23:27:14 : Error on line 1 of dayfile.txt: '7;23:50;25' is not a valid floating point value
What do I do?
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

nitrx wrote:Well your solar data are definitely wrong http://www.torrevieja-weather.net/wxastronomy.php sunset same time as sunrise and http://www.torrevieja-weather.net/wxindex.php?sce=view gives a great mess :o
Damn...all this after time change on my computer.
Any idea what to do guys??

I really thogh we was getting there :?
User avatar
saratogaWX
Posts: 1238
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: Error in testtags.php

Post by saratogaWX »

First fix the Cumulus error you cited, then Cumulus can begin uploading your data again.

With the CUtags.php not being uploaded by Cumulus, and a 'blank' one on your website currently, ALL your website pages will have a problem.

Fix Cumulus first, then we can continue debugging the site setup :)
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: Error in testtags.php

Post by nitrx »

Well as I said your data are not consequent I should delete the last recorderd data unplug your station and update as Ken proposed.
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

saratogaWX wrote:First fix the Cumulus error you cited, then Cumulus can begin uploading your data again.

With the CUtags.php not being uploaded by Cumulus, and a 'blank' one on your website currently, ALL your website pages will have a problem.

Fix Cumulus first, then we can continue debugging the site setup :)
After a restart of Cumulus and passing midnight did the fix by it self...seems that way - no error reports now.

I change my default language in 'Settings.php' to 'en', and should I put back the:

Code: Select all

$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language 
'January','February','March','April','May','June',
'July','August','September','October','November','December'
);
...since we did the time change to english?

Will get a new 'Settings-weather.php' in place now.
But what string was missing there, Ken?
User avatar
saratogaWX
Posts: 1238
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: Error in testtags.php

Post by saratogaWX »

Hmmm... well http://www.torrevieja-weather.net/CUtags.php?sce=dump still shows as blank. Can't do more debugging until it shows the WX[] variables displayed.

You should put in Settings.php the $SITE['monthNames'] set that reflects what Cumulus is going to use in your CUtags.php.
Use the English one if that's what you have set Cumulus to use, and the Norwegian one if Cumulus is still set to use Norwegian.

Post a reply when http://www.torrevieja-weather.net/CUtags.php?sce=dump shows data again.. then we can restart the debugging.
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

saratogaWX wrote:Hmmm... well http://www.torrevieja-weather.net/CUtags.php?sce=dump still shows as blank. Can't do more debugging until it shows the WX[] variables displayed.

You should put in Settings.php the $SITE['monthNames'] set that reflects what Cumulus is going to use in your CUtags.php.
Use the English one if that's what you have set Cumulus to use, and the Norwegian one if Cumulus is still set to use Norwegian.

Post a reply when http://www.torrevieja-weather.net/CUtags.php?sce=dump shows data again.. then we can restart the debugging.
I really don't know how to get the CUtags to show dump data again, Ken???
I replaced the mentioned files, but noticed this in 'CUtags.php'

Code: Select all

Save this page as CUtagsT.htm and place in your cumulus\webfiles directory
 Use the Cumulus, Configuration, Internet, Files panel select an unused entry.
 In the Local Filenames, press Browse and select the CUtagsT.htm file as the local filename.
...should this to be uploaded as well as the'CUtags.txt' against the 'CUtags.php' ??

Regards,
Frank.
User avatar
saratogaWX
Posts: 1238
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: Error in testtags.php

Post by saratogaWX »

You get the CUtags.php to respond to a ?sce=dump when you have Cumulus successfully upload CUtags.txt to CUtags.php on your website.

Just unpack another CUtags.txt from the CU-plugin.zip, and follow the Cumulus setup instructions at
http://saratoga-weather.org/wxtemplates ... umulus.php and all should be well.
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

saratogaWX wrote:You get the CUtags.php to respond to a ?sce=dump when you have Cumulus successfully upload CUtags.txt to CUtags.php on your website.

Just unpack another CUtags.txt from the CU-plugin.zip, and follow the Cumulus setup instructions at
http://saratoga-weather.org/wxtemplates ... umulus.php and all should be well.
OK...the 'CUtags' are in place (manuel upload), Ken...please have a look :)
EDIT: The cumulus are uploading a blank (0kb) file!!??
What is going on??


NB: When I restart the Cumulus I got this ftp error:

Code: Select all

09/10/2011 02:03:43 : Error on line 1 of dayfile.txt: '7;23:50;25' is not a valid floating point value
Should I reset my Davis and do a new install on the Cumulus?

Regards,
Frank.
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

I uninstalled Cumulus and all files and did a fresh new install!
FINALLY :clap: ...but still got the 'Updates paused - reload page to start @', Ken?

Regards,
Frank.
User avatar
saratogaWX
Posts: 1238
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: Error in testtags.php

Post by saratogaWX »

Looks like the reinstall of Cumulus cleared up the issues :)

The dates appear to be working ok now (Cumulus using English month names instead of the former Norwegian).

The pausing of the update after 12 refreshes is the default for the AJAX script (to prevent excess load on your webserver in case someone just sits on your page with an open browser).

You can change it to update forever by changing the ajaxCUwx.js script from

Code: Select all

var maxupdates = 12;	         // Maxium Number of updates allowed (set to zero for unlimited)
to

Code: Select all

var maxupdates = 0;	         // Maxium Number of updates allowed (set to zero for unlimited)
Be aware that AJAX doesn't update all of the data displayed on your home page, only some of it (that which is available in the realtime.txt file), so if you go too long without reloading the page, some of the data will be stale and not reflecting the current and near-past conditions. That's the reason I recommend leaving the update timer set as it is to force folks to get a fresh PHP copy of all the 'now' conditions, then use the AJAX updates as a bonus for the viewing of real-time conditions.

Best regards,
Ken
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

saratogaWX wrote:Looks like the reinstall of Cumulus cleared up the issues :)

The dates appear to be working ok now (Cumulus using English month names instead of the former Norwegian).

The pausing of the update after 12 refreshes is the default for the AJAX script (to prevent excess load on your webserver in case someone just sits on your page with an open browser).

You can change it to update forever by changing the ajaxCUwx.js script from

Code: Select all

var maxupdates = 12;	         // Maxium Number of updates allowed (set to zero for unlimited)
to

Code: Select all

var maxupdates = 0;	         // Maxium Number of updates allowed (set to zero for unlimited)
Be aware that AJAX doesn't update all of the data displayed on your home page, only some of it (that which is available in the realtime.txt file), so if you go too long without reloading the page, some of the data will be stale and not reflecting the current and near-past conditions. That's the reason I recommend leaving the update timer set as it is to force folks to get a fresh PHP copy of all the 'now' conditions, then use the AJAX updates as a bonus for the viewing of real-time conditions.

Best regards,
Ken
Hi Ken...totally agree on what your meaning about the real-time...just though there was another error to fix.
Thanks a million for you're help and of course to Ron and Ray as well :)

Now it's time to make some adjustment and to look around for making improvement to the site.

Best regards,
Frank.
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

SOLVED !! (removed the tag in 'auto update' - Cumulus ftp)

Just one last thing.
Shouldn't the 'wxabout.php' be translated automatic with choose of language like the rest??
User avatar
saratogaWX
Posts: 1238
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: Error in testtags.php

Post by saratogaWX »

The translations used with the wxabout.php page are separate pages named wxabout-LL.html

There is no 'magic' to automatically translate those paes -- each one has to be done individually with your own content.

I suppose that you could use Google translate on your English page to create the text for use in the wxabout-*.html pages for all languages you don't happen to speak :) My guess is that you can easily do the Norwegian (and likely Spanish) pages yourself and use Google translate on the rest.

Also, I noticed you selected 'mb' instead of 'hPa' for the Barometer units in the PHP settings.
The ajaxCUwx.js script can be modified to display that also by changing

Code: Select all

  if (useunits != 'E') { // set to metric
	uomTemp = '°C';
	uomWind = ' km/h';
	uomBaro = ' hPa';
	uomRain = ' mm';
	uomHeight = ' m';
	dpBaro = 1;
	dpRain = 1;
	dpWind = 1;
  }
to

Code: Select all

  if (useunits != 'E') { // set to metric
	uomTemp = '°C';
	uomWind = ' km/h';
	uomBaro = ' mb';
	uomRain = ' mm';
	uomHeight = ' m';
	dpBaro = 1;
	dpRain = 1;
	dpWind = 1;
  }
then the display won't change from mb to hPa when the AJAX cuts in.

I do recommend you use the flyout-menu instead of the menubar-based menu .. there are other pages automatically enabled with Cumulus (and the trends page disabled) if you use the flyout-menu instead.

Best regards,
Ken
WX_Frank
Posts: 82
Joined: Sun 24 Jul 2011 9:12 am
Weather Station: Davis Vantage Vue
Operating System: Win7
Location: Torrevieja/Spain
Contact:

Re: Error in testtags.php

Post by WX_Frank »

saratogaWX wrote:The translations used with the wxabout.php page are separate pages named wxabout-LL.html

There is no 'magic' to automatically translate those paes -- each one has to be done individually with your own content.

I suppose that you could use Google translate on your English page to create the text for use in the wxabout-*.html pages for all languages you don't happen to speak :) My guess is that you can easily do the Norwegian (and likely Spanish) pages yourself and use Google translate on the rest.

Also, I noticed you selected 'mb' instead of 'hPa' for the Barometer units in the PHP settings.
The ajaxCUwx.js script can be modified to display that also by changing

Code: Select all

  if (useunits != 'E') { // set to metric
	uomTemp = '°C';
	uomWind = ' km/h';
	uomBaro = ' hPa';
	uomRain = ' mm';
	uomHeight = ' m';
	dpBaro = 1;
	dpRain = 1;
	dpWind = 1;
  }
to

Code: Select all

  if (useunits != 'E') { // set to metric
	uomTemp = '°C';
	uomWind = ' km/h';
	uomBaro = ' mb';
	uomRain = ' mm';
	uomHeight = ' m';
	dpBaro = 1;
	dpRain = 1;
	dpWind = 1;
  }
then the display won't change from mb to hPa when the AJAX cuts in.

I do recommend you use the flyout-menu instead of the menubar-based menu .. there are other pages automatically enabled with Cumulus (and the trends page disabled) if you use the flyout-menu instead.

Best regards,
Ken
OK..thanks for you observant sharp eyes, Ken -done-...and will change to the flyout-menu later tonight :)

Regards,
Frank.
Post Reply