Skip to content

Receive email notifications when OctoPrint jobs are started/fail/complete. OctoPrint 1.4/Python3 support.

License

Notifications You must be signed in to change notification settings

idcrook/OctoPrint-EmailNotifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OctoPrint-EmailNotifier

UPDATE 2023-Jun-04: Remove references to python2

  • Tested to work on OctoPrint 1.9.0

UPDATE 2020-Sep-30: Version 0.2.0 updated with python3 support

  • Tested on OctoPrint 1.4.x

Recieve email notifications when OctoPrint jobs are STARTED, COMPLETED, FAILED or CANCELLED.

Forked from

  • kotl/OctoPrint-EmailNotifier which is forked from
    • ericli1018/OctoPrint-EmailNotifier which is forked from
      • anov/OctoPrint-EmailNotifier

Settings tab and email screenshot

Installation

Install via the OctoPrint Plugin Manager manually using this archive URL:

https://github.com/idcrook/OctoPrint-EmailNotifier/archive/main.zip

Configuration

Your outgoing email account password is not stored with OctoPrint's settings. It is retrieved from your system keyring. Store your password from a Python prompt on your OctoPrint system using yagmail.register:

$ ~/oprint/bin/python
>>> import yagmail
>>> import keyring
>>> yagmail.register("SMTP username", "SMTP password")

For some accounts, your SMTP username may be your complete [email protected] address.

To use yagmail (and thus OctoPrint-EmailNotifier) with Gmail, you may need to allow less secure apps to access your account.

  • Server: smtp.gmail.com
  • Serverport: 587
  • Use TLS

Troubleshooting

If on Raspberry Pi, when you try to [Send a test email] and you encounter this error:

ImportError: libxslt.so.1: cannot open shared object file: No such file or directory

Install the system library:

$ sudo apt install libxslt-dev
# on later systems, if that does not work # $ sudo apt install libxslt1-dev

Acknowledgements

Loosely based on OctoPrint-Pushbullet.

Uses yagmail to send email.

License

Licensed under the terms of the AGPLv3.

About

Receive email notifications when OctoPrint jobs are started/fail/complete. OctoPrint 1.4/Python3 support.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 61.9%
  • Jinja 23.1%
  • JavaScript 15.0%