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

Release 3.6.1 - Original Post in this topic was a mistake

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Release 3.6.1 - Original Post in this topic was a mistake

Post by sfws »

I see, Mark, you have responded to my earlier post made while you were issuing the new announcement message, thank you. I had forgotten you had updated the interface files in 3.6.0 to correct the spelling typo. You do so much, it is hard to keep all you do in my mind. Thank you anyway for slipping in that late "now.html" edit. Very well done.

I also see you have included a new web tag "<#LastRainTip>" in 3.6.1,

EDIT: Please ignore this topic, the rest of this particular post is wrong, I obviously was not sufficiently wide awake when I made this post originally!

but I do not understand why you claim the old web tags "<#LastRainTipISO>" did not allow date and time formatting.

I can confirm that you are wrong; it did allow these as can be demonstrated by the PHP web tag scripts I posted and I use for my web pages - I use it

Code: Select all

$LastRainTime			=	('<#LastRainTipISO format=yyyy-MM-dd>' == '<#metdate format=yyyy-MM-dd>') ? '<#LastRainTipISO format="ddd h:mm tt">' : null;
in my web_tags_real_timeT.cum script.

That results (currently) in
$LastRainTime = ('2020-05-10 15:06' == '2020-05-18') ? '2020-05-10 15:06' : null;
on my web site.


I have updated that script on my PC to use the new web tag as well, separating out the date and time, as follows

Code: Select all

$LastRainTipDate		= '<#LastRainTip format=yyyy-MM-dd>';
$LastRainTipTap		= '<#LastRainTip format="h:mm tt">';
but I have left the old code there too.
Last edited by sfws on Tue 19 May 2020 4:38 am, edited 1 time in total.
User avatar
mcrossley
Posts: 12774
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Release 3.6.1

Post by mcrossley »

So you have...

Code: Select all

'<#LastRainTipISO format=yyyy-MM-dd>' => '2020-05-10 15:06'
and
'<#LastRainTipISO format="ddd h:mm tt">' => '2020-05-10 15:06'
Exactly the same result!
Your comparison will not work...

Code: Select all

$LastRainTime = ('2020-05-10 15:06' == '2020-05-18') ? '2020-05-10 15:06' : null;
I rest my case :lol:
water01
Posts: 3256
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Release 3.6.1

Post by water01 »

Mark, just to clarify is the new tag #LastRainTime or #LastRainTip as you state in the release?

I can find no mention of #LastRainTime?
David
Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Release 3.6.1

Post by sfws »

water01 wrote: Mon 18 May 2020 8:10 pm Mark, just to clarify is the new tag #LastRainTime or #LastRainTip as you state in the release?

I can find no mention of #LastRainTime?
There is no mention of #LastRainTime.

It happens I decided to define a PHP variable as $LastRainTime, I did not quote any web tag with that name.

Unlike your PHP script that simply sets PHP variables mostly to basic web tags and match the names on both sides, my suite of scripts provides extra options using modifiers in the web tags, and for PHP variable names I use a far more consistent naming standard than that Steve Loft applied to his web tags. To use my PHP variables, you only need to understand my naming rules, you don't need to keep looking at the web tags article to see how Steve Loft decided to name tags introduced at one version differently to those added at another version. If you don't understand this, read the wiki article where I explain it.

mcrossley wrote: Mon 18 May 2020 7:48 pm So you have...

Code: Select all

'<#LastRainTipISO format=yyyy-MM-dd>' => '2020-05-10 15:06'
and
'<#LastRainTipISO format="ddd h:mm tt">' => '2020-05-10 15:06'
Exactly the same result!
Your comparison will not work...

Code: Select all

$LastRainTime = ('2020-05-10 15:06' == '2020-05-18') ? '2020-05-10 15:06' : null;
I rest my case :lol:
Okay, I made a mistake there, it must have worked in Cumulus 1, which is where my scripts originated.

Consequently, Mark, thank you for the new web tag, I will now use it to get that PHP variable content right, before it does rain!
water01
Posts: 3256
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Release 3.6.1

Post by water01 »

I am sorry if I offended I saw #LastRainTime in Marks's comment and only wondered if he had made a mistake in the release notes.
David
Image
Post Reply