NAME
perl-WebService-Whistle-Pet-Tracker-API-mqtt.pl - Publish Whistle Pet Tracker pet data to MQTT
SYNOPSIS
perl-WebService-Whistle-Pet-Tracker-API-mqtt.pl -h MQTT_HOST -e WHISTLE_EMAIL -p WHISTLE_PASSWORD
or
export MQTT_HOST=mqtt
export WHISTLE_EMAIL=my_email@example.com
export WHISTLE_PASSWORD=my_password
perl-WebService-Whistle-Pet-Tracker-API-mqtt.pl
DESCRIPTION
perl-WebService-Whistle-Pet-Tracker-API-mqtt.pl is a command line utility which connects to the configured MQTT broker and publishes pet data from the Whistle Pet Tracker API.
Topics:
stat/whistle-pet-tracker/pet/123456789/name Rocky
stat/whistle-pet-tracker/pet/123456789/last_location {"lat":38.88955018465634,"lon":-77.03530017768242,"t":"2023-04-23T13:55:01Z"}
stat/whistle-pet-tracker/pet/123456789/device/battery_level 78
stat/whistle-pet-tracker/pet/123456789/device/battery_status on
OPTIONS
-h Specifies the MQTT broker host name to which to connect and publish (default: mqtt)
-e Specifies the Whistle account name to use for authentication
-p Specifies the Whistle account password to use for authentication
CONFIGURATION
This distribution contains systemd configuration files which are not preconfigured. Please use the systemd edit command to configure your credentials.
sudo systemctl edit perl-WebService-Whistle-Pet-Tracker-API-mqtt
sudo systemctl enable perl-WebService-Whistle-Pet-Tracker-API-mqtt
sudo systemctl start perl-WebService-Whistle-Pet-Tracker-API-mqtt
TODO
Publish more data elements