Comments (10)
I will have to test this out.
Have you tried using Gmail, for example? I've gotten issues with mail before, but mostly because of 2FA or having the "Block unauthorised apps" security feature turned on.
from outage-detector.
I have not. I will create a gmail account and test it that way as well.
from outage-detector.
Am having the same issue as OP. Same email server (iCloud) and same traceback. Will try with Gmail next...
from outage-detector.
Blocked by gmail. By the time I authorized the access, I was blocked by "too many attempts" so will have to try this again tomorrow.
from outage-detector.
BTW, I tried port 465 for iCloud (SSL) rather than the normal 587 (TLS) port. Instead of the previous traceback, I got a timeout:
Traceback (most recent call last):
File "/home/pi/python/ven/bin/outage_detector", line 10, in <module>
sys.exit(main())
File "/home/pi/python/ven/lib/python3.7/site-packages/outagedetector/__main__.py", line 18, in main
config.initialize()
File "/home/pi/python/ven/lib/python3.7/site-packages/outagedetector/initial_config.py", line 71, in initialize
"Mail sent successfully!", json_data["smtp_server"], password, json_data["port"])
File "/home/pi/python/ven/lib/python3.7/site-packages/outagedetector/send_mail.py", line 40, in send_mail
with SMTP_SSL(smtp_server, port, context=context) as server:
File "/usr/lib/python3.7/smtplib.py", line 1031, in __init__
source_address)
File "/usr/lib/python3.7/smtplib.py", line 251, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python3.7/smtplib.py", line 336, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python3.7/smtplib.py", line 1037, in _get_socket
self.source_address)
File "/usr/lib/python3.7/socket.py", line 727, in create_connection
raise err
File "/usr/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
from outage-detector.
Final update: Gmail won't allow this to work because it considers the app to be less secure than its usual standard. I could modify my Gmail account to permit less secure app access, but this makes the account more vulnerable. So for the moment, I'm unable to use the outage_detector with either of my email accounts.
from outage-detector.
I was not able to get it to setup through gmail either. I have it running with Pushbullet and as Safari Notification, but I'd prefer to get it going through email of some sort.
from outage-detector.
My understanding was that PushBullet isn't an option for iPhone, so still working on getting email to work for me. Am on new Pi4, only thing installed is pi-hole, running commands from YouTube video...
from outage-detector.
Pushbullet used to be on the App store but it seems they removed it. I.'ve downloaded it a long time ago so I can still use it.
@nevillator-999 You said you couldn't get it to work with gmail. Could you share the exception it threw?
@jaaabeee I made a separate gmail account just for the purpose of automated mails, so I turned that feature off on that account.
from outage-detector.
I was having similar issues but was able to resolve by using my gmail as the outgoing mail, with a 2 factor authentication for security and with an app specific password. I tried allowing less secure to connect with gmail but in the end, only the two factor authentication and specific app password worked. I used my iCloud account for the receiving mail. It worked and I got the test email. However, I have other issues as mentioned in the first issue thread.
from outage-detector.
Related Issues (16)
- Code on an old Pi HOT 2
- install error code
- Question on Internet Down calculation HOT 3
- How to back up settings?
- Prompted to enter password for keyring
- Won't install on any PI or even a debian OS HOT 32
- When upgrading using pip3 install outage-detector --upgrade
- Suggestions
- Initialization issue
- Does not install to /usr/bin on Raspberry Pi HOT 1
- possible feature HOT 1
- Encrypt Pushbullet Key HOT 3
- IFTTT Support HOT 3
- pip3 install Outage-Detector doesn't update prior version HOT 5
- Need Help With Error Message HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from outage-detector.