TwoToneDetect New TwoToneDetect in the works - Python based

dwgelle

Member
Joined
Jul 28, 2003
Messages
263
Reaction score
27
Location
Meeker Co.- MN
I just loaded Pi for TTD on my B+ model. I have been able to log in and edit the tones and config files. But I cannot load the screens for either TTD or Blackice using the commands listed here... TwoToneDetect Pi Image | TwoToneDetect

So I do not know if it is running TTD or not. I do not know a lot about Pi. Just looking for any advice.
Thanks!
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,644
Reaction score
183
Location
Massachusetts
I just loaded Pi for TTD on my B+ model. I have been able to log in and edit the tones and config files. But I cannot load the screens for either TTD or Blackice using the commands listed here... TwoToneDetect Pi Image | TwoToneDetect

So I do not know if it is running TTD or not. I do not know a lot about Pi. Just looking for any advice.
Thanks!

Try the command $screen -list

(Without the $, that is the linux prompt)

If TTD is running it should show a detached screen.

If nothing shows, try running TTD manually:

Change to the correct directory. $cd TTD/Pi

List the files in this directory. $ls

Find the file that starts TwoToneDetect with the .pyc extension

Type $ python TwoToneDetectXXPi.pyc Substitute the numbers you see in the file name.

This should cause TTD to run and display on the screen. Make note of any error messages.

Remember, all the commands you type are case sensitive including file names.

One of my guesses is that you may have the email login or encoded password screwed up. That can cause TTD to not load. You also need to have your usb sound card plugged in before booting up the pi.

Good luck and i am sure that we will hear back from you.
 
Last edited:

dwgelle

Member
Joined
Jul 28, 2003
Messages
263
Reaction score
27
Location
Meeker Co.- MN
Thank you for your help. I get No sockets found when I enter screen -list. and when I run python TwoTondetect67Pi.pyc I get back a few pages of info. I attached a txt file of the screen. I hope this helps. Also it looks like my audio card is working by looking at this file. but is there a way to control the card. I am using a Siig Sound wave 7.1 pro.

Thank you for your time and expertise!
 

Attachments

  • TTDPi_Log2.txt
    21.4 KB · Views: 161

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,644
Reaction score
183
Location
Massachusetts
Thank you for your help. I get No sockets found when I enter screen -list. and when I run python TwoTondetect67Pi.pyc I get back a few pages of info. I attached a txt file of the screen. I hope this helps. Also it looks like my audio card is working by looking at this file. but is there a way to control the card. I am using a Siig Sound wave 7.1 pro.

Thank you for your time and expertise!

I took a quick look through the .txt file. Thanks for including it. I see at least three issues:

1. You have something wrong with the format of Longtone 1 in tones.cfg. Maybe you need to add a decimal and number, i.e., 1000.0. If you are not using the long tone section, delete the entire section.

2. Delete all references to c:test.bat in your tones.cfg file. You aren't using it and it is only throwing errors.

3. You are getting SMTPauthentication error. This means that TTD can't get logged into your email server. Log into the server manually from a web browser and see what sort of authentication it is looking for. Make sure that you have your email login correct in config.cfg and that the password is base64 encoded properly.

Most of the other gobbledigook that looks like error messages is all normal. I will take a closer look later

Jim
 

dwgelle

Member
Joined
Jul 28, 2003
Messages
263
Reaction score
27
Location
Meeker Co.- MN
Thank you again Jim DC31. I still have email problems looks like after I changed some things. Edited my tones cfg to delete the long tone. I attached my latest screen shot.
 

Attachments

  • TTDPi_log4.txt
    33.6 KB · Views: 105
Last edited:

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,644
Reaction score
183
Location
Massachusetts
Thank you again Jim DC31. I still have email problems looks like after I changed some things. Edited my tones cfg to delete the long tone. I attached my latest screen shot.

Can you post your tones.cfg file? At least the part for Gold Cross LCH. You can delete email addresses if you want
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,644
Reaction score
183
Location
Massachusetts
Here is the Tones file

A couple tweaks to make:

Set record delay to zero

Set ignore after to 30

Delete the entire line Alert_command = c: test.bat
Delete the entire line Post_Email_Command = c:test.bat

In your config.cfg, what do you have your tone tolerance set to?
 

R_Rabbit10

Member
Joined
Mar 9, 2013
Messages
49
Reaction score
32
make the changes in redundant.cfg then restart TTD so that the program actually creates the new files on the server.
Well, I tried the changes, but TTD on both computers just keeps on freezing randomly. Sometimes when tones are received, other times without apparent cause (ie no tones or audio received at all).

Closing both TTD's, emptying the online log file (that holds the data on when TTD was heard from last) AND moving all local log file for both instances to a different directory and than restarting both TTD isntances, seem to make TTD run again for a few days, until it starts to freeze again.

When I only empty the log file online, both TTD instances will freeze almost instantly again.
When I only move the local log files, both TTD instances will freeze almost instantly again.
When I only move the local log files for one TTD, both TTD instances will freeze almost instantly again.

So the only temporary solution seems to be to close both TTD instances, move/delete the local log file, empty the online log file and then to restart both TTD instances...

Is there no one with similar issues? Or any one with any ideas as to why this is happening and maybe someone has a solution?
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,644
Reaction score
183
Location
Massachusetts
I have the tone tolerance at 1.5
audio threshold 54
tone offset 0

I suspect that you may also filled your TTD/audio folder with attempted recordings. Empty that folder.

Then run $ df -h to see how much space you have on your SD card.
 

dwgelle

Member
Joined
Jul 28, 2003
Messages
263
Reaction score
27
Location
Meeker Co.- MN
Well I think it is running, i have the scrolling frequencies/levels. But not taking my gmail account when it gets a tone. I have created an app password for it using smtp port 578.
 

Rescue14

Member
Joined
Jan 12, 2007
Messages
37
Reaction score
0
Location
Jones County, Mississippi
Andy sir, I have just started trying to use this program. I have it recording the pages and I can play them back on the computer. However I cannot get it to send them out at all. I have tried gmail, yahoo mail and my bellsouth email and no success so far. I called a man in another dept and we set everything up the same and still no luck. The only thing I can think of would be my firewall?? Could that be stopping it???
I am attaching a copy from the log of the error. Thanks for any help. By the way great program. If I can get to work it will be of great help to us.

David Houston, Chief
Shady Grove VFD
Jones County Fire Service
KE5OVX

Traceback (most recent call last):
File "<string>", line 204, in <module>
IndexError: list index out of range
Successfully retrieved local tone info at 20:07:16 on 07/09/15
Successfully retrieved local tone info at 20:07:16 on 07/09/15
Tone1
Tone2
Longtone1
[368.5, 368.5, 368.5, 399.8, 399.8, 399.8]
[617.3, 617.3, 617.3, 688.8, 688.8, 688.8]
Successfully retrieved local tone info at 20:07:16 on 07/09/15
Tone1
Tone2
 

ffemt134

Member
Joined
Jan 5, 2003
Messages
122
Reaction score
6
IFTTT

I've been dabbling with IFTTT recently.....any way to get a hashtag (#) to send in the subject field of an email when Two Tone Detect sends out a page? I've tried doing #FirePage and #EMSPage in the tone descriptions to see if that would work, but the program changes them to underscores. Thanks!
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,644
Reaction score
183
Location
Massachusetts
Andy sir, I have just started trying to use this program. I have it recording the pages and I can play them back on the computer. However I cannot get it to send them out at all. I have tried gmail, yahoo mail and my bellsouth email and no success so far. I called a man in another dept and we set everything up the same and still no luck. The only thing I can think of would be my firewall?? Could that be stopping it???
I am attaching a copy from the log of the error. Thanks for any help. By the way great program. If I can get to work it will be of great help to us.

David Houston, Chief
Shady Grove VFD
Jones County Fire Service
KE5OVX

Traceback (most recent call last):
File "<string>", line 204, in <module>
IndexError: list index out of range
Successfully retrieved local tone info at 20:07:16 on 07/09/15
Successfully retrieved local tone info at 20:07:16 on 07/09/15
Tone1
Tone2
Longtone1
[368.5, 368.5, 368.5, 399.8, 399.8, 399.8]
[617.3, 617.3, 617.3, 688.8, 688.8, 688.8]
Successfully retrieved local tone info at 20:07:16 on 07/09/15
Tone1
Tone2

I am not really sure what that index error is but it may be inconsequential. Is the above all that you get in the log or are there Freq and Level entries that stream by after this? If you are not getting Freq and Level indications, the program is hearing no audio, i.e., check your cables, scanners, radios, sound settings, etc.
 

motomeso

Member
Premium Subscriber
Joined
Dec 19, 2002
Messages
952
Reaction score
28
Location
Ontario
I've used the same image as in this link but can't login using the username and password listed on this page? Were you able to login ok? User: pi Password: twotonedetect
IP: 192.168.1.140
login as: pi
pi@192.168.1.140's password:
Access denied



I just loaded Pi for TTD on my B+ model. I have been able to log in and edit the tones and config files. But I cannot load the screens for either TTD or Blackice using the commands listed here... TwoToneDetect Pi Image | TwoToneDetect

So I do not know if it is running TTD or not. I do not know a lot about Pi. Just looking for any advice.
Thanks!
 

R_Rabbit10

Member
Joined
Mar 9, 2013
Messages
49
Reaction score
32
Well, I tried the changes, but TTD on both computers just keeps on freezing randomly. Sometimes when tones are received, other times without apparent cause (ie no tones or audio received at all).

Closing both TTD's, emptying the online log file (that holds the data on when TTD was heard from last) AND moving all local log file for both instances to a different directory and than restarting both TTD isntances, seem to make TTD run again for a few days, until it starts to freeze again.

When I only empty the log file online, both TTD instances will freeze almost instantly again.
When I only move the local log files, both TTD instances will freeze almost instantly again.
When I only move the local log files for one TTD, both TTD instances will freeze almost instantly again.

So the only temporary solution seems to be to close both TTD instances, move/delete the local log file, empty the online log file and then to restart both TTD instances...

Is there no one with similar issues? Or any one with any ideas as to why this is happening and maybe someone has a solution?

Anyone?
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,324
Reaction score
118
I've been dabbling with IFTTT recently.....any way to get a hashtag (#) to send in the subject field of an email when Two Tone Detect sends out a page? I've tried doing #FirePage and #EMSPage in the tone descriptions to see if that would work, but the program changes them to underscores. Thanks!

I can probably change that in a future release. It changes all nonstandard characters to underscores to prevent filename issues, but I don't think # will cause any problems, so I can remove that from the list of offenders.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,324
Reaction score
118
Well, I tried the changes, but TTD on both computers just keeps on freezing randomly. Sometimes when tones are received, other times without apparent cause (ie no tones or audio received at all).

Closing both TTD's, emptying the online log file (that holds the data on when TTD was heard from last) AND moving all local log file for both instances to a different directory and than restarting both TTD isntances, seem to make TTD run again for a few days, until it starts to freeze again.

When I only empty the log file online, both TTD instances will freeze almost instantly again.
When I only move the local log files, both TTD instances will freeze almost instantly again.
When I only move the local log files for one TTD, both TTD instances will freeze almost instantly again.

So the only temporary solution seems to be to close both TTD instances, move/delete the local log file, empty the online log file and then to restart both TTD instances...

Is there no one with similar issues? Or any one with any ideas as to why this is happening and maybe someone has a solution?

A few questions:

- Since you made the changes that DC31 suggested, have the errors in your log.txt file changed at all?
- If you're not getting any errors in the log.txt files and the program is just freezing, I would suspect that the issue may be that the program isn't able to access the ftp server. when this happens the program should "fail safe" and send the email anyway, but I'm wondering if the ftp call is never timing out and causes the program to just hang. I just took a look at the code and I'm not specifying a timeout value, which is something I will change in the next release, as it's depending on the global timeout value right now.

Andy
 
Top