nathan-gs / ha-map-card

A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
15 stars 4 forks source link

does not draw lines or dots when new coordinates arrive #28

Closed Hiekkaharju closed 1 month ago

Hiekkaharju commented 1 month ago

I'm not sure if this is a regression, some issue with my setup or was it like this from the beginning history feature. When the card is drawn, history is also usually drawn according to history_draw nad history_show options. But then when new cordinates arrive, the marker moves but no line or dots appear. tested version 0.7.1

nathan-gs commented 1 month ago

Normally the history should be redrawn when new items arrive, so a bug somewhere (or HA being slow...). Do note history is async through websockets.

nathan-gs commented 1 month ago

Just realized I convert now to the current timestamp... Obviously new items will not arrive.

Hiekkaharju commented 1 month ago

keeping that so, and making only start time specified mean that also future values shall be plotted might be an idea ?

nathan-gs commented 1 month ago

Added a special case for handling now. It's now working on my end.

nathan-gs commented 1 month ago

It should be solved in v0.8.2.

Hiekkaharju commented 1 month ago

working. Thanks.

Elu43 commented 1 month ago

Hi Thank you for your work. I have new dots being created but not all of them. It seems the update interval is bigger. Here is with your card :

image

And with HA classic card :

image

nathan-gs commented 1 month ago

@Elu43 That's because the stock card uses all the available history from associated device_trackers, while this one only what you specify. I logged this as an improvement in #27