Skip to content

Instantly share code, notes, and snippets.

@tmeissner
Last active December 19, 2015 16:39
Show Gist options
  • Save tmeissner/5985588 to your computer and use it in GitHub Desktop.
Save tmeissner/5985588 to your computer and use it in GitHub Desktop.
Spam yourself with eMails containing the temperature measured by your 1wire temperature sensor ;)
#!/bin/bash
read -r BLA
TEMP=$(echo $BLA | sed "s/.*\([0-9][0-9].[0-9][0-9][0-9]\)/\1/")
echo $TEMP | mail -s "Temperatur" $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment