Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 12:48 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  [ 49 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: 'New Record' Light
PostPosted: Wed Mar 23, 2011 9:49 pm 
Offline

Joined: Sat Feb 26, 2011 3:49 pm
Posts: 17
Location: Hope, Maine
Weather Station: Davis Vantage Vue
Operating System: Microsoft Vista
First and foremost: Im not a programmer! I can safely, so far, navigate and make basic HTML changes!

Thanks to Dave I have a webpage for my station http://hopemaine.localweatherview.net. I was wondering if anyone could guide me on how to use the webtag "<#newrecord>"???

I would just like to alert visitors to the page to check out the "records" link when a record has been broken. I have searched the forum and have found a few users who are doing this, but not how. I can't figure out how to make use or write the script(?) to make use of the "1" of the webtag if the new record light is flashing. Maybe there isn't a simple solution for this???

Any help on doing this or guidance in the right direction would be appreciated.


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Thu Mar 24, 2011 8:51 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
HopeMaineWx wrote:
First and foremost: Im not a programmer! I can safely, so far, navigate and make basic HTML changes!

Thanks to Dave I have a webpage for my station http://hopemaine.localweatherview.net. I was wondering if anyone could guide me on how to use the webtag "<#newrecord>"???

I would just like to alert visitors to the page to check out the "records" link when a record has been broken. I have searched the forum and have found a few users who are doing this, but not how. I can't figure out how to make use or write the script(?) to make use of the "1" of the webtag if the new record light is flashing. Maybe there isn't a simple solution for this???

Any help on doing this or guidance in the right direction would be appreciated.

And you are? Anyway, glad to help, I'm surprised that the experts haven't responded, however there is stuff in here that covers this. With out checking the stuff, and giving you a post thread to check, I will add that for a begginer I will add that the experts baffle me (it's a great compliment you guys, you've been extremely helpful for me).
Anyway, here's a cheat mode for you....if you find a website that you would like to mimic, right click on it (not a picture) and select view source. This will show you the code that they use. This is no good for seeing where the <#newrecord> or other webtags go as they are replaced by Cumulus. Try it and you'll see. Don't forget to thank who the source came from.
This is what you want, in the indexT.html (opened in notepad), this is what I did (see my website to see if it's what you want):
Code:
<caption><img src="images/record_<#newrecord>.gif" title="New Record Indicator">Conditions at local time <#time>.&nbsp;&nbsp;<#currcond></caption>

You'll see the "Conditions at local time" looks familiar.
What I have saved on my site is two .gif images. One is a light that stays off and is saved as record0.gif and one which is a flashing light saved as record1.gif. What happens is Cumulus processes the normal webpages, if there is no record set then <#newrecord> is processed as a "0" thus the image put in is record0.gif (the off one), if Cumulus processes the IndexT.html page with a record it put inputs a 1 in the <#newrecord> webtag so that it calls for the picture record1.gif (the one with a flashing light). And that's it. All you need to do is get a light picture. If you can't save a flashing light .gif picture than you can (and this is what I did) make your own. Google "make a .gif" and that's what you can do. Supply two .jpg pictures, one with the light off, and one with the light on. It then put's them together and then save as a .gif. Easy. Hope I've made it simple for you.

Using this method of using webtags to change the way a website appears is a major influence in the way I've designed my website. It changes the pictures dependent of weather, day/night and predicting weather patterns and for use in providing pictures for current conditions (see my page to see what I mean).
There is a guy (on the forum) who is using the <#isday> webtag like myself, but for the weatherstyle.css so that is changes the whole appearance of the website depending whether it is day or night (weatherstyle<#isday>.css).
Have fun!

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Thu Mar 24, 2011 2:03 pm 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Ok, Beetlejuice has picked up on my sloppiness. So I have to point out some things:
In my code I had put <img src="images/record_<#newrecord>.gif thus the images you save will need to be record_0.gif and record_1.gif (and not record0.gif as posted).
Also the webtag for day/night is <#isdaylight> (and not <#isday>) :?
Anyway, I would (and others) would have been to your aid if you hadn't of sussed out my booboo.
For other webtags if you want to get carried away is found in the Wiki, under Cumulus "Webtags".

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Thu Mar 24, 2011 7:09 pm 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
You could get carried away and use the actual tags for the actual record, like here: http://www.synewave.co.uk/lehamelweather/extremes.php

_________________
Paul

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

Image Image


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Thu Mar 24, 2011 10:49 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
Hi can I just clarify what activates the Record alert and therefore the #newrecord tag? I have assumed it is only the all time records. Just want to confirm that a monthly or yearly record being broken will not activate it.

_________________
Many thanks
Helen

La Locherie Weather


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Thu Mar 24, 2011 10:56 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17559
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Hillbilly wrote:
Hi can I just clarify what activates the Record alert and therefore the #newrecord tag? I have assumed it is only the all time records. Just want to confirm that a monthly or yearly record being broken will not activate it.

That's right; basically, they give the current state of the flashing lights and tab indicators for the all-time records.

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


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Fri Mar 25, 2011 7:24 pm 
Offline
User avatar

Joined: Mon Jun 08, 2009 6:25 am
Posts: 333
Location: Wyndham Vale, Vic, Australia.
Weather Station: WH-1081 (Jaycar Digitech XC0348)
Operating System: XP SP3
Synewave wrote:
You could get carried away and use the actual tags for the actual record, like here: http://www.synewave.co.uk/lehamelweather/extremes.php
_very_ nice :clap: :clap: :clap:

_________________
--
Gerard

Image

http://weather.gkt.net.au
Member of http://www.auweather.net/


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Fri Mar 25, 2011 8:34 pm 
Offline

Joined: Sun Apr 18, 2010 9:47 am
Posts: 251
Location: Karoonda, SA
Weather Station: WH-1081
Operating System: Windows 7, Home Premium
Synewave wrote:
You could get carried away and use the actual tags for the actual record, like here: http://www.synewave.co.uk/lehamelweather/extremes.php


I have mine set up like yours, Synewave, but I used a transparent gif (blank image) rather than a dull light when there is no new record. I use the same flashing light (stolen from another site - could have been Synwave's - can't remember :oops: ) when there is a new record. I also indented all the other rows on my other pages the same amount so that all the tables look the same. My menu also has a flashing light when a new record has been set.

_________________
Bob

Image


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Sat Mar 26, 2011 2:12 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
tjaliwalpa wrote:
Synewave wrote:
You could get carried away and use the actual tags for the actual record, like here: http://www.synewave.co.uk/lehamelweather/extremes.php


I have mine set up like yours, Synewave, but I used a transparent gif (blank image) rather than a dull light when there is no new record. I use the same flashing light (stolen from another site - could have been Synwave's - can't remember :oops: ) when there is a new record. I also indented all the other rows on my other pages the same amount so that all the tables look the same. My menu also has a flashing light when a new record has been set.

Nice work Bob. I like what you've done at the top of your page, nice choice of colour grouping. I liked your scrolling marque, but this is much better.
What we need is someway to grab the latest time & date from the records page and use it as the "latest record created" date on the home page. Either use Javascript or the like, or request a new webtag (which I believe has been done).
Can anyone help with that?

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Sat Mar 26, 2011 9:33 am 
Offline
User avatar

Joined: Tue Sep 09, 2008 3:37 am
Posts: 696
Location: Auckland, New Zealand
Weather Station: wh-1081
Operating System: Weather Laptop - Windows 7 Pro
I get this when viewing Bob's page in Flock (Uses firefox 2.6)

Same in IE9 but it sometimes corrects itself.

Google Chrome and Firefox 4 look good.

Not work worrying about the Flock as it has passed it's Use By date, but just for FYI


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

_________________
Terry Wiltshire
http://www.janter.co.nz/weather/index.htm
Image


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Sat Mar 26, 2011 11:33 am 
Offline

Joined: Sun Apr 18, 2010 9:47 am
Posts: 251
Location: Karoonda, SA
Weather Station: WH-1081
Operating System: Windows 7, Home Premium
Super-T wrote:
I get this when viewing Bob's page in Flock (Uses firefox 2.6)

Same in IE9 but it sometimes corrects itself.

Google Chrome and Firefox 4 look good.

Not work worrying about the Flock as it has passed it's Use By date, but just for FYI


I know that in IE8, when using compatibility mode, the top frame is messed up and cut off as it is in Flock. I don't know about IE9 as I haven't installed it.

_________________
Bob

Image


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Sat Mar 26, 2011 7:33 pm 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
It's getting a bit 'off topic' now. ;)

_________________
Paul

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

Image Image


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Mon Mar 28, 2011 9:59 pm 
Offline

Joined: Sat Feb 26, 2011 3:49 pm
Posts: 17
Location: Hope, Maine
Weather Station: Davis Vantage Vue
Operating System: Microsoft Vista
MickinMoulden-

Thanks for all the great information, that was very useful. Sorry its taken me so long to respond back.
I knew about being able to "view source", but sometimes not knowing the the webtags being used and how they work in conjunction with other things its hard for me to break it all down.

My hang us was making the image work with new record webtag. First of all, I didn't know how use webtag correctly and write the HTML script? to make use of the 1 and 0. I was failing to use the underscore correctly as well so when the 1 or 0 resulted from the tag the correct image came up.

However you set me straight and when I finalize the web page with working lights I will post on here!
Thanks to others as well for their posts!

Mike Ames
Hope, Maine


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Tue Mar 29, 2011 2:36 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
HopeMaineWx wrote:
MickinMoulden-

Thanks for all the great information, that was very useful. Sorry its taken me so long to respond back.
However you set me straight and when I finalize the web page with working lights I will post on here!
Thanks to others as well for their posts!

Mike Ames
Hope, Maine

No worries Mike. Look forward to seeing the end result. :)

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: 'New Record' Light
PostPosted: Fri Aug 19, 2011 4:30 pm 
Offline

Joined: Wed May 06, 2009 6:29 pm
Posts: 1708
Location: Cheadle Hulme, Cheshire, England
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
I've been trying to add the new record lights to my site but the results are less than impressive. :oops:

This is what it looks like at the moment. http://www.cheadlehulmeweather.co.uk/record.htm

Ideally I'd like to hide the lights until a record is broken. Could some kind soul either describe how to do it or supply a couple of gifs please? I copied the code from an earlier message in this thread but I can't access any of the sites involved to see how they designed theirs.

Thanks.

Incidentally Steve, I notice your site has just the standard Cumulus pages. Do you have another one with any of these features you so kindly supply for the rest of us?

_________________
Cheers,
Ray, Cheshire.

Image


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


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