TwoToneDetect New TwoToneDetect in the works - Python based

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
557
Location
Texarkana, Arkansas
email_subject = [d] Page Received at [t] #MVTTD

Is anyone having issues with changing the subject, saving encrypted file, uploading encrypted file, and then the change in subject missing?

Before the basics are asked:
*have done this several times now.
*The saved tones.cfg shows the subject as modified. I also added an email for good measure to ensure the new file is getting downloaded.
*deleted the local and remote encrypted files to ensure everything was fresh.
**saved the local encrypted file
**uploaded the encrypted file
*deleted the local tones.cfg after uploading the encrypted file. (after making a renamed copy of course)
*ran TTD70 and it downloads the file and extracts to tones.cfg
**the new email I added is in the tones.cfg file but the changed subject is at default and missing #MVTTD in the subject for both tones.
 

fredva

Member
Feed Provider
Joined
Mar 19, 2007
Messages
2,272
Location
Virginia/West Virginia
I'm using version 6.3 of the software. It was working fine up til about 1 1/2 weeks ago. Then the emails and text messages stopped being sent out. I ran the debug version. After starting the debug version, I believe it sent out one alert, then stopped sending the messages as well. On the failed attempts, the log showed an error:

Traceback (most recent call last):
File "<string>", line 453, in mail
File "C:\Users\Deer Creek Fire Dept\Google Drive\Python\build\pyi.win32\TwoToneDetect63_debug\outPYZ1.pyz/smtplib", line 242, in __init__
gaierror: [Errno 11001] getaddrinfo failed
Email not sent on attempt 1trying again in five seconds

I've been using an aol account with port 587 as the sender. I tried switching to a gmail account but that smtp connection was blocked. As a result of the block, I was offered the opportunity by Google to let unsafe apps send out messages using the gmail account, but so far, I haven't gone that route.

Any ideas on how to overcome this problem? Would upgrading to a newer version of TwoToneDetect resolve the issue?
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I'm using version 6.3 of the software. It was working fine up til about 1 1/2 weeks ago. Then the emails and text messages stopped being sent out. I ran the debug version. After starting the debug version, I believe it sent out one alert, then stopped sending the messages as well. On the failed attempts, the log showed an error:

Traceback (most recent call last):
File "<string>", line 453, in mail
File "C:\Users\Deer Creek Fire Dept\Google Drive\Python\build\pyi.win32\TwoToneDetect63_debug\outPYZ1.pyz/smtplib", line 242, in __init__
gaierror: [Errno 11001] getaddrinfo failed
Email not sent on attempt 1trying again in five seconds

I've been using an aol account with port 587 as the sender. I tried switching to a gmail account but that smtp connection was blocked. As a result of the block, I was offered the opportunity by Google to let unsafe apps send out messages using the gmail account, but so far, I haven't gone that route.

Any ideas on how to overcome this problem? Would upgrading to a newer version of TwoToneDetect resolve the issue?

The "getaddrinfo failed" error indicates that TTD wasn't able to resolve your email server address to an IP address, which is a DNS issue. Did AOL change their email server name? Also, this can sometimes be a temporary problem when a server IP address changes that will eventually resolve itself.

Andy
 

fredva

Member
Feed Provider
Joined
Mar 19, 2007
Messages
2,272
Location
Virginia/West Virginia
The "getaddrinfo failed" error indicates that TTD wasn't able to resolve your email server address to an IP address, which is a DNS issue. Did AOL change their email server name? Also, this can sometimes be a temporary problem when a server IP address changes that will eventually resolve itself.

Andy

Andy, thank you for that info. I did some more logging though and found that the most consistent error message was connection unexpectedly closed. Perhaps AOL has done something that rejects emailing from what Google is calling less secure apps. What I decided to do for now is to set up a new gmail account, adjust the account settings to theoretically allow TTD to send email using that account, and entered the gmail account info into TTD. Now I'll wait and see if email actually gets sent.
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
557
Location
Texarkana, Arkansas
Andy, thank you for that info. I did some more logging though and found that the most consistent error message was connection unexpectedly closed. Perhaps AOL has done something that rejects emailing from what Google is calling less secure apps. What I decided to do for now is to set up a new gmail account, adjust the account settings to theoretically allow TTD to send email using that account, and entered the gmail account info into TTD. Now I'll wait and see if email actually gets sent.
Google made me turn on less secure apps for Outlook 2013 and Thunderbird 52. Those were different accounts.

Sent from my S7 using Tapatalk.
 

mattnelson26

Member
Joined
Mar 20, 2007
Messages
388
Location
Hopkins, Minnesota
Help with TTD Monitor Script

I created the attached batch file script to monitor the TTD application running on a Windows PC. I added the batch file to Windows Scheduler to run hourly to monitor the application.

This script will check to see if TTD is running and if it is checks that it is not responding. If the TTD application is not running or unresponsive it attempts to start TTD. If the script is unable to load TTD it restarts the computer, presuming that you have TTD set to start when Windows loads.

I hope to build on this so if you have an FTP server the script can upload a log file showing if TTD was running on last check or not. That will be phase II of the project.

Just change the file type to .bat and place it in the same folder as TTD. Make sure appName is set to the exact name of the TTD EXE version you are running.


Hope this helps someone


is there anyone that could help me set this up i am running multiple ttd on the computer.

thanks,
matt
 

wfrancis16

Member
Joined
Apr 6, 2010
Messages
47
Location
Hudson, MA
Format for PushBullet

Does anyone know how to correctly reference the pushbullet channel is the Toneseditor GUI?

For example, I created a channel that is named "Sudbury Box Tone" with a tag of "sudburyboxtone".

After a tone is received that log says that it cannot find the channel. I have already created the access token and entered that into the GUI.

Any help would be appreciated.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
Does anyone know how to correctly reference the pushbullet channel is the Toneseditor GUI?

For example, I created a channel that is named "Sudbury Box Tone" with a tag of "sudburyboxtone".

After a tone is received that log says that it cannot find the channel. I have already created the access token and entered that into the GUI.

Any help would be appreciated.

Can you post the log showing the error?
 

wfrancis16

Member
Joined
Apr 6, 2010
Messages
47
Location
Hudson, MA
pushbullet

I removed the "#" . Still not sent. The most recent log is attached.
 

Attachments

  • log_2018-04-12_09_59_55_081000.txt
    8.4 KB · Views: 61

slingshot202

Member
Feed Provider
Joined
Sep 10, 2008
Messages
691
Location
New Jersey
Has anyone ever figured out how to sent an alert to Google voice? For the first time I saw a system that allowed messages to GV, but I still have no idea if there is an email address associated with it, other than the long and lengthy email strings i Have seen when googling the subject.

Figured this might be a good place to ask. Thanks.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
I removed the "#" . Still not sent. The most recent log is attached.

Okay, but you have a different error message now. This one about not being able to find the audio file usually is a result of ffmpeg not being properly installed.

Also did you restart TTD before testing? You need to restart it to reload your changes.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
Has anyone ever figured out how to sent an alert to Google voice? For the first time I saw a system that allowed messages to GV, but I still have no idea if there is an email address associated with it, other than the long and lengthy email strings i Have seen when googling the subject.

Figured this might be a good place to ask. Thanks.

CJ,

Here is one that apparently works for me. Of around 500 subscribers, I only have one GV I believe.

"Name"<12345678890@msg.fi.google.com>

Try it and report back if it works or not.
 

wfrancis16

Member
Joined
Apr 6, 2010
Messages
47
Location
Hudson, MA
pushbullet and ffmpeg

Okay, but you have a different error message now. This one about not being able to find the audio file usually is a result of ffmpeg not being properly installed.

Also did you restart TTD before testing? You need to restart it to reload your changes.

I have tried installing ffmpeg and it does not seem to be as straight forward as I thought it would be. I downloaded the latest version static zip file. I then found the .exe file under the bin folder. Where do I place the application? Do I just copy it to the audio folder in the two tone directory?
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
I have tried installing ffmpeg and it does not seem to be as straight forward as I thought it would be. I downloaded the latest version static zip file. I then found the .exe file under the bin folder. Where do I place the application? Do I just copy it to the audio folder in the two tone directory?

Not in the audio folder. It goes in the TTD folder or whatever you have named your folder that contains the TwoToneDetect program file.

There are specific instructions regarding ffmpeg on Andy&#8217;s web page twotonedetect.net.
 
Top