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

Trends from Realtime data

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
Blackmyre
Posts: 56
Joined: Fri 26 Dec 2008 11:55 am
Weather Station: WH1080
Location: Dallas, Moray, Scotland

Trends from Realtime data

Post by Blackmyre »

The realtime file doesn't contain trend text (e.g. 'Rising very rapidly' etc.) for temp/pressure - the equivalents of <#temptrendtext> and <#presstrend>. I guess that would be difficult given that the file is space-delimited. For temperature I guess that can be determined from the trend value - can anyone tell me what the thresholds are for the various categories? With pressure I think it would be harder because I gather it's based on the change in the last three hours. Is there any way to derive it from any of the othr data in realtime.txt?
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: Trends from Realtime data

Post by steve »

All of the fields in realtime.txt have web tag equivalents, so you could create your own version of realtime.txt and put the trend strings on the end (put them in quotes). Or you could use something like javascript to convert the values.

I don't really understand what you're saying about the pressure trend; yes, it's based on the change over the last three hours, but the pressure trend value is just the three hourly figure divided by three, just the same as the temperature trend.

Here's the code which converts the pressure trend to text:

Code: Select all

  if ThreeHourlyPressureChangeMB > 6 then
    presstrendstr := Risingveryrapidly
  else if ThreeHourlyPressureChangeMB > 3.5 then
    presstrendstr := Risingquickly
  else if ThreeHourlyPressureChangeMB > 1.5 then
    presstrendstr := Rising
  else if ThreeHourlyPressureChangeMB > 0.1 then
    presstrendstr := Risingslowly
  else if ThreeHourlyPressureChangeMB > -0.1 then
    presstrendstr := Steady
  else if ThreeHourlyPressureChangeMB > -1.5 then
    presstrendstr := Fallingslowly
  else if ThreeHourlyPressureChangeMB > -3.5 then
    presstrendstr := Falling
  else if ThreeHourlyPressureChangeMB > -6 then
    presstrendstr := Fallingquickly
  else
    presstrendstr := Fallingveryrapidly;
The temperature trend text is simply 'Steady' for zero change, and 'Rising' for an increase and 'Falling' for a decrease.
Steve
Blackmyre
Posts: 56
Joined: Fri 26 Dec 2008 11:55 am
Weather Station: WH1080
Location: Dallas, Moray, Scotland

Re: Trends from Realtime data

Post by Blackmyre »

steve wrote:All of the fields in realtime.txt have web tag equivalents
So I gathered, but I didn't see how that helped as the converse isn't true.
you could create your own version of realtime.txt
Does Cumulus expose a mechanism for doing that? [Thinks] Ah - I guess with a custom template? It's perhaps moot though because...
I don't really understand what you're saying about the pressure trend; yes, it's based on the change over the last three hours, but the pressure trend value is just the three hourly figure divided by three, just the same as the temperature trend.
My thinking was that the pressure trend value was based on a rolling hour, which would mean I would be missing the information about the previous two. If I can just multiply it by three and apply the logic in your code snippet, that's fine.

As for the temperatures, I thought they were reported as different rates of change like pressures. If not then, again, all the information I need is already in realtime.txt.

Thanks very much for the response.


Steve.
Post Reply