Sandaysoft

Support forum for Cumulus weather station software
It is currently Sun May 26, 2013 3:37 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  [ 144 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  Next
Author Message
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 4:18 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
phtvs wrote:
Contact support (glohosting) is an option. I think that they can help you with the ftp problem.

That's me :D

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 4:20 pm 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
... and I had imagined there was whole team of support engineers wearing headsets! ;)

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 4:21 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
I've got a headset if that helps with the illusion :lol:

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 5:02 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1709
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
phtvs wrote:
I have attached a .zip file to my first post. You can unpack the file with winrar or unzip it with another zip unpacker!
Theo

Thanks Theo.

Neil, I appreciate a free unpackager is available but I never download rar files so it would only be needed for this one file. Thanks all the same.

_________________
Cheers,
Ray, Cheshire.

Image


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 5:15 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
Theo

I think there is a bug in the script.

I have been helping out Bob with uploading the icon set to his web space. He now has a folder named "icons" with all the necessary files. However, when I open the weatherconsole the icons do not show. If I look at the HTML code the script is producing you can see that the file names are wrong....

Code:
<th nowrap><img src=icons/2/1.png.png alt="daylight-icon" width="90" height="90" border="0"></th>
<th colspan="2" nowrap><img src=console-banner.png alt="banner" width="550" height="90" border="0"></th>
<th width="252" nowrap><img src=icons/0.png.png alt="forecast-icon" width="90" height="90" border="0" align="middle"></th>


1.png.png and 0.png.png


I had a look at your PHP ..
Code:
if ($forecastnumber = " "){
$icon = "icons/0.png";

}
if ($isdaylight = " "){
$daylighticon = "icons/2/1.png";
}


You can see you specifically add the '.png' at the end, however further down the PHP script (line 54 and 56) you also append the '.png' resulting in the wrong filename. (with a double .png)

I suspect if you change the first set of code (above) not to include '.png' it will work -- I have made the change for Bob and it works, but needs further testing

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 5:27 pm 
Offline
User avatar

Joined: Sat Dec 04, 2010 10:11 am
Posts: 94
Location: Lemmer
Weather Station: ws4000
Operating System: win7
Hi David,

Correct. I made a mistake in the script. Thanks for reporting the bug!

The reason was that cumulus sometime dont add the forecast numbers to the realtime.txt.
So I changed the script the easy way and put that line in the script that makes the forecast icon show even if the forecast numbers are not in the realtime.txt file.

Dont know why cumulus sometimes forget the forecast numbers.

Same story for the isdaylight icons.

I have changed the script and updated the files in my first post.


Theo

_________________
Sincerely, Theo
Image
http://www.weerstation-lemmer.nl


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 5:30 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
phtvs wrote:
The reason was that cumulus sometime dont add the forecast numbers to the realtime.txt.
Can you clarify what you mean? It must be putting something - zero?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 5:55 pm 
Offline
User avatar

Joined: Sat Dec 04, 2010 10:11 am
Posts: 94
Location: Lemmer
Weather Station: ws4000
Operating System: win7
steve wrote:
phtvs wrote:
The reason was that cumulus sometime dont add the forecast numbers to the realtime.txt.
Can you clarify what you mean? It must be putting something - zero?


Dont know what the problem is, but I have noticed that realtime.txt sometimes put a wrong value at the place of the forecast numbers.
Didnt noticed it before, but now that I use the realtime.txt for my script, (the icons are changing when the forecastnumbers are changing)
I noticed that sometimes there is an value out of the specified range. (field #49) Sometimes field 49 in realtime.txt is value "0c"

For the isdaylight field in realtime.txt (field #50) sometimes the field value is something else than 0 or 1. Noticed that the field has sometimes a value more than 1. Because my script is using this field to show a day/nightime icon, I have noticed the problem.

I dont know its a bug in cumulus, or just the problem that I want to read the realtime.txt file while its updated by cumulus at the same time.

Hope that you understand me. My English is not as good as my Dutch :lol:

Theo

_________________
Sincerely, Theo
Image
http://www.weerstation-lemmer.nl


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 6:43 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
phtvs wrote:
just the problem that I want to read the realtime.txt file while its updated by cumulus at the same time.
I think it must be this, it's not really possible for the code to write the wrong format of values in there. And if it were, it would have caused problems with all the other software which uses realtime.txt and someone else would surely have noticed. Could you perhaps dump the contents of the file when your code detects a problem?

Is this on the PC, or on the web server? If on the web server, then you need to use the rename option, to avoid the possibility of the server having a partial file while it's being updated.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 7:14 pm 
Offline
User avatar

Joined: Sat Dec 04, 2010 10:11 am
Posts: 94
Location: Lemmer
Weather Station: ws4000
Operating System: win7
steve wrote:
phtvs wrote:
just the problem that I want to read the realtime.txt file while its updated by cumulus at the same time.
I think it must be this, it's not really possible for the code to write the wrong format of values in there. And if it were, it would have caused problems with all the other software which uses realtime.txt and someone else would surely have noticed. Could you perhaps dump the contents of the file when your code detects a problem?

Is this on the PC, or on the web server? If on the web server, then you need to use the rename option, to avoid the possibility of the server having a partial file while it's being updated.


Hi Steve,

The problem is on the server. Realtime.txt is updated very fast and reading from that file while cumulus is uploading it, its not so strange that it wont work correct. The apache error log on my server is showing the problem:

Code:
[Thu Jan 13 16:25:19 2011] [error] [client xxxxx] File does not exist: /home/weer/domains/weerstation-lemmer.nl/public_html/cumulus/icons/0c.png, referer: http://www.weerstation-lemmer.nl/cumulus/weatherconsole.php
[Thu Jan 13 16:25:35 2011] [error] [client xxxxx] File does not exist: /home/weer/domains/weerstation-lemmer.nl/public_html/cumulus/icons/0c.png, referer: http://www.weerstation-lemmer.nl/cumulus/weatherconsole.php
[Thu Jan 13 16:25:50 2011] [error] [client xxxxx] File does not exist: /home/weer/domains/weerstation-lemmer.nl/public_html/cumulus/icons/0c.png, referer: http://www.weerstation-lemmer.nl/cumulus/weatherconsole.php
[Thu Jan 13 16:25:52 2011] [error] [client xxxxx] File does not exist: /home/weer/domains/weerstation-lemmer.nl/public_html/cumulus/icons/0c.png, referer: http://www.weerstation-lemmer.nl/cumulus/weatherconsole.php
[Thu Jan 13 16:26:07 2011] [error] [client xxxxx] File does not exist: /home/weer/domains/weerstation-lemmer.nl/public_html/cumulus/icons/0c.png, referer: http://www.weerstation-lemmer.nl/cumulus/weatherconsole.php
[Thu Jan 13 16:26:19 2011] [error] [client xxxxx] File does not exist: /home/weer/domains/weerstation-lemmer.nl/public_html/cumulus/icons/0c.png, referer: http://www.weerstation-lemmer.nl/cumulus/weatherconsole.php


Im not so sure what is the best solution. Renaming realtime.txt is an option. Another one is retrying to read if the first attempt fails.

The strange thing is that the problem only occasionally occurs. I have tested the script for more than 24 hours now and the problem occurs just the 6 times that the error log shows.

I apologize that I gave the impression that it is a bug in cumulus, while it probably is not


Theo

_________________
Sincerely, Theo
Image
http://www.weerstation-lemmer.nl


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 7:52 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17614
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
If your ftp server supports it, you could try selecting the 'rename' option in Cumulus.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 8:47 pm 
Offline

Joined: Tue Jan 26, 2010 8:54 am
Posts: 107
Location: Mayenne, France
Weather Station: Maplin N96GY
Operating System: Vista Home Premium SP2
Synewave wrote:
... and I had imagined there was whole team of support engineers wearing headsets! ;)

:lol: And clutching a Napkin instead of an oily rag?

_________________
Many thanks
Helen

La Locherie Weather


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 9:26 pm 
Offline

Joined: Wed Feb 25, 2009 12:01 am
Posts: 351
Location: Woodland Park, Colorado USA
Weather Station: Zephyr PWS-1000TB(Fine/Offset)
Operating System: Windows 7 64bit
After getting help from daj, I now have icons, but the forecast icon never changes? It always shows "0.png" even though the forecast # is 5.

_________________
Bob

http://woodlandweather.org/


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 10:37 pm 
Offline
User avatar

Joined: Sat Dec 04, 2010 10:11 am
Posts: 94
Location: Lemmer
Weather Station: ws4000
Operating System: win7
bnwrx wrote:
After getting help from daj, I now have icons, but the forecast icon never changes? It always shows "0.png" even though the forecast # is 5.


Dont worry, I send you another version of the script tomorrow morning with working icons. (it's now 23:23 in The Netherlands, and my girlfriend wants some attention from me :lol:)

Im also working on a extra page with the gauges and the graph's on it.

Final goal is to make an complete console with realtime data, gauges and graphs, history data and much more.. 8-)

Theo

_________________
Sincerely, Theo
Image
http://www.weerstation-lemmer.nl


Top
 Profile  
 
 Post subject: Re: New Cumulus realtime console
PostPosted: Thu Jan 13, 2011 10:38 pm 
Offline
User avatar

Joined: Sat Dec 04, 2010 10:11 am
Posts: 94
Location: Lemmer
Weather Station: ws4000
Operating System: win7
Preview of the gauges page:

http://www.weerstation-lemmer.nl/cumulus/meters-5.html


Not ready yet. need to cleanup the code........

_________________
Sincerely, Theo
Image
http://www.weerstation-lemmer.nl


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 144 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 10  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