Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

How use TempChangeLastDay ?

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

How use TempChangeLastDay ?

Post by Areecki »

Hello
I added new tags on the website, but I would love to have another one.
Currently I have the following: #temp>, <# RecentOutsideTemp d = 1>, <# TempChangeLastHour>, # temptrend>, <# avgtemp>, # RecentOutsideTemp d = 7>.
I miss the mark "change in temperature for the last day. More specifically, the temperature difference between the current temperature and the temperature of which was 24h00m00s ago. That is something on the principle of operation of the <#TempChangeLastHour> only <#TempChangeLastDay>. Is there such a tag? Is it possible to write on an equation of the type: <#temp> - <# RecentOutsideTemp d = 1> = <#TempChangeLastDay>?
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How use TempChangeLastDay ?

Post by steve »

You could do that with a bit of JavaScript. Something like

<script>document.write(<#temp> - <#RecentOutsideTemp d=1>)</script>
Steve
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

Re: How use TempChangeLastDay ?

Post by Areecki »

Like that ?
Screen : http://scr.hu/0fqx/pxxbe
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How use TempChangeLastDay ?

Post by steve »

Yes, but actually you might need some rounding:

<script>document.write((<#temp> - <#RecentOutsideTemp d=1>).toFixed(1))</script>
Steve
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

Re: How use TempChangeLastDay ?

Post by Areecki »

Now I have : http://scr.hu/0fqx/j2yrm
But temp now is -2,7 C , last24 h = +0,2
Script announced on the website 2,0 C and I would like to count the exact changes or -2.9 C (0.2 - (-2.7) = -2.9 C.
Script work like that :( ---> http://scr.hu/0fqx/p85p5
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How use TempChangeLastDay ?

Post by steve »

Do you use commas for decimals? If so, you'll need

<script>document.write((<#RCtemp> - <#RCRecentOutsideTemp d=1>).toFixed(1))</script>
Steve
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

Re: How use TempChangeLastDay ?

Post by Areecki »

Commas appear on the site and program.
Okay I'll try.
Last edited by Areecki on Fri 28 Nov 2014 2:53 pm, edited 2 times in total.
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How use TempChangeLastDay ?

Post by steve »

You might find that the result comes out with a decimal point rather than a comma. There are probably ways around that, but I don't know what they are.
Steve
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

Re: How use TempChangeLastDay ?

Post by Areecki »

Code screen : http://scr.hu/0fqx/1g25e
WWW screen : http://scr.hu/0fqx/xw3ha
IT WORKS !!! :mrgreen: :mrgreen: :mrgreen:

OMG, thank you very much it works.
Created tag: Change of temperature for the last 24.
In this way you can create a change is not only 1 but any other.
Just use #temp> and #RecentOutsideTemp "x" = "y">

Thought about to add a tag: Temperature year ago? So that displayed a temperature of 16:00 28.XI.2013?
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How use TempChangeLastDay ?

Post by steve »

To change the decimal point to a comma, this might work:

<script>document.write((<#RCtemp> - <#RCRecentOutsideTemp d=1>).toFixed(1).toString().replace('.',','))</script>
Steve
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

Re: How use TempChangeLastDay ?

Post by Areecki »

I do not need to change the decimal point. Such data are right for me, but they can be useful to someone else.
1. Is it possible to somehow pull the temperature that was a year ago at the same time?
2. Is it possible to semehow pull the change temperetaure in the last 10 minutes or 30 minutes ?
Last edited by Areecki on Fri 28 Nov 2014 4:07 pm, edited 2 times in total.
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How use TempChangeLastDay ?

Post by steve »

Areecki wrote:1. Is it possible to somehow pull the temperature that was a year ago at the same time?
No, because it would require the storing in memory of a lot of values (all of the values for the last year). Otherwise it would have to start searching through the log file for a year ago, and that would be very inefficient and slow. It really needs the data to be in a proper database rather than flat files, so the values can be extracted efficiently.
2. Is it possible to semehow pull the change temperetaure in the last 10 minutes or 30 minutes ?
Do the same as you did for a day ago, but instead of d=1 use m=10 or m=30?
Steve
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

Re: How use TempChangeLastDay ?

Post by Areecki »

1. OK
2. : <script>document.write((<#RCtemp> - <#RCRecentOutsideTemp m=30>).toFixed(1))</script>
But must I have in the web display to RecentOutsideTemp m=30 ? or only script ?
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How use TempChangeLastDay ?

Post by steve »

You just need it in that script.
Steve
Areecki
Posts: 60
Joined: Thu 26 Nov 2009 4:01 pm
Weather Station: Viking 02047 (WH 1090)
Operating System: Windows XP SP3
Location: Poland
Contact:

Re: How use TempChangeLastDay ?

Post by Areecki »

Yea !

<script>document.write((<#RCtemp> - <#RCRecentOutsideTemp m=30>).toFixed(1))</script> or m=10 or d=2 or another ; )
Screen : http://scr.hu/0fqx/yjt0s
Viking 02047 ( klon WH 1090)
http://areecki.ihq.pl/pogoda/index.htm
Post Reply