Page 4 of 4

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 10:02 pm
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?

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 10:04 pm
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 :?

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 10:07 pm
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 :)

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 10:09 pm
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.

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 10:24 pm
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?

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 10:29 pm
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.

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 11:09 pm
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.

Re: Error in testtags.php

Posted: Sat 08 Oct 2011 11:23 pm
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.

Re: Error in testtags.php

Posted: Sun 09 Oct 2011 12:18 am
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.

Re: Error in testtags.php

Posted: Sun 09 Oct 2011 1:28 am
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.

Re: Error in testtags.php

Posted: Sun 09 Oct 2011 4:25 am
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

Re: Error in testtags.php

Posted: Sun 09 Oct 2011 6:36 am
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.

Re: Error in testtags.php

Posted: Sun 09 Oct 2011 7:41 am
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??

Re: Error in testtags.php

Posted: Sun 09 Oct 2011 2:00 pm
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

Re: Error in testtags.php

Posted: Sun 09 Oct 2011 4:14 pm
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.