Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Recent History

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Recent History

Post by BCJKiwi »

FYI
There appears to be a change in behaviour from C1 to MX for recent history times.

On re-reading the C1 Wiki on the webtags Recent History topic, some parameters were being used in a manner that was probably not intended but did work in C1 but do not work in MX

There is one tag file which included;

Code: Select all

$w31 = "<#RecentWindAvgDir m=350>";   // wind 10 min average direction from 350mins ago  #RecentWindAvgDir m=350
$w32 = "<#RecentWindAvgDir m=360>";   // wind 10 min average direction from 360mins ago  #RecentWindAvgDir m=360
$w33 = "<#RecentWindAvgDir m=370>";   // wind 10 min average direction from 370mins ago  #RecentWindAvgDir m=370
These tags all return "0" in MX.
They have been updated to;

Code: Select all

$w31 = "<#RecentWindAvgDir h=2 m=50>";   // wind 10 min average direction from 350mins ago  #RecentWindAvgDir m=350
$w32 = "<#RecentWindAvgDir h=3>";   // wind 10 min average direction from 360mins ago  #RecentWindAvgDir m=360
$w33 = "<#RecentWindAvgDir h=3 m=10>";   // wind 10 min average direction from 370mins ago  #RecentWindAvgDir m=370
which return the intended results.

This post is intended as information - certainly not suggesting anything in MX should be changed, rather that this is a salutary lesson in using the features as intended - saves heartache later ;) .
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Recent History

Post by steve »

There is no similarity between the code in Cumulus 1 and MX, they are written in different languages and use different runtimes. They achieve things in different ways. So while the intention is to make MX as compatible as possible with Cumulus 1, there will inevitably be slight differences.

Having said that, it was not my intention to make <#RecentWindAvgDir m=350>, for example, invalid and I even expected that it might be used in this way. The first thing the code does is to convert the supplied parameter to a number of minutes, and then subtract that from the current time. So it's not clear why it apparently doesn't work. I'll do some experimenting to see if I can see what's going on.

I don't understand your replacements, though. 350 minutes is 5h 50m, not 2h 50m. Perhaps the recorded values for your original times were actually zero?
Steve
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Recent History

Post by BCJKiwi »

I just assumed that the way the calculation was done meant the minutes component would not handle minutes greater than 60 so hours and minutes would work where just minutes > 60 would not.

As I said, I did not expect you to change anything as there is no requirement to specify it that way, however that is obviously for you to decide.

Have made the necessary changes to the tag file and don't intend to change it back.

Thanks
Locked