I use GPSLogger to create my monthly travel log for my employer. You can fine-tune it pretty well and it works almost as well as Google’s location timeline while not having to rely on Google’s appetite for personal data.
I use its built-in ssh upload feature to get my data transferred to my SBC at home.
I have a very similar setup. I switched to curl+webhook some days ago. Before that I used hass-cli to trigger actions on Home Assistant but I find webhooks to act much faster.