Exporting map data to GPX using hass2geo to import into dawarich

I’ve started using dawarich to track my GPS timeline after Google lost all my historical data :frowning: On my phone, I have OwnTracks logging to HA (VM in KVM) which works well. From there dawarich imports the data.

The problem I have is that I went away over the weekend and didn’t discover my dawarich docker container had for some reason not been running. I therefore do not have the 3 days of travelling data in dawarich.

I don’t seem to have the option on my phone to export my Google Maps timeline data (Pixel 8 Pro running the latest beta) so I looked for a solution to pull it from HA since it is there. I found hass2geo but having got the executable onto me HA system I cannot run it as I receive this error:

hass2geo: cannot execute: required file not found

I have no idea what file(s). The file runs fine on my Fedora box but I wasn’t able to it to return any info even with the home-assistant_v2.db file copied to the Fedora box.

Has anyone else used this tool? How did you do it?

Probably too late but I had the same problem a few days ago and stumpled across this .
For me it worked fine:

  • Download the release file
  • chmod +x hass2geo
  • Execute like explained
    • ./hass2geo --db home-assistant_v2.db sensors
    • ./hass2geo --db home-assistant_v2.db export --sensor-id 5236 --format gpx
    • Convert the gpx file to a gpx track file, e.g. at Route converter | AllTrails (the DaWarIch importer failed for me with the geojson as well as the gpx file. It seems like it only supports tracks, not waypoints)

Thanks for the reply, I had basically done that but the error was what I received. Got help from the maintainer of that code but it was too late by then as the data wasn’t maintained in HA so I couldn’t export it anylonger :frowning: