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.
Correct Syntax(?) for Lightning Distance in Miles
Moderator: Mattk
- jasonmfarrow
- Gold Boarder
- Posts: 249
- Joined: Mon May 25, 2020 4:21 pm
- Contact:
Re: Correct Syntax(?) for Lightning Distance in Miles
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:--]
So I think your sensor needs to be: [lgt0dist-lastval=mls.0:--]
Re: Correct Syntax(?) for Lightning Distance in Miles
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.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:--]
Re: Correct Syntax(?) for Lightning Distance in Miles
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
.