Mhm that’s weird. It’s okay that localStorage still gives you null, I configured the card in such a way that it ignores localStorage in case it is not set, and pulls it straight from the HA element.
But I must’ve missed something, maybe it’s due to localStorage returning the string 'null' instead of the object null, I’ll check it out
I’m also not getting the locations from Places to appear. I would like that feature to work, because I have the Places integration set up with custom display filters.
Quite often my card doesn’t show the start / end of my journey. See picture. I started and ended the route at ‘Home’, which appears in my Places location history, but is not shown in the timeline card.
Note that the moving duration is shown as 17 hours when in reality it was about 10 minutes!
I haven’t updated the stay_radius parameter.
I think there’s actually 2 separate issues here:
The start location may not be showing up here because my location hadn’t previously changed during that day - i.e. I was at home overnight, so there was no location update during that day until I left home. No state change maybe means no data for the card to use as start location? That probably affects the moving duration too.
End location not showing. This happens much more frequently. Most days I have no final location shown on the timeline. There is definitely a final location in my Places location history.
I just started using this project to track our cat's. And finally I get to see what they do all day. We have one male cat that roams allot, micro-distances just a few km around the house but multiple directions.
I have few questions I was not able to figure out can I make the map wider have bigger view as then I click on the timeline markers the map zooms out.
Any possibility of having an arrow overlay to show the path of travel, and 3rd question would it be possible to see numbers on the map way points that would simply show order of traveled point. All these feature are really geared to a "pet tracking" mode.
Thank for sharing your project.
chat GPT summary of possible enhancements:
:Feature request: map zoom, direction arrows, and numbered route points
Configurable default map zoom
It would be useful to expose a card option to control the default zoom level when the map loads, for example:
map_default_zoom: 16
Direction indicators on movement paths
For movement segments, it would be very helpful to show direction arrows along the route line so it is easier to understand the travel direction.
Numbered location markers
It would also be useful if the map markers could optionally show the order of the recorded points, for example 1, 2, 3, 4, etc., so the movement sequence is clear even without reading the timeline.
As for zooming the map, the button on the top right will reset the view to include the whole path, if that's what you mean.
As for the feature requests:
Configurable map default zoom sound like a plan, I'll have a look at that
I had a quick look, and this is not supported by plain Leaflet map (the mapping engine this card is using). I have found a plugin that might allow it, but that's gonna be some work, and I'm not sure if the plugin will work in combination with HA.
Right now I'm not planning on implementing numbered markers, as I think there's limited use cases where this is useful.
For the first two feature requests, could you please raise them as Feature Request issues on the Github Repo? That way I can keep track. Please log both as separate requests.
I solved the most pressing issue for my use case. The default zoom is now 17 instead of the base 14 . When we press on segments on map it always goes back to the default zoom level, for me that is now 17.
Being able to set and maintain a different zoom level pour card would be nice as different tracked object have different levels of base zoom
These are my new default levels the area fits the cat range. I just tried a few code changes guide by chat GPT till I got something that worked but I don't understand the code, the AI did.
Hi. This card is great but I have an issue. I am using it to track my kids watches using an integration for SEtracker and similar apps.
Sometimes the location reported by the watches is Latitude: 0, Longitude: 0.I guess this happens when it couldn't lock a location. So my timeline has jumps to that spot in the Equator. I am attaching a picture:
For some reason the default HA Map card shows the timeline fine without the jumps to the (0,0) points.
I see there is a mention of max_reasonable_speed setting but it doesn't show in the visual editor. I added in the YAML code but made no difference (maybe I am not using it well?).
There are no planes capable of moving at that speed from England to (0,0).
How could I fix that or is that something that could be fixed in the code?
Thanks
Could you follow the instructions in the repository for debug mode and send me the results? The fact that these points don't show up in the default HA map makes me think there's a slight error in the implementation, maybe it doesn't actually report 0, 0 but rather undefined or unknown.