-
Credits for this API client go to JohNan/pyplaato.
-
Client fetches data for the Plaato Keg (scale) using the official API, and publishes to Splunk HEC endpoint or MQTT Broker (i.e., Splunk Edge Hub).
-
To be able to query the API an
auth_token
is required and which can be obtained by following these instructions -
If using HEC, create a tools/splunk.py file with Splunk HEC endpoint & headers, example:
splunk_ep = https://[SplunkIP]:8088/services/collector/event
headers2 = {'Authorization': 'Splunk [SplunkToken]', 'Content-Type': 'application/json'}
-
Set to run on preferred interval via crontab, or implement python loop in script.
-
For more information about the available pins that can be retrieved please see the official docs from Plaato
usage: cli.py -t AUTH_TOKEN -d keg
optional arguments:
-h, --help show this help message and exit
required arguments:
-t AUTH_TOKEN Auth token received from Plaato
-d {keg,airlock}
This python library was not made by Plaato. It is not official, not developed, and not supported by Plaato.