Created
August 13, 2012 21:41
-
-
Save njh/3344284 to your computer and use it in GitHub Desktop.
Send hard disk temperature to cosm.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
COSM_API_KEY="abcdefghijk" | |
DATASTREAM="/v2/feeds/70987/datastreams/0.csv" | |
hddtemp -u C -n /dev/sda | \ | |
mosquitto_pub -d -h api.cosm.com -u "$COSM_API_KEY" -t "$DATASTREAM" -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment