TwoToneDetect I love it but struggling with crashing and emails.

Status
Not open for further replies.

SimplyTech

Member
Premium Subscriber
Joined
Apr 25, 2018
Messages
10
I got it to email once but haven't got it to work again. I tested SMTP settings so I know those are right. Here is the error I am getting.

['Tone1', 'Generic Fire Dept', 1598833514.0832474, 0]
setting mail server up
set up mail server
starting TLS
done starting TLS
logging in
logged in
Traceback (most recent call last):
File "TwoToneDetect73f.py", line 1427, in mail
File "smtplib.py", line 881, in sendmail
smtplib.SMTPRecipientsRefused: {}
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for Generic Fire Dept Page Received at 20:25:14 on 08/30/20
Adding Generic Fire Dept back to detection list after 4 second delay

The other issue I will edit this post to add the code. It seems I didn't save it.
 

SimplyTech

Member
Premium Subscriber
Joined
Apr 25, 2018
Messages
10
Update if I turn off " Send Emails Sequentially: " It will work fine. I have tried both verizon and on.
 

SimplyTech

Member
Premium Subscriber
Joined
Apr 25, 2018
Messages
10
Can't edit original post I guess... here is the crash.


Code:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.py", line 926, in _bootstrap_inner
  File "threading.py", line 870, in run
  File "site-packages\pystray\_base.py", line 182, in setup_handler
  File "TwoToneDetect73f.py", line 2310, in setup
  File "TwoToneDetect73f.py", line 2243, in start
  File "TwoToneDetect73f.py", line 2204, in record
  File "site-packages\pyaudio.py", line 608, in read
OSError: [Errno -9999] Unanticipated host error
 

rsenzon

Newbie
Joined
May 7, 2020
Messages
2
Location
Lake Huntington, NY
Did you ever get this resolved? I am having the same issue.

I got it to email once but haven't got it to work again. I tested SMTP settings so I know those are right. Here is the error I am getting.



The other issue I will edit this post to add the code. It seems I didn't save it.
 

SimplyTech

Member
Premium Subscriber
Joined
Apr 25, 2018
Messages
10
Yes and no, So it came down to the audio driver crashes for a moment and come back. So after learning a bit more about the software I determined a file that is written to about every minute. With this knowledge I wrote a powershell script that checks to see if that file modified date is older than 2-5 mins and if it is then it kills the process and restarts it. I got a nicer computer and its been much less of an issue but if that is not a possibility I can share my powershell scripts and possibly give some insight on how to schedule them.
 
Status
Not open for further replies.
Top