Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- pin=7
- 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
- fi
Add Comment
Please, Sign In to add comment