Skip to content

Repository files navigation

PHAL plugin - IPGeo

This plugin sets the default location for OpenVoiceOS based on the IP address of the device. It queries ip-api.com and stores the result in the local configuration.

The plugin does not overwrite a location that a user or a backend already set. It only fills in the location if the value is missing.

The City, regionName, and country fields are localized to the active language when possible. Supported languages are en, de, es, pt, fr, ja, zh, and ru.

Install

pip install ovos-phal-plugin-ipgeo

Usage

OVOS loads this plugin through the PHAL plugin manager. No manual setup is required.

The plugin geolocates the device on these bus messages:

  • mycroft.internet.connected: sent when the device gets an internet connection.
  • ovos.ipgeo.update: sent to request a location update. Send overwrite: true in the message data to replace an existing location.

Related projects

License

Apache-2.0

About

No description or website provided.

Topics

Resources

Contributing

Stars

1 star

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages