Page 1 of 1

Virtual switch 'distance', missing 'm' and 'km'

Posted: Wednesday 14 August 2019 9:42
by jeroenkl
Hello Domoticz users/developers, @gizmocuz,

Is het somehow possible to change, add extra 'eenheid': m and km to the Virtual Switch 'distance'?
At the moment it is only possible to choose: 'cm' and 'inches'.

I'm using this virtual sensor to show my calculated distance of my car to my home. 'cm' is in this case not handy, better to have 'km'.

BR,

Jeroen

Re: Virtual switch 'distance', missing 'm' and 'km'

Posted: Wednesday 14 August 2019 18:55
by waaren
jeroenkl wrote: Wednesday 14 August 2019 9:42 I'm using this virtual distance sensor to show my calculated distance of my car to my home. 'cm' is in this case not handy, better to have 'km'.
If you only use the virtual device for presentation purposes, you can use a text device and display whatever you like,

2019-08-14 16:30 5.3 Km

even possible to show with some history. Something like

2019-08-14 16:30 5.3 Km
2019-08-14 16:25 8.7 Km
2019-08-14 16:20 13.0 Km

or

2019-08-14 16:30 Jeroen 2.8 Km
2019-08-14 14:00 Kees at home
2019-08-14 12:50 Els 2100 km

Re: Virtual switch 'distance', missing 'm' and 'km'

Posted: Thursday 15 August 2019 9:49
by jeroenkl
waaren wrote: Wednesday 14 August 2019 18:55
jeroenkl wrote: Wednesday 14 August 2019 9:42 I'm using this virtual distance sensor to show my calculated distance of my car to my home. 'cm' is in this case not handy, better to have 'km'.
If you only use the virtual device for presentation purposes, you can use a text device and display whatever you like,

2019-08-14 16:30 5.3 Km

even possible to show with some history. Something like

2019-08-14 16:30 5.3 Km
2019-08-14 16:25 8.7 Km
2019-08-14 16:20 13.0 Km

or

2019-08-14 16:30 Jeroen 2.8 Km
2019-08-14 14:00 Kees at home
2019-08-14 12:50 Els 2100 km
Hi @waaren,

I really like to have also a nice device icon and the possibility to use notifications, etc.
Also for domoticz in general, good to have the options 'm', 'km', 'miles' added for multipurpose uses

BR,

Jeroen

Re: Virtual switch 'distance', missing 'm' and 'km'

Posted: Thursday 15 August 2019 13:57
by FireWizard
Hi,

I agree with you that it makes sense that "Distance" can display more units then only cm and inches. It should be possible to configure in addition to cm and inches, also mm, m and km. Also should it be possible to configure feet and miles.

Currently a work around is to select "Custom Sensor" and set the x-axis to the unit, you want. The default icon is the globe, but you can change that, by uploading custom icons. Since a number of beta releases the custom icons are also supported in "Floor plans".

Regards

Re: Virtual switch 'distance', missing 'm' and 'km'

Posted: Thursday 15 August 2019 16:28
by jeroenkl
FireWizard wrote: Thursday 15 August 2019 13:57 Hi,

I agree with you that it makes sense that "Distance" can display more units then only cm and inches. It should be possible to configure in addition to cm and inches, also mm, m and km. Also should it be possible to configure feet and miles.

Currently a work around is to select "Custom Sensor" and set the x-axis to the unit, you want. The default icon is the globe, but you can change that, by uploading custom icons. Since a number of beta releases the custom icons are also supported in "Floor plans".

Regards
Thanks for the tip. I'm now using the 'custom sensor' work arround.