Skip to content

Create an alarm on your Sonos when a new mail is received

License

Notifications You must be signed in to change notification settings

fstehle/email-sonos-alarm

Repository files navigation

email-sonos-alarm

Create an alarm on your Sonos when a new mail is received

Build Status MIT License

Usage on x86 machine:

Create your Dockerfile as follows:

pip install -r requirements.txt
python main.py IMAP_HOST IMAP_USER IMAP_PASS

Usage on a x86 machine with Docker:

Docker Pulls

export IMAP_HOST="imap.gmail.com"
export IMAP_USER="mail.example.com"
export IMAP_PASS="secret"
export IMAP_ALARM_LABEL="some-label"
docker run --rm -p 9001:80 fstehle/email-sonos-alarm -v --port 9001 $IMAP_HOST $IMAP_USER $IMAP_PASS $IMAP_ALARM_LABEL

Usage on a Raspberry Pi / ARMv7 with docker:

Docker RPi Pulls

export IMAP_HOST="imap.gmail.com"
export IMAP_USER="mail.example.com"
export IMAP_PASS="secret"
export IMAP_ALARM_LABEL="some-label"
docker run --rm -p 9001:80 fstehle/rpi-email-sonos-alarm -v --port 9001 $IMAP_HOST $IMAP_USER $IMAP_PASS $IMAP_ALARM_LABEL

Create an alarm for your Pagerduty icidents on your Sonos

  1. Add a valid email address under the Contact Information tab in your PagerDuty profile and make sure it receives emails for incidents in the Notification Rules tab.
  2. Add a rule in your mail program / Gmail to sort the mail from PagerDuty into a specific IMAP folder / Gmail label.
  3. Start the email-sonos-alarm program like described in the previous section

About

Create an alarm on your Sonos when a new mail is received

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published