OctoPrint-EmailNotifier
OctoPrint-EmailNotifier copied to clipboard
I fixed some issue, so...
before author update this plugin, you can install my fixed one on my github. just install with command
/home/pi/oprint/bin/python -m pip install https://github.com/ericli1018/OctoPrint-EmailNotifier/archive/master.zip
I add using tls, ssl, port number option in config page. have fun~
if you want to use google smtp send mail
please follow step below:
-
pip install --upgrade setuptools
-
use pip command install fork project on my github
-
if you have double account auth. Get app password by link https://security.google.com/settings/security/apppasswords
-
install keyring #thanks jeffgolden remind /home/pi/oprint/bin/python -m pip install keyring
open python command
import yagmail yagmail.register('[email protected]','your app password') quit()
-
restart service
-
enter config page, checked use tls, port =587, server=smtp.gmail.com, user=your gmail full address, then save config.
-
open config again, and enter config page to touch send test mail
-
wait to received email
Thanks for posting this -- I recently had to re-do my setup and used your package and this guide to get back up and running. Worked like a charm. Only one thing you might want to add to the instructions above (if you don't already have it installed) is to run: /home/pi/oprint/bin/python -m pip install keyring
before your step 3
Thanks @ericli1018! I'm glad people find this plugin useful but regret that I have been unable to maintain it. I realize this has resulted in frustration for some users. So, I appreciate the effort you have put in to posting fixes.
I dont know how to "maintain" this... but i got it working under the 0.15.1 with little effort... your core plugin is hidden from the plugin list.
Thanks to @anoved for original plugin -- wish you had time to maintain it (but I understand). :-( Thanks to @ericli1018 for the updates!
For others arriving here because they are having trouble installing, I just did a fresh install starting with Octopi 0.15.1, and here's the sequence that worked for me:
- Installed Octopi 0.15.1 per instructions.
- SSH'd and updated OS (i.e., 'sudo apt-get update" and 'sudo apt-get dist-ugprade')
- Updated Octoprint to current version (1.3.9 at moment).
- Installed Email Notifier via Octorprint plugin UI, using master.zip provided by @ericli1018: https://github.com/ericli1018/OctoPrint-EmailNotifier/archive/master.zip
- SSH'd and run following commands at prompt:
source ~/oprint/bin/activate
pip install yagmail
pip install keyring (note: be patient, this takes a while....)
pip install keyrings.alt
python
>>> import yagmail
>>> yagmail.register('my.email','my.password')
>>> ctrl-D to exit
sudo shutdown -r now
After restarting, Email Notifier was able to successfully send email. Hooray!
I put off upgrading my pi to a pi3b+ for a long time, because I was concerned I wouldn't be able to get this plugin working. Sure hope someone with the necessary skills will be able to step up and fully take over maintenance -- would be nice to see keyrings.alt eliminated, and to perhaps see a better installation process or at least official installation instructions for the yagmail/keyrings/register stuff.