Page 3 of 4

Re: 'New Record' Light

Posted: Wed 28 Dec 2011 1:11 am
by krmidas
I've tried to pick up the methodology to trigger the record lights in this discussion, but am having trouble. Is there a tutorial anywhere that explains how to use the "new record" webtags?

I may be oversimplifying things, but is there a piece of HTML that forces the record_1.gif to be displayed if a "1" is returned, or record_0.gif to be displayed if a "0" is returned?

In my clunky way, I uploaded both of those gifs to my server, and included the webtags for new records set. But of course, all my website displays is a bunch of "0's" in front of each all time record, no gifs.

Should the gifs be part of the settings in Cumulus (under configuration/internet/files)? I'm at a bit of a loss here trying to get this to work.

Any help would be appreciated.

-Tom

Re: 'New Record' Light

Posted: Wed 28 Dec 2011 3:14 am
by MickinMoulden
I've just edited this as I stuffed up the "Qoutes". :bash:
krmidas wrote:I've tried to pick up the methodology to trigger the record lights in this discussion, but am having trouble. Is there a tutorial anywhere that explains how to use the "new record" webtags?

I may be oversimplifying things, but is there a piece of HTML that forces the record_1.gif to be displayed if a "1" is returned, or record_0.gif to be displayed if a "0" is returned?
Yes, omit the webtag and just have the image src=record_1.giv. This will force it to display the gif.
In my clunky way, I uploaded both of those gifs to my server, and included the webtags for new records set. But of course, all my website displays is a bunch of "0's" in front of each all time record, no gifs.

Should the gifs be part of the settings in Cumulus (under configuration/internet/files)? I'm at a bit of a loss here trying to get this to work.
No. see my other post.
Any help would be appreciated.
Any link to your website would be appreciated too! If you did, we could probably write all the code for you. :lol: Do a search in the forums for this, as I know I've put in a "how to do", and others have too I'm sure. You have made a very basic mistake, I'm sure. Easily fixed. Now how 'bout that link?

Re: 'New Record' Light

Posted: Wed 28 Dec 2011 3:58 am
by krmidas
Thanks for the offer. My site is very straightforward. :oops: Not anything fancy:

http://krmidas.home.comcast.net/~krmidas/yyyweather.htm

Re: 'New Record' Light

Posted: Wed 28 Dec 2011 5:31 am
by MickinMoulden
krmidas wrote:Thanks for the offer. My site is very straightforward. :oops: Not anything fancy:

http://krmidas.home.comcast.net/~krmidas/yyyweather.htm
Where you have your All time records, isert this (for each record, use their specific webtag):
style="text-decoration: underline;"> <br>All Time Records (station online
since
6/18/05):</big></span></span><br>
<span style="font-weight: bold;"><span style="font-weight: bold;"></span></span><br>
<span style="font-weight: bold;"><span style="font-weight: bold;"><span
style="font-weight: bold;"><span style="color: rgb(23,12,121);">

Code: Select all

<img src="images/record_<#HighTempRecordSet>.gif" width="15" border="0">
Hi
Temperature</span>&nbsp; </span></span>101.5&deg;F&nbsp;at&nbsp;2:46 PM on Jul 20, 2011
</span><br>

You will need to make two .gif pics. One named record_0.gif (with either no flashing like, ie off or, as I and others do, make it invisable), and another named record_1.gif. Save them into (in this case) the images folder.

When ever a record is set, and still being displayed by Cumulus as a green flashing light, the <#High****RecordSet> webtag will display a 1, and thus show your record_1.gif. As soon as you click on the green light, or view the records in Cumulus, it will no longer be a new record and thus any record lights will go out (not displayed).
As a work around, I have on my main page a flashing light if ANY record has been broken. Even if I click on my records in Cumulus, and thus stop the light, I still have it displaying the date of when the last record was broken. You won't need that as it's all on the same page.

Re: 'New Record' Light

Posted: Wed 28 Dec 2011 5:39 am
by MickinMoulden
I've seen your .gifs. They work fine, however, they are not in a folder. That is fine if they are not, but you will need to have the correct referenc for the "img src". Take out "images" in the "img src" I provided you, OR, keep the code and place the .gifs in a folder called "images". You should already have one for your graphs.

Re: 'New Record' Light

Posted: Wed 28 Dec 2011 7:39 pm
by krmidas
Wow! Works like a charm! Thanks so much for taking the time to walk me through it. :D :D :D

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 10:15 am
by RayProudfoot
After waiting what seems like an age my all-time monthly rain record is about to be broken. Just 0.05" of rain required and as I write this another shower has arrived from the Irish Sea.

So if you're reading this Bob I'm about to see a flashing light appear on my all-time record page. :D

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 1:37 pm
by RayProudfoot
My all-time monthly rain record has just been exceeded but the flashing green light hasn't appeared on my webpage.

I did open Cumulus and click on the Rainfall tab on New Record. Did doing that switch off the light? If it did is it possible to switch it back on again?

And if it did why doesn't the new record light come on with each new tip of the rain bucket? After all, the previously set record has just been broken again.

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 1:46 pm
by steve
It turns off the flashing record light when it knows you have looked at the new record. It deliberately doesn't flash the monthly rain record again; every time it rains for the rest of the month the record will be broken, and you already know that this month holds the record. It doesn't remember this across restarts, though, so you could restart if you really want it to flash again.

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 2:00 pm
by RayProudfoot
Hi Steve. Can you confirm exactly what action causes the light to be extinguished? Is it the action of pressing the 'New Record' light on the main interface or the relevant tab when the all-time records are displayed?

New all-time records are quite rare for me now so it would be nice for the light on the webpage to stay on for a few days at least. Any possibility that instead of the light being switched off automatically a button could be provided so the user can control it? I would like to see what record has been broken but at the same time keep the light visible on the webpage until I choose (via the suggested button) to switch it off.

I've restarted Cumulus and the next shower isn't far away so hopefully I'll get to see the light.

Incidentally, thank you for supplying the new webtag (temp change in last hour). Much appreciated. :clap:

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 2:09 pm
by steve
RayProudfoot wrote:Hi Steve. Can you confirm exactly what action causes the light to be extinguished? Is it the action of pressing the 'New Record' light on the main interface or the relevant tab when the all-time records are displayed?
They're all turned off when the all-time record window is closed. Individual LEDs can be turned off by clicking on them (not that there's much point).
New all-time records are quite rare for me now so it would be nice for the light on the webpage to stay on for a few days at least. Any possibility that instead of the light being switched off automatically a button could be provided so the user can control it? I would like to see what record has been broken but at the same time keep the light visible on the webpage until I choose (via the suggested button) to switch it off.
It's a possible future enhancement, yes, if I ever do any more major development work on Cumulus.

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 2:12 pm
by MickinMoulden
Ray- if you don't want the light to go off in Cumulus, then look at your records on your webpage. I leave mine for a week, and even then when extinquished, my home page displays the date the last record was broken using javascript.

Tom- Can I suggest you make your WU banner be clickable, and direct to your WU page, and also put a url link to your website. If you need help in your User control panel, just ask. It can be tricky.

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 2:21 pm
by RayProudfoot
steve wrote:They're all turned off when the all-time record window is closed. Individual LEDs can be turned off by clicking on them (not that there's much point).
Okay, I understand. I'll keep away from that window in future.
It's a possible future enhancement, yes, if I ever do any more major development work on Cumulus.
Oh dear. That sounds quite depressing. :cry: I'd always thought of Cumulus as being a work in progress with user-suggested tweaks adding to its versatiity. But I understand it's a lot of work for one bloke.

Anyway, excellent news. The rain has returned and my rain light is flashing!! :D

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 2:22 pm
by RayProudfoot
MickinMoulden wrote:Ray- if you don't want the light to go off in Cumulus, then look at your records on your webpage. I leave mine for a week, and even then when extinquished, my home page displays the date the last record was broken using javascript.
Thanks for the advice Mick. It's on now so I shall keep away from the records page in Cumulus.

Re: 'New Record' Light

Posted: Thu 29 Dec 2011 3:29 pm
by steve
RayProudfoot wrote:I'd always thought of Cumulus as being a work in progress with user-suggested tweaks adding to its versatiity
Small tweaks I am happy to do - and have been doing - as they don't add a lot to the 2-3 hours a day I already spend on Cumulus-related activities. But I no longer have the enthusiasm or the time to do any larger changes.
Anyway, excellent news. The rain has returned and my rain light is flashing!! :D
Every cloud has a silver lining...

Snowing here.