Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Sensor Examples

Andrew Sorensen edited this page Mar 28, 2016 · 2 revisions

Measuring APC UPS runtime

*/2 * * * * echo "{\"timeleft\": \"`/sbin/apcaccess | grep TIMELEFT | awk '{print $3'}`\"}" | API_TOKEN="REDACTED" /usr/bin/python3 /home/wlnet/dataview-backup-ups-monitor/client.py --host http://dataview.internal.wl-net.net/api/1 "timeleft=/sensor/8b233f81-4c0a-4782-8558-d31769ad44d9/"
Clone this wiki locally