Sandaysoft

Support forum for Cumulus weather station software
It is currently Thu May 23, 2013 6:06 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Parameter difference
PostPosted: Thu Apr 26, 2012 9:49 am 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
Hi,

I use Cumulus v1.9.2.(1032) and discovered a parameter difference between the recordT.htm and the CumulusWebtags.php file. In recordT.htm you are using <#TheatindexH> (with missing (h)) which is filled with data. In CumulusWebtags.php you are using the string $TheathindexH which is not getting data. Although the files thismonthT.htm and this yearT.htm getting all their data correctly, do I not getting the data for the strings $MonthMaxTempLD and $YearMaxTempLD in the CumulusWebtags.php file.


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Thu Apr 26, 2012 12:12 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
Which release version of the 'cumuluswebtags.php' script/template are you using?

Although I have moved away from the script/template available in the Wiki Php webtags page, my 'cumuluswebtags.php' script/template is up-to-date (last updated April 12) and contains all the 'standard' tags available for Cumulus.

I checked the tags you mentioned above ('$TheatindexH', '$MonthMaxTempLD', and '$YearMaxTempLD') and they all contain data (a value) - the '$TheathindexH' tag does not exist in my script/template.


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Thu Apr 26, 2012 2:13 pm 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
I use the CumulusWebtags.php script last modified on 11 October 2011.
Just downloaded the 29 December version of the Wiki Php webtags page were $TheathindexH is changed in $TheatindexH so the parameter is filled with data right now.
Also $MonthMaxTempLD and $YearMaxTempLD are filled with data in this December 2011 version, so it seems that my problem is solved.
Where can I find the latest April 12 version you mentioned?.


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 1:04 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
Here is the updated file, slightly different format than the original file but with all the webtags ... up to version 1.9.3 build 1033 of Cumulus.


You do not have the required permissions to view the files attached to this post.


Last edited by gemini06720 on Sat Apr 28, 2012 1:40 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 1:17 pm 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
Thanks !!


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 2:07 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
I did not tested the template file on my system as I did not have any positions left in the Cumulus 'ini' file to add this new file name...

Please let me know, when viewing the processed PHP file, if any text or error message is displayed - nothing should normally be displayed.


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 2:26 pm 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
// cumuluswebtags.txt (Cumulus) - Last modified: 27 April 2012

Parse error: syntax error, unexpected T_STRING in cumuluswebtags.php on line 29


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 3:42 pm 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
Parse error on line 29 is fixed by retyping the line. (amd instead of and)

Add information:
I use Cumulus in multi language (English, Dutch and German).
http://www.herrewijnen.eu/weather
So I chose to use only the CumulusWebtag script and modified Gauge script
because of the used Javascript.

Have a nice weekend,
Regards


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 9:35 pm 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
I have implemented Cumulus v1.9.3 (1033) on my server, and running the
new month-by month all time option on my test server:
Http://www.iljef.nl/test/herrewijnen.eu/weather

Modified the monthlyrecordT.htm file, so I also can use this in multi language.
The only problems I have found till now is that monthly records are not coming
up in the right month (April for now). I also can’t fill the months before with
data the way Steve described in his new beta release announcement.
I know it’s a beta release and has to be patient till the final release is coming.


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 10:04 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
All your 'timestamp' variables are identical and wrong (30th Dec 1999), and there is no Javascript instruction in your page to 'change' to current month.

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Fri Apr 27, 2012 10:37 pm 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
Your data for April is ok, but you have to initialise the history data for each month from Steve's instructions here: http://sandaysoft.com/forum/viewtopic.php?f=2&t=7341

In addition, I found a few errors had crept in to my dayfile.txt, which had to be corrected before everything worked properly.

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Sat Apr 28, 2012 1:54 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
herrewj wrote:
Parse error: syntax error, unexpected T_STRING in cumuluswebtags.php on line 29
Thanks. The error in line number 29 was corrected and a new ZIP file uploaded.

As for the problem with the dates... Since your server seems to have PHP available, you might/will have to create a new PHP functions to process all dates so that each dates is 'parsed' into individual variables and then re-combined as full dates after having been translated - this is what I have done on my Month-By-Month Extremes page (I might not translate the dates but I completely reformat the way they are displayed).


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Sat Apr 28, 2012 10:51 am 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
@ beteljuice
Thanks for your message. I have seen what you mean regarding the timestamps. Need some study to find out what is the cause of that issue.
About the Jacascript I really don’t know what you mean because I have not add, changed or removed any Javascript from the original source.

@GraemT
Thanks for your message. Again I should look if I’m able to fille the data like Steve described.

@gemini06720
CumulusWebtags script running OK. The translating of the Month-by-Month page to PHP is not the problem I think. It was less work than all the other pages and the data for April seems to be ok.
I do not get the history data at the moment. Also something wrong that the page is not coming in the current month. I don’t know what the cause of the issue right now. Someone mentioned something about a missing Javascript, but I haven’t add, changed or removed javascripts from the original source, only add some PHP be course of translated text.


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Sat Apr 28, 2012 2:13 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
If you were processing the page by Cumulus the JavaScript you would need AT THE BOTTOM of the <body> section would be:
Code:
<script type="text/javascript">
changeData(<#month> -1);
</script>


As you are using PHP to 'pre'-process things, there are all sorts of ways you could get the 'month' number variable.

REMEMBER: changeData() is using 0 => 11, NOT 1 => 12

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Parameter difference
PostPosted: Sat Apr 28, 2012 2:28 pm 
Offline
User avatar

Joined: Tue Oct 19, 2010 6:15 am
Posts: 37
Location: Herzlake, Germany
Weather Station: Fine Offset WH3080
Operating System: SBS2003
@beteljuice
Thanks very much, I really didn’t know that I needed such a
script for running the month-by-month option of Cumulus.
I add the script and it works fine now. Again thanks !!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group