TwoToneDetect New TwoToneDetect in the works - Python based

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
510
Location
Texarkana, Arkansas
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.

That only works if they are subscribed to the Project Fi service. Good catch, tho.
 

wfrancis16

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

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’s web page twotonedetect.net.

FFmpeg is now in the correct directory. It starts up when a tone is received. The error looks different in the log now. The most recent one is attached.
 

Attachments

  • log_2018-04-13_13_47_05_225000.txt
    117.4 KB · Views: 58

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,547
Location
Massachusetts
I think your problem is still related to ffmpeg. Here is what a successfuly ffmpeg conversion looks like:

1247.0 369.100998268
849.0 408.310719438
661.0 64.47909879
Waiting for Silence TFFD_Medical 20:13:16 on 04/10/18
Done recording TFFD_Medical 20:13:18 on 04/10/18
done writing WAV TFFD_Medical 20:13:18 on 04/10/18i
done converting to MP3 TFFD_Medical 20:13:20 on 04/10/18
done converting to AMR TFFD_Medical 20:13:21 on 04/10/18

The conversion from wav to mp3/amr is done by ffmpeg.
 

wfrancis16

Member
Joined
Apr 6, 2010
Messages
47
Location
Hudson, MA
I think your problem is still related to ffmpeg. Here is what a successfuly ffmpeg conversion looks like:

1247.0 369.100998268
849.0 408.310719438
661.0 64.47909879
Waiting for Silence TFFD_Medical 20:13:16 on 04/10/18
Done recording TFFD_Medical 20:13:18 on 04/10/18
done writing WAV TFFD_Medical 20:13:18 on 04/10/18i
done converting to MP3 TFFD_Medical 20:13:20 on 04/10/18
done converting to AMR TFFD_Medical 20:13:21 on 04/10/18

The conversion from wav to mp3/amr is done by ffmpeg.

I appreciate all the help. I found out that the version of ffmpeg that I had was not compatible with my version of windows. It kept crashing, which caused the error. It took a little bit of searching but I found that right one and it has been running great.

Thanks again for the help.
 

VTRadioGuy

Member
Joined
Feb 12, 2018
Messages
7
Location
Wallingford, Vt
Greetings all, I have been running v68 for about a year on a Windows 10 machine. The only issues I have had were things like the power going out or something like that, this program worked flawlessly. Last week Windows updated and now it won't decode tones. I updated to v70 and downloaded the latest ffmpeg and still nothing. I can see that it is receiving the audio when I have the debugger open, but the tones don't register for some reason. Has anyone else had this happen? Tones are 569.1 and 1006.1. I keep the tone tolerance set to 3.0 to allow some fudge factor. Any help is appreciated.

EXCEPTION
;Put text here that you want to appear in the title bar of the program
Successfully retrieved local tone info at 19:45:15 on 04/14/18
Successfully retrieved local tone info at 19:45:15 on 04/14/18
Tone3
Tone4
Successfully retrieved local tone info at 19:45:15 on 04/14/18
317.0 389.171069744
602.0 357.458403361
392.0 332.748080887
527.0 306.093951345
527.0 341.217859946
570.0 15471.9916182
570.0 13931.6627809
570.0 11583.4974943
570.0 10573.8567914
570.0 5255.40793771
570.0 58.6348802901
1000.0 162.657150223
1000.0 1505.76294844
1000.0 2748.07265553
1000.0 4049.08868375
1000.0 5267.22599128
1000.0 6331.41736676
1000.0 7581.99589252
1000.0 8849.13034229
1000.0 9945.63179849
1000.0 10459.377064
1000.0 10694.1262933
1000.0 10938.3034824
1000.0 11176.6648911
1000.0 11397.9564075
1000.0 10647.5259661
328.0 610.136047482
392.0 568.768227737
397.0 408.8472128
397.0 406.936282385
397.0 328.980631053
392.0 405.709557587
462.0 7034.74006685
381.0 3075.99506308
440.0 5415.57508657
376.0 1514.60028033
338.0 3760.08327147
338.0 4355.17870214
1779.0 940.514074751
392.0 269.470857122
392.0 346.68373229
392.0 451.168461618
392.0 1992.69328956
483.0 28.8787339976
290.0 17277.1261782
 

putterizer

Member
Joined
Jul 29, 2009
Messages
77
Location
WI
Did you move the tones.cfg and config.cfg files from your v68 folder to your v70 folder?
Or did you set up the tones.cfg file in the v70 folder?
 

jeremyo676

Newbie
Joined
Mar 4, 2018
Messages
2
invalid key error pushbullet

I have two tone v70 working good. My problem is with pushbullet. I signed in to pushbullet, setup an account, made a channel. Got API key. But i must me missing something.



e_m_s_ Tone Set Found

0
after record
delay timer e_m_s_ 18:05:04 on 04/15/18
1285.0 32766.5562213
0
delay done e_m_s_ 18:05:04 on 04/15/18
waiting for audio e_m_s_ 18:05:04 on 04/15/18
threshold value: 181.019335984
mono
1285.0 32766.1301978
threshold exceeded
recording audio e_m_s_ 18:05:04 on 04/15/18
iterations: 300
1285.0 32766.5562213
1285.0 32766.8402392
1285.0 32766.5562213
1285.0 32766.1301978
1285.0 32766.9822488
Traceback (most recent call last):
File "TTD70.py", line 228, in pushbulletnotify
File "site-packages\pushbullet\pushbullet.py", line 43, in __init__
InvalidKeyError

Done recording e_m_s_ 21:43:15 on 04/15/18
done writing WAV e_m_s_ 21:43:15 on 04/15/18
done converting to MP3 e_m_s_ 21:43:16 on 04/15/18
done converting to AMR e_m_s_ 21:43:18 on 04/15/18
logging in
logged in
MP3 Group Email sent to "jeremy"<###########@gmail.com> via smtp.gmail.com on port 465 using SSL e_m_s_ Page Received at 21:42:34 on 04/15/18 21:43:21 on 04/15/18
Traceback (most recent call last):
File "TTD70.py", line 239, in pushbulletsendfile
File "site-packages\pushbullet\pushbullet.py", line 43, in __init__
InvalidKeyError
 

steve0622

Member
Joined
Jun 9, 2008
Messages
92
Location
Wichita Falls, TX
Strange happenings: Running Windows Server 2008 TTD65c and gmail for sending. Has been working fine since ,migrated tp 65c when it was released. 2 weeks ago all my us cellular and sprint customers stopped receiving the txt messages, but all other carriers where fine...as of 3 days ago, the only customers recieving the txt messages are cricket wireless. All customers on email have been unaffected and recieving as normal. TTD runs at a remote location that I will be visiting tomorrow. At that time, I will be able to view the log and see if any local issues and have more info. Anyone else ever experienced this?
 

steve0622

Member
Joined
Jun 9, 2008
Messages
92
Location
Wichita Falls, TX
after a full day of research on my previous issue, this is the steps I have taken so far. I have upgraded to ver70, did not copy and paste distro list...I manually retyped all address and setup from scratch. I migrated from gmail to a paied email service with a limit of 10,000 messages per month. I am consistantly getting errors when sending to the distro list. The errors does not occur at the same point each time...its completly random. This happens on 2 different computers, 1 being win 7pro 1 being win 10. @ differnt isp's, and 2 different email accounts. Here are the errors.

Traceback (most recent call last):
File "TTD70.py", line 100, in mail
File "smtplib.py", line 748, in sendmail
SMTPServerDisconnected: Connection unexpectedly closed: ('The read operation timed out',)
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for Punkin Center VFD Page Received at 13:05:43 on 04/23/18

Traceback (most recent call last):
File "TTD70.py", line 46, in mail
ValueError: list.remove(x): x not in list
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 2 trying again in five seconds for Punkin Center VFD Page Received at 13:05:43 on 04/23/18

Traceback (most recent call last):
File "TTD70.py", line 46, in mail
ValueError: list.remove(x): x not in list
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 3 trying again in five seconds for Punkin Center VFD Page Received at 13:05:43 on 04/23/18
max retries exceeded, failed to send email
Traceback (most recent call last):
File "TTD70.py", line 100, in mail
File "smtplib.py", line 747, in sendmail
SMTPRecipientsRefused: {'"hiddeninfo@mms.uscc.net"<>': (555, '5.5.2 Syntax error. i124-v6sm7480657oib.21 - gsmtp')}
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for Electra VFD Page Received at 13:05:43 on 04/23/18
Traceback (most recent call last):
File "TTD70.py", line 46, in mail
ValueError: list.remove(x): x not in list
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 2 trying again in five seconds for Electra VFD Page Received at 13:05:43 on 04/23/18
Traceback (most recent call last):
File "TTD70.py", line 46, in mail
ValueError: list.remove(x): x not in list
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 3 trying again in five seconds for Electra VFD Page Received at 13:05:43 on 04/23/18
max retries exceeded, failed to send email

Traceback (most recent call last):
File "TTD70.py", line 100, in mail
File "smtplib.py", line 750, in sendmail
SMTPServerDisconnected: Connection unexpectedly closed
Email not sent via smtp.office365.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for Electra VFD Page Received at 19:55:21 on 04/23/18
MP3 Individual Email sent to "Lucz"<hidden@mms.uscc.net> via smtp.office365.com on port 587 using STARTTLS Punkin Center VFD Page Received at 19:55:21 on 04/23/18 19:56:13 on 04/23/18
Traceback (most recent call last):
File "TTD70.py", line 46, in mail
ValueError: list.remove(x): x not in list
Email not sent via smtp.office365.com on port 587 using STARTTLS on attempt 2 trying again in five seconds for Electra VFD Page Received at 19:55:21 on 04/23/18
MP3 Individual Email sent to "Bo"<hidden@vzwpix.com> via smtp.office365.com on port 587 using STARTTLS Punkin Center VFD Page Received at 19:55:21 on 04/23/18 19:56:15 on 04/23/18
MP3 Individual Email sent to "So"<hidden@vzwpix.com> via smtp.office365.com on port 587 using STARTTLS Punkin Center VFD Page Received at 19:55:21 on 04/23/18 19:56:16 on 04/23/18
Traceback (most recent call last):
File "TTD70.py", line 46, in mail
ValueError: list.remove(x): x not in list
Email not sent via smtp.office365.com on port 587 using STARTTLS on attempt 3 trying again in five seconds for Electra VFD Page Received at 19:55:21 on 04/23/18
MP3 Individual Email sent to "Bo"<hidden@mms.uscc.net> via smtp.office365.com on port 587 using STARTTLS Punkin Center VFD Page Received at 19:55:21 on 04/23/18 19:56:22 on 04/23/18
MP3 Individual Email sent to "Sta"<hidden@mms.uscc.net> via smtp.office365.com on port 587 using STARTTLS Punkin Center VFD Page Received at 19:55:21 on 04/23/18 19:56:23 on 04/23/18
max retries exceeded, failed to send email

any ideas?

Also, i am having a hard time setting up PushBullet....I have created the channels, and API key, have inserted the channel names along with api key into ttd70, what else needs to be done...ttd is not even trying to talk with PushBullet.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,547
Location
Massachusetts
{'"hiddeninfo@mms.uscc.net"<>': (555, '5.5.2 Syntax error. i124-v6sm7480657oib.21 - gsmtp')}

In that entry you have the parameters reversed. The email address goes between the <>. Once TTD encounters an error such as this, all addresses after that error will fail. That might be part of your problem.
 

chassed

Member
Feed Provider
Joined
Nov 6, 2009
Messages
32
Location
CT
Hi all looking for some help. I just got everything setup and am having a problem with getting it to send the recordings to the emails that I have entered into the MP3 and AMR list. I have the decode showing that it revived the page and it send a message to the email "from" that I have entered, but will not send a email to any of the email in the MP3 email list or the AMR email list. But if I use the "Send Admin Email" it works.

Im sure its something simple but I have spent hours playing with it and cant get it to work.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,547
Location
Massachusetts
Hi all looking for some help. I just got everything setup and am having a problem with getting it to send the recordings to the emails that I have entered into the MP3 and AMR list. I have the decode showing that it revived the page and it send a message to the email "from" that I have entered, but will not send a email to any of the email in the MP3 email list or the AMR email list. But if I use the "Send Admin Email" it works.

Im sure its something simple but I have spent hours playing with it and cant get it to work.

Can you post the log information showing the decode and susequently where it sent the email and where they failed? It will be in the logfiles folder.
 

johnmac

Member
Feed Provider
Joined
Oct 6, 2003
Messages
159
Location
Westminster, Ma
Question concerning Two Tone Detect vs. Tone Finder

I am running a v68 of Two Tone Detect and v01 of Tone Finder, both on the same sound card and the same audio. Tone finder is reporting completely different tone values of known tones working in Two Tone Detect.

Example -

Two Tone - 1074 / 484
Tone Finder - 2095 / 988

Is it possible to run both at the same time? I have two instances of Two Tone running, plus Tone Finder all receiving audio from one sound card. Or is the problem having them running at the same time.

Thanks,

John
 

chassed

Member
Feed Provider
Joined
Nov 6, 2009
Messages
32
Location
CT
Can you post the log information showing the decode and susequently where it sent the email and where they failed? It will be in the logfiles folder.

Attached is the log I think you are looking for. After reading through it appears maybe the email or password are wrong. so I entered that info again. But Im not sure if it was wrong how it would work when I sent a manger message.
 

Attachments

  • log_2018-04-30_10_51_38_044000.txt
    9.6 KB · Views: 61

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,547
Location
Massachusetts
Attached is the log I think you are looking for. After reading through it appears maybe the email or password are wrong. so I entered that info again. But Im not sure if it was wrong how it would work when I sent a manger message.

Yes, you are correct, it is bad credentials. Otherwise , it looks like it is running fine.
 

chassed

Member
Feed Provider
Joined
Nov 6, 2009
Messages
32
Location
CT
Yes, you are correct, it is bad credentials. Otherwise , it looks like it is running fine.

I ended up restarting the computer and entering all the email info again and it is now working. The problem I am now having is that the recordings are 1:30 long and the dispatch is only about .30 long. How do I shorten this up?
 
Top