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 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

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

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
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

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

Post 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 ?
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: How to display Ecowitt last lightning strike in full format on web site

Post 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!
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

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

Post 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.
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: How to display Ecowitt last lightning strike in full format on web site

Post 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.
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

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

Post 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.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

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

Post by beteljuice »

No one should be wary of asking the community anything ....

Whenever sfws posts ... most of the regulars think 'Never mind'
Image
......................Imagine, what you will KNOW tomorrow !
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

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

Post 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.
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

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

Post 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)
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

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

Post by Armond »

Ok, great, it works. Thanks a lot.
Post Reply