Turn on and off GPIO pin on Raspberry with gmail
TringaliLuca Apr 21st, 2017 (edited) 30 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- command=$(curl -u username:password --silent "https://mail.google.com/mail/feed/atom" | grep -Po '(?<=(<summary>)).*' | sed 's/<\/summary>.*//'
- if [ -n "$command" ]; then
- gpio write $pin $command
RAW Paste Data