Page 1 of 1
LightningTime Webtag
Posted: Sat 05 Feb 2022 8:39 am
by HansR
It is not clear what the units are for the Ecowitt #LightningDistance. Assuming the setting of CMX (so it can be miles, km or ...). Is that true or is it always km?
Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 9:13 am
by SJG1976
Just had a look at mine.
On the Units Page, there doesn't seem to be an Option to change from km to miles as far as I can see.
units.PNG
On the Main Dashboard of the page it is all in km
live_light.PNG
So as far as I'm aware yes always in km
Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 9:18 am
by mcrossley
The web tag is the same units as wind run iirc - on my phone atm
Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 9:32 am
by HansR
mcrossley wrote: ↑Sat 05 Feb 2022 9:18 am
The web tag is the same units as wind run iirc - on my phone atm
OK, thanks, I did not have the lucidy to look at the Ecowitt units. Indeed cannot change.
But if CMX uses the same unit as the wind run it will adapt to the units selected by the user.
I have km/hr so the distance is in km but if somebody has mi/hr that wind run will be in miles.
So that might be wrong for the lightning distance webtag then: must always be km for the lightning distance and not the windrun distance

Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 11:20 am
by Mapantz
I remember when Ecowitt implemented the lightning data in to the console, it was fixed to km. In an update, they added an option to show mi or km. On that basis, they simply added conversion code.
I did the same on my website, but I show both km and mi.
Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 12:53 pm
by HansR
It is not so much what Ecowitt does, it is what unit the webtag returns: is it always in km or does CMX convert to the unit of the windrun (is what I understand from Mark).
Any conversion can be made, no problem, the question is: do I need to convert?
Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 12:59 pm
by mcrossley
HansR wrote: ↑Sat 05 Feb 2022 9:32 am
So that might be wrong for the lightning distance webtag then: must always be km for the lightning distance and not the windrun distance
Why, I'm sure most users who use imperial units will want the distance in miles not km?
BTW, the dashboard Extra Sensors shows the units used by CMX.
Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 1:17 pm
by SJG1976
Well I'm can't remember settings unit on Mx?
However it seems the Values on EcoWitt for me are set to km
Ecowitt_data.PNG
And MX is converting them (or taking them as miles)
MX_Data.PNG
At least my Data is shown as correct.
(Well apart from the False single strikes I seem to get every day)

Re: LightningTime Webtag
Posted: Sat 05 Feb 2022 1:29 pm
by mcrossley
SJG1976 wrote: ↑Sat 05 Feb 2022 1:17 pm
Well I'm can't remember settings unit on Mx?
There isn't a user setting, like wind run it is inferred from the windspeed units. Configure a metric windspeed and they use kilometres, otherwise miles.