You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following scenario: to test proximity services I wrote a GPX tracker pyscript script which can use pre-recorded GPX file (from relive) and replay it to a device_tracker instance with original points (possibly, time-scaled) or using fixed time intervals in seconds (also with optional time scale and with position interpolation between recorded points).
When I load a GPX file, I know its duration in seconds. And I have a position seek slider to move and see the position on a map. All I need is to change input_slider max value to the length of GPX track in seconds, so slider has 100% fit to the track. And this max time can be changed also when changing speed factor (replay speed modifier).
Currently I have the only option to set input_number's max value to, say, a fixed 10000 seconds. But then the slider does not reflect the time position in GPX while seeking or playing. Would be good to be able to update max value dynamically, so the slider reflects actual value.
I haven't found any custom card which can do that for slider.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following scenario: to test proximity services I wrote a GPX tracker pyscript script which can use pre-recorded GPX file (from relive) and replay it to a device_tracker instance with original points (possibly, time-scaled) or using fixed time intervals in seconds (also with optional time scale and with position interpolation between recorded points).
When I load a GPX file, I know its duration in seconds. And I have a position seek slider to move and see the position on a map. All I need is to change input_slider max value to the length of GPX track in seconds, so slider has 100% fit to the track. And this max time can be changed also when changing speed factor (replay speed modifier).
Currently I have the only option to set input_number's max value to, say, a fixed 10000 seconds. But then the slider does not reflect the time position in GPX while seeking or playing. Would be good to be able to update max value dynamically, so the slider reflects actual value.
I haven't found any custom card which can do that for slider.
Beta Was this translation helpful? Give feedback.
All reactions