Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 10:30 pm
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  [ 265 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 18  Next
Author Message
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Jun 13, 2009 11:09 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
miki41254 wrote:
Hi Steve, how can i replace windchill with heatindex?


You can't. I'd have to add it as an option - not too difficult. I'll see about doing it for the next version. Or I could just squeeze in another gauge for heat index and have both displayed.

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


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Jun 13, 2009 12:24 pm 
Offline
User avatar

Joined: Thu Nov 13, 2008 7:15 pm
Posts: 57
Location: Trenton, Ontario, Canada
Weather Station: National Geographic -Fine Offset
steve wrote:
When I try to view your realtime.txt file, I sometimes get a blank page and sometimes a 404 (with Firefox), but always a 404 with IE. I don't know how the banner script is apparently managing to get data from that. I am wondering if your realtime.txt is actually not going to http://levinweather.host22.com/realtime.txt and wherever it is actually going, the PHP banner script manages to pick it up from there, but http does not. If you turn on ftp logging, the realtimeftplog.txt file may give a clue.


I notice I have the same problem if I try either ftp or http for www.lionsden.darktech.org/weather/realtime.txt or any of the other cumulusrealtime files. except for the html one, I also get a 404, yet the files are there. Weird

_________________
Joe.
http://www.lionsden.darktech.org/weather


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Jun 13, 2009 12:56 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
franciscus wrote:
... if I try ... http for http://www.lionsden.darktech.org/weather/realtime.txt ..., I also get a 404,
Looks OK to me (IE8)

13/06/09 08:38:17 20.8 59 12.2 0.9 1.8 135 0.0 0.0 ....... etc.

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


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Jun 13, 2009 5:58 pm 
Offline
User avatar

Joined: Thu Nov 13, 2008 7:15 pm
Posts: 57
Location: Trenton, Ontario, Canada
Weather Station: National Geographic -Fine Offset
beteljuice wrote:
franciscus wrote:
... if I try ... http for http://www.lionsden.darktech.org/weather/realtime.txt ..., I also get a 404,
Looks OK to me (IE8)

13/06/09 08:38:17 20.8 59 12.2 0.9 1.8 135 0.0 0.0 ....... etc.


I tried in Firefox, as you were mentioning Firefox elsewhere. In any case, I still am unable to use the cumulusrealtime in any browser :(. Tried changing .xap extention to .txt, and that did not help. Changed it back again. Still get a 404 on finding cumulusrealtime.xap, or xml.

_________________
Joe.
http://www.lionsden.darktech.org/weather


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Jun 13, 2009 6:36 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
franciscus wrote:
In any case, I still am unable to use the cumulusrealtime in any browser


I think your web server needs configuring for xml files (I get a 'forbidden' when trying to access your xml file, so that may be a permissions problem). Unfortunately I don't know anything about Xitami so I can't really help.

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


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sat Jun 13, 2009 7:09 pm 
Offline
User avatar

Joined: Thu Nov 13, 2008 7:15 pm
Posts: 57
Location: Trenton, Ontario, Canada
Weather Station: National Geographic -Fine Offset
steve wrote:
franciscus wrote:
In any case, I still am unable to use the cumulusrealtime in any browser


I think your web server needs configuring for xml files (I get a 'forbidden' when trying to access your xml file, so that may be a permissions problem). Unfortunately I don't know anything about Xitami so I can't really help.


I'll see if I can find anything, and failing that, ask the authors <G>. They have a new version, but, I dont like it. Opens in a DOS window, and have yet to get it to recognize where my webpages are located :(

_________________
Joe.
http://www.lionsden.darktech.org/weather


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 12:48 am 
Offline

Joined: Sun Apr 05, 2009 12:15 am
Posts: 7
Location: Levin New Zealand
Weather Station: Fine Offset WS 1081 PC
Quote:
When I try to view your realtime.txt file, I sometimes get a blank page and sometimes a 404 (with Firefox), but always a 404 with IE. I don't know how the banner script is apparently managing to get data from that. I am wondering if your realtime.txt is actually not going to http://levinweather.host22.com/realtime.txt and wherever it is actually going, the PHP banner script manages to pick it up from there, but http does not. If you turn on ftp logging, the realtimeftplog.txt file may give a clue.

The realtime.txt is being uploaded to the site. I changed from .txt to .html and it displays in the browser http://levinweather.host22.com/realtime.html
It appears you cannot browse any .txt files form the site.
Here is some of the realtimeftplog.txt

12:36:04:531 >|226-File successfully transferred|

12:36:04:531 >|226 0.219 seconds (measured here), 0.97 Kbytes per second|

12:36:04:531 ! Next3PutAsync
12:36:04:531 ! HighLevelAsync 0
12:36:04:531 ! HighLevelAsync done
12:36:06:515 00FC9610 TriggerDataSent 932
12:36:06:750 >|200 TYPE is now ASCII|

12:36:06:750 ! HighLevelAsync 0
12:36:06:765 00FC9610 TriggerDataSent 932
12:36:07:015 >|200 PORT command successful|

12:36:07:015 ! HighLevelAsync 0
12:36:07:015 00FC9610 TriggerDataSent 932
12:36:07:546 ! Data Session requested
12:36:07:562 00FC9D20 TCustomWSocket.Shutdown 1 1056
12:36:07:562 ! Data Session opened
12:36:07:562 00FC9D20 TriggerDataSent 1428
12:36:07:562 >|150 Connecting to port 52492|

12:36:07:562 DataSocketPutDataSent 219
12:36:07:562 00FC9D20 TriggerDataSent 1428
12:36:07:562 DataSocketPutDataSent 0
12:36:07:562 00FC9D20 TCustomWSocket.Shutdown 1 1428
12:36:07:796 ! Data Session closed
12:36:07:796 ! Next3PutAsync
12:36:07:796 00FC9D20 TCustomWSocket.Shutdown 1 1428
12:36:07:796 >|226-635 files used (10%) - authorized: 6000 files|

12:36:07:796 >|226-13471 Kbytes used (0%) - authorized: 1536000 Kb|

12:36:07:796 >|226-File successfully transferred|

12:36:07:796 >|226 0.268 seconds (measured here), 0.79 Kbytes per second|

12:36:07:796 ! Next3PutAsync
12:36:07:796 ! HighLevelAsync 0
12:36:07:796 ! HighLevelAsync done
Image


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 1:39 am 
Offline
User avatar

Joined: Thu Nov 13, 2008 7:15 pm
Posts: 57
Location: Trenton, Ontario, Canada
Weather Station: National Geographic -Fine Offset
franciscus wrote:
steve wrote:
franciscus wrote:
In any case, I still am unable to use the cumulusrealtime in any browser


I think your web server needs configuring for xml files (I get a 'forbidden' when trying to access your xml file, so that may be a permissions problem). Unfortunately I don't know anything about Xitami so I can't really help.


I'll see if I can find anything, and failing that, ask the authors <G>. They have a new version, but, I dont like it. Opens in a DOS window, and have yet to get it to recognize where my webpages are located :(


This is what I found. Apparently a script is needed, if I read this right, and that is a little out of my league. Batch files in DOS were no problem, and HTML code is doable, but this is, for me, questionable. I know it shows a sample, and if that is good enough I will use that, but I am guessing that the html file you included is in reality also a script?

The GSL Language
Xitami uses the GSL language to describe how an XML file is shown. GSL is iMatix's Open Source template-based code-generation language. The GSLgen engine is built-in to Xitami, and GSLgen is also provided as a seperate command-line tool with Xitami.

If you want to use server-side XML processing, you should download the GSLgen tool from imatix.com, and study the GSL language. It's quite simple. This is an example GSL script, provided as an example in the webpages directory:

<HTML><BODY><CENTER>
<H1>Client Summary</H1>
<P>At $(date) $(time)
.for client
<H3>$(name:)</H3>
<P>$(address:)
<TABLE WIDTH="50%">
<TR><TD>Date:</TD><TD>Quantity:</TD><TD>Delivered:</TD></TR>
.define total = 0
.for order
<TR><TD>$(date:)</TD><TD>$(quantity:)</TD><TD>$(delivered:)</TD></TR>
.define total = total + quantity
.endfor
</TABLE>
<P>Total ordered: $(total)
.endfor
</CENTER></BODY></HTML>

By default, Xitami uses a script with the same name as the XML file (but with the extension .gsl). You can use a specific script by adding an attribute 'script' to the root item, e.g.:

<data script = "testxml.gsl" >

This is useful if you process several XML files through the same script.

Preparing Output From CGIs
One handy way to use XML files is in combination with CGIs. Your CGI program can create an XML file, then use the 302 HTTP code to redirect the request to the XML file.

Predefined Attributes
As well as the standard attributes (date, time, filename, script), the GSL script can access all the environment variables normally passed to a CGI program, such as REMOTE_USER.

Passing Arguments to The XML File
You can pass arguments to the the XML file processor by using the query string syntax:

http://xx.xx.xx.xx/myfile.xml?arg=value;arg=value;...
This is useful to override attributes like 'script'. All arguments passed in the query string are defined in the XML root item.

_________________
Joe.
http://www.lionsden.darktech.org/weather


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 2:36 am 
Offline
User avatar

Joined: Thu Nov 13, 2008 7:15 pm
Posts: 57
Location: Trenton, Ontario, Canada
Weather Station: National Geographic -Fine Offset
franciscus wrote:
steve wrote:
franciscus wrote:
In any case, I still am unable to use the cumulusrealtime in any browser


I think your web server needs configuring for xml files (I get a 'forbidden' when trying to access your xml file, so that may be a permissions problem). Unfortunately I don't know anything about Xitami so I can't really help.


This is what I found. Apparently a script is needed, if I read this right, and that is a little out of my league. Batch files in DOS were no problem, and HTML code is doable, but this is, for me, questionable. I know it shows a sample, and if that is good enough I will use that, but I am guessing that the html file you included is in reality also a script?

The GSL Language
Xitami uses the GSL language to describe how an XML file is shown. GSL is iMatix's Open Source template-based code-generation language. The GSLgen engine is built-in to Xitami, and GSLgen is also provided as a seperate command-line tool with Xitami.

If you want to use server-side XML processing, you should download the GSLgen tool from imatix.com, and study the GSL language. It's quite simple. This is an example GSL script, provided as an example in the webpages directory:

<HTML><BODY><CENTER>
<H1>Client Summary</H1>
<P>At $(date) $(time)
.for client
<H3>$(name:)</H3>
<P>$(address:)
<TABLE WIDTH="50%">
<TR><TD>Date:</TD><TD>Quantity:</TD><TD>Delivered:</TD></TR>
.define total = 0
.for order
<TR><TD>$(date:)</TD><TD>$(quantity:)</TD><TD>$(delivered:)</TD></TR>
.define total = total + quantity
.endfor
</TABLE>
<P>Total ordered: $(total)
.endfor
</CENTER></BODY></HTML>
.


I seem to have fixed the problem I copied the above script to the weather directory, renamed it cumulusrealtime.gsl, and suddenly everything worked.

http://www.lionsden.darktech.org/weathe ... ltime.html


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 8:55 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
ChookBennett wrote:
The realtime.txt is being uploaded to the site. I changed from .txt to .html and it displays in the browser http://levinweather.host22.com/realtime.html
It appears you cannot browse any .txt files form the site.


That's strange. I can understand web servers needing configuring to serve .xap files etc, but to block .txt files is perverse. I think you need to speak to your provider about it.

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


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 8:59 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
franciscus wrote:
I seem to have fixed the problem I copied the above script to the weather directory, renamed it cumulusrealtime.gsl, and suddenly everything worked.


I can't see how that script can possibly have anything to do with it - but it's working now, and that's the main thing.

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


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 12:10 pm 
Offline
User avatar

Joined: Thu Nov 13, 2008 7:15 pm
Posts: 57
Location: Trenton, Ontario, Canada
Weather Station: National Geographic -Fine Offset
steve wrote:
franciscus wrote:
I seem to have fixed the problem I copied the above script to the weather directory, renamed it cumulusrealtime.gsl, and suddenly everything worked.


I can't see how that script can possibly have anything to do with it - but it's working now, and that's the main thing.


Apparently, from what I can gather from the many pages of html directions I have, that script interpets the XML file. Confusing to me <G> but, like you say, it works and that is the main thing

Still, I have found one minor problem While the times displayed at the bottom of the page are correct, the time displayed on the upper left show in Zulu time, i.e. GMT. Weather: 13:30 when in fact it is 08:30 here in Canada. Have I missed something?

_________________
Joe.
http://www.lionsden.darktech.org/weather


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 12:30 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
franciscus wrote:
Still, I have found one minor problem While the times displayed at the bottom of the page are correct, the time displayed on the upper left show in Zulu time, i.e. GMT. Weather: 13:30 when in fact it is 08:30 here in Canada. Have I missed something?


That's because that's my data you're displaying. Either you haven't edited the xml file to point at your realtime.txt file, or you have edited it, but Cumulus Realtime isn't able to parse it and is using the defaults. When I try to view http://www.lionsden.darktech.org/weather/CumulusRealtime.xml I get a strange page back that says "Xitami Transfer Pipes". So I suspect that your XML file still isn't being served correctly, just now it isn't returning an error.

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


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 12:49 pm 
Offline
User avatar

Joined: Thu Nov 13, 2008 7:15 pm
Posts: 57
Location: Trenton, Ontario, Canada
Weather Station: National Geographic -Fine Offset
steve wrote:
franciscus wrote:
Still, I have found one minor problem While the times displayed at the bottom of the page are correct, the time displayed on the upper left show in Zulu time, i.e. GMT. Weather: 13:30 when in fact it is 08:30 here in Canada. Have I missed something?


That's because that's my data you're displaying. Either you haven't edited the xml file to point at your realtime.txt file, or you have edited it, but Cumulus Realtime isn't able to parse it and is using the defaults. When I try to view http://www.lionsden.darktech.org/weather/CumulusRealtime.xml I get a strange page back that says "Xitami Transfer Pipes". So I suspect that your XML file still isn't being served correctly, just now it isn't returning an error.


Strange. so while the script file helps, it is getting the wrong info it seems. I have changed the xml file to my realtime.txt. That line you are getting regarding the pipes is part of that script file. First line after the <BODY>. I guess I will have to do some more searching.

_________________
Joe.
http://www.lionsden.darktech.org/weather


Top
 Profile  
 
 Post subject: Re: Realtime gauges v1.0.0.3 available for download
PostPosted: Sun Jun 14, 2009 4:44 pm 
Offline

Joined: Tue May 05, 2009 3:59 am
Posts: 18
Location: Oakland, NJ, USA
Weather Station: Davis Vantage Pro 2 & Vue
Operating System: Windows XP
Thanks to the new realtime.html page Steve made available that makes it easier for us html novices to make a page around the Cumulus realtime graphic, I've come up with this:

http://www.nctelecom.net/oaknjwx/realtime.html

The gradient in the background of the realtime graphic reflects colors used on my website, along the sand-colored background that I also use on my main site. The Cumulus realtime page fits perfectly into my website, while presenting great live data at the same time. I couldn't ask for much more.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 265 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 18  Next

All times are UTC


Who is online

Users browsing this forum: KevinF 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