Page 1 of 1

Release 3.6.1 - Original Post in this topic was a mistake

Posted: Mon 18 May 2020 7:15 pm
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.

Re: Release 3.6.1

Posted: Mon 18 May 2020 7:48 pm
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:

Re: Release 3.6.1

Posted: Mon 18 May 2020 8:10 pm
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?

Re: Release 3.6.1

Posted: Mon 18 May 2020 8:57 pm
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!

Re: Release 3.6.1

Posted: Mon 18 May 2020 9:02 pm
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.