Page 1 of 1

How to display Ecowitt last lightning strike in full format on web site

Posted: Thu 22 Jul 2021 8:32 am
by Gyvate
I'm sending via custom http the following webtag: &ls=<#LightningTime> (never mind the stuff in front of the tag).
The result displayed is 10:18 pm.
How can I make CumulusMX send the complete date/time stamp resulting in the format: 12.07.2021 22:08:33

The webtag documentation says that the <#LightningTime> tag has as " default without output parameters is locale's short time format e.g. 18:02 or 6:02 pm, without date,
but tag accepts both date and time output parameters"

what would these parameters be and how to apply them to the posting string ?

Any advice ? Example ?

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Thu 22 Jul 2021 10:27 am
by sfws
Gyvate wrote: Thu 22 Jul 2021 8:32 am The webtag documentation says that the <#LightningTime> tag has as " default without output parameters is locale's short time format e.g. 18:02 or 6:02 pm, without date,
but tag accepts both date and time output parameters"

what would these parameters be and how to apply them to the posting string ?

Any advice ? Example ?
You should have looked earlier on the page, where you found that quote, for the link to those output parameters, as it would be stupid to repeat the explanations, and the examples you seek, for every tag!

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Thu 22 Jul 2021 12:24 pm
by Gyvate
Thanks, that worked after some experimenting ...

AND, @sfws, I would have looked if at that place in the WiKi a link to those output parameters had existed - no big repetition but very useful if existing.

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Thu 22 Jul 2021 3:43 pm
by sfws
Gyvate wrote: Thu 22 Jul 2021 12:24 pm I would have looked if at that place in the WiKi a link to those output parameters had existed
From the webtags page in Wiki:
Input Modification Parameters and Output Modification Parameters

MX has introduced many more of these, so they are no longer listed on this page.

Now to find out what is allowed for the input selection parameters and output modification parameters, refer to web tag parameters page.
The link was there all the time, had you actually looked near top of page.

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Thu 22 Jul 2021 6:28 pm
by Gyvate
Of course, everything you say is correct, but imho it's a typical reply of IT insiders who seem to have lost the feeling for normally thinking users and non-adepts.
Sure, if I knew the WiKi by heart (and, btw, it's not always easy to read - and I have a 30+ years professional IT past - when I don't find it easy, it's a good indicator that less skilled people won't either) and ..., and ..., and ..., I wouldn't even have posted the question. Never mind.

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Thu 22 Jul 2021 7:07 pm
by beteljuice
No one should be wary of asking the community anything ....

Whenever sfws posts ... most of the regulars think 'Never mind'

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Sat 31 Jul 2021 3:41 pm
by Armond
Thanks, that worked after some experimenting ...
And how did you do?

I don't really get it how to get the fully date when I read in wiki.

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Sat 31 Jul 2021 4:07 pm
by Gyvate
You have to check the possible time formats ...
what works is:
<#LightningTime format="dd-MM-yyyy HH:mm:ss"> 8-)
it produces e.g. 26-07-2021 19:55:08, independent of the locale of the web site
(provided that's the time stamp of the last strike)

Re: How to display Ecowitt last lightning strike in full format on web site

Posted: Sat 31 Jul 2021 9:07 pm
by Armond
Ok, great, it works. Thanks a lot.