Created
August 6, 2017 03:00
tiny little bash script that runs on a cron job to pull the temperature from a SI7021 sensor on my C.H.I.P
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/bash | |
OUTPUT=`/usr/local/bin/si | grep -Po '(?<=Fahrenheit : ).+?(?=F)'` | |
CMD="mosquitto_pub -h temp.adamrunner.com -t outTopic -m ESP_E2106F,${OUTPUT}" | |
`$CMD` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment