hass2geo

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 12 Imported by: 0

README

Home Assistant Geolocation Exporter

Exports geolocation data from your Home Assistant SQLite database.

Home Assistant can track your device (phone, table, etc) location if you have location sharing enabled in your Home Assistant companion app. See Home Assistant location documentation.

Usage

You'll need direct access to Home Assistant's SQLite database. The database is typically located at config/home-assistant_v2.db.

You will also need the device ID you want to export location data from. You can find the device ID using the sensors subcommand:

hass2geo --db home-assistant_v2.db sensors

That will print a list of IDs and sensors like:

[5236] micro
[5246] mobster
[5255] mini
[5320] ipad

You can then use the export subcommand to export the location data:

hass2geo --db home-assistant_v2.db export --sensor-id 5236 --format geojson # exports `micro` location data

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL