TwoToneDetect New TwoToneDetect in the works - Python based

kc2kvy

Member
Premium Subscriber
Joined
Feb 2, 2007
Messages
96
Anyone having issues on 74h running anything with alert_command? Post_email_command works fine, even using the same command, but I can't get alert_command to do anything. I've tried reordering where they are placed in tones.cfg but that has not helped.

I've tested this in Wine on Linux and native Windows 10.
 

NotATechGuy

NotAMember
Premium Subscriber
Joined
Apr 7, 2013
Messages
218
Location
127.0.0.1
Anyone having issues on 74h running anything with alert_command? Post_email_command works fine, even using the same command, but I can't get alert_command to do anything. I've tried reordering where they are placed in tones.cfg but that has not helped.

I've tested this in Wine on Linux and native Windows 10.
I don't believe I've ever had alert_command work. This might be how it's programmed to trigger. I don't recall the specifics off the top of my head when alert_command is supposed to trigger. I always use post_email_command.
 

kc2kvy

Member
Premium Subscriber
Joined
Feb 2, 2007
Messages
96
I don't believe I've ever had alert_command work. This might be how it's programmed to trigger. I don't recall the specifics off the top of my head when alert_command is supposed to trigger. I always use post_email_command.
alert_command is supposed to trigger upon initial tone detection - you can use it to do things like play an alert tone over a PA system or something for a station pager. I'm (trying) to use it to send a Telegram message, and I know the command works as it should, it's just not triggering upon tone detection.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Anyone having issues on 74h running anything with alert_command? Post_email_command works fine, even using the same command, but I can't get alert_command to do anything. I've tried reordering where they are placed in tones.cfg but that has not helped.

I've tested this in Wine on Linux and native Windows 10.
I just ran a very quick test and it seemed to work as expected. Anything in your log.txt file that might offer any clues? The command runs ok by itself from the command line?
 

kc2kvy

Member
Premium Subscriber
Joined
Feb 2, 2007
Messages
96
I just ran a very quick test and it seemed to work as expected. Anything in your log.txt file that might offer any clues? The command runs ok by itself from the command line?
Ah! I see the problem, I think...
Code:
Traceback (most recent call last):
  File "TwoToneDetect.py", line 1001, in readtones
  File "<frozen _collections_abc>", line 834, in __eq__
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%3A[HalfOfBotID]/sendMessage?chat_id=[ChatID]&text=RS%20Page%20received%2C%20stand%20by%20for%20audio%3A"'
which I've change to the much more sane
Code:
curl "https://api.telegram.org/[BotID]/sendMessage?chat_id=[ChatID]" --data-urlencode "text=RS Page received, stand by for audio:"

The bot ID had a colon in it, which at some point I changed to %3A, and it looks like that's what caused the problem. I believe this should fix it. Thank you, I should have thought to look at the logs!
 

AFD103

Member
Premium Subscriber
Joined
Nov 17, 2020
Messages
33
I've had alert_command running for a while. I use it to drop an MQTT pub that my home automation server picks up and runs different scenes based upon the toneset and the time of day.
 

APSN556

Member
Premium Subscriber
Joined
Oct 22, 2008
Messages
163
Location
Phoenix, AZ
I'm having a (Hopefully) simple issue with TTD 74f. I have a windows 10 laptop with an external USB soundcard. The PC sees the soundcard just fine. I have my scanner audio going into the external USB soundcard. When in the sound properties, The audio is showing just fine going into the USB soundcard and levels are fine. When I fire up TTD, I am able to select the USB soundcard as the input device just fine. The meter shows "audio" when nothing is playing and its not registering any of the audio from the scanner- despite my PC sound properties showing Audio and levels just fine. Thanks for any help. I'm only using the program for personal use to be alerted when our local station is toned out. This process works flawlessly on my desktop computer at a different location. Just hoping to have it setup on my home laptop. Thanks!
 
Last edited:

APSN556

Member
Premium Subscriber
Joined
Oct 22, 2008
Messages
163
Location
Phoenix, AZ
I'm having a (Hopefully) simple issue with TTD 74f. I have a windows 10 laptop with an external USB soundcard. The PC sees the soundcard just fine. I have my scanner audio going into the external USB soundcard. When in the sound properties, The audio is showing just fine going into the USB soundcard and levels are fine. When I fire up TTD, I am able to select the USB soundcard as the input device just fine. The meter shows "audio" when nothing is playing and its not registering any of the audio from the scanner- despite my PC sound properties showing Audio and levels just fine. Thanks for any help. I'm only using the program for personal use to be alerted when our local station is toned out. This process works flawlessly on my desktop computer at a different location. Just hoping to have it setup on my home laptop. Thanks!
UPDATE: I was able to fix this issue simply by installing a free virtual audio cable. Works great now.
 
Top