perl-WebService-Whistle-Pet-Tracker-API-mqtt.pl - Publish Whistle Pet Tracker pet data to MQTT
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
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
-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
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
Publish more data elements
To install WebService::Whistle::Pet::Tracker::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Whistle::Pet::Tracker::API
CPAN shell
perl -MCPAN -e shell install WebService::Whistle::Pet::Tracker::API
For more information on module installation, please visit the detailed CPAN module installation guide.