Skip to content

Get Current Position ​

`@ha-bits/bit-location`v1.0.0📥 - downloadslocation geolocation geofence gps tauri

Device location and geofencing for mobile/desktop apps

Usage ​

yaml
# In your habit YAML
nodes:
  - id: my-bit-location-node
    type: bit
    framework: bits
    module: "@ha-bits/bit-location"
    action: "getCurrentPosition"
    data:
      # action properties...

Actions ​

ActionDescription
Get Current PositionGet the current GPS position of the device
Add GeofenceRegister a circular geofence region to monitor
Remove GeofenceRemove a registered geofence
List GeofencesGet all registered geofences
Check Geofence StatusCheck current position against all registered geofences
Calculate DistanceCalculate distance between two GPS coordinates in meters

Triggers ​

TriggerDescription
On Geofence EnterTriggered when device enters a registered geofence
On Geofence ExitTriggered when device exits a registered geofence
On Location ChangeTriggered when device location changes significantly

Released under the AGPL-3.0 License.