Correct Syntax(?) for Lightning Distance in Miles

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
KD7GFL
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Thu Jan 20, 2022 6:28 pm

Correct Syntax(?) for Lightning Distance in Miles

Post by KD7GFL »

I am using Meteobridge 5.2 (Jan 11 2022, build 14655), FW 1.4.:

I have created a string for my webcam overlay, but I am struggling to find the correct form (sensor-selector=converter.decimals:replacement) to display the "Distance to the Last Lightning Strike" in Miles.

I am using: [lgt0dist-lastval.0=mls:--]

All I can get it to do is display in Kilometers. I have tried every variation I can think of, but I have yet to find the proper syntax to get the mls converter to work.

Any help would be appreciated.
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: Correct Syntax(?) for Lightning Distance in Miles

Post by jasonmfarrow »

I think it's the order of your syntax. The right order is sensor-selector=converter.decimals:replacement. (Syntax: https://meteobridge.com/wiki/index.php/Templates).

So I think your sensor needs to be: [lgt0dist-lastval=mls.0:--]
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
KD7GFL
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Thu Jan 20, 2022 6:28 pm

Re: Correct Syntax(?) for Lightning Distance in Miles

Post by KD7GFL »

jasonmfarrow wrote: Fri Jan 21, 2022 11:20 am I think it's the order of your syntax. The right order is sensor-selector=converter.decimals:replacement. (Syntax: https://meteobridge.com/wiki/index.php/Templates).

So I think your sensor needs to be: [lgt0dist-lastval=mls.0:--]
Yes, you are correct. I mistyped the order above. I had tried so many different variations. Unfortunately none of them worked or would have worked. I received a reply to an email late last night that explained that the mls converter was included in the wiki page, but was not in the code. It will be added in an upcoming release. Once that occurs, I will try it the way you wrote above and it will probably work fine.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Correct Syntax(?) for Lightning Distance in Miles

Post by admin »

It is a bug in the implementation. I will release an update when back from vacation on Feb 1. I am reluctant to release an immediate update because there is always a risk to break something and it is not my prefered joy to operate on emergencies during my vacation 😀.
Post Reply