TwoToneDetect New TwoToneDetect in the works - Python based

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
@aaknitt any tips to get the Ubuntu version up and running? Any pre-requisites that need to be installed? And does it require a desktop environment or can this be ran headless? I can't seem to get it to run with or without a desktop environment.
What happens when you try to run it (from a terminal)? Any error messages?

Andy
 

jschmall

Member
Premium Subscriber
Joined
Jul 15, 2017
Messages
83
Location
Anderson, CA
What happens when you try to run it (from a terminal)? Any error messages?

Andy

Literally just spun up this VM and ran it, fresh out of the box. I'm assuming the first 2 lines refer to a Xorg environment?

Code:
root@ttd:~/TTD# ./TwoToneDetect74
STARTING IMPORTS
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
  File "pystray/_appindicator.py", line 23, in <module>
  File "gi/__init__.py", line 129, in require_version
ValueError: Namespace AppIndicator3 not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "TwoToneDetect74.py", line 47, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/__init__.py", line 64, in <module>
  File "pystray/__init__.py", line 56, in backend
  File "pystray/__init__.py", line 28, in appindicator
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/_appindicator.py", line 26, in <module>
  File "gi/__init__.py", line 129, in require_version
ValueError: Namespace AyatanaAppIndicator3 not available
[445] Failed to execute script 'TwoToneDetect74' due to unhandled exception!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Literally just spun up this VM and ran it, fresh out of the box. I'm assuming the first 2 lines refer to a Xorg environment?

Code:
root@ttd:~/TTD# ./TwoToneDetect74
STARTING IMPORTS
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
  File "pystray/_appindicator.py", line 23, in <module>
  File "gi/__init__.py", line 129, in require_version
ValueError: Namespace AppIndicator3 not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "TwoToneDetect74.py", line 47, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/__init__.py", line 64, in <module>
  File "pystray/__init__.py", line 56, in backend
  File "pystray/__init__.py", line 28, in appindicator
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/_appindicator.py", line 26, in <module>
  File "gi/__init__.py", line 129, in require_version
ValueError: Namespace AyatanaAppIndicator3 not available
[445] Failed to execute script 'TwoToneDetect74' due to unhandled exception!

Ugh. It runs (and was built) on Ubuntu 20.04.2 using the GNOME desktop environment. I would have thought that it would have worked with other environments, but maybe not.
 

jschmall

Member
Premium Subscriber
Joined
Jul 15, 2017
Messages
83
Location
Anderson, CA
Ugh. It runs (and was built) on Ubuntu 20.04.2 using the GNOME desktop environment. I would have thought that it would have worked with other environments, but maybe not.
Ah gotcha. Yeah I try not to run desktop environments in my server stack, keeps the resources light. I can spin up 20.04 with GNOME and see if it comes up that way.

Compiling from source could probably solve that issue though. Either way, hope you can release a version that doesn’t need a desktop environment.
 

bunangst

Member
Joined
Mar 12, 2013
Messages
64
Location
Harmony, NJ
Ah gotcha. Yeah I try not to run desktop environments in my server stack, keeps the resources light. I can spin up 20.04 with GNOME and see if it comes up that way.

Compiling from source could probably solve that issue though. Either way, hope you can release a version that doesn’t need a desktop environment.

I hope so too. I've been using TTD since the Raspberry Pi B+ days!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Literally just spun up this VM and ran it, fresh out of the box. I'm assuming the first 2 lines refer to a Xorg environment?

Code:
root@ttd:~/TTD# ./TwoToneDetect74
STARTING IMPORTS
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
  File "pystray/_appindicator.py", line 23, in <module>
  File "gi/__init__.py", line 129, in require_version
ValueError: Namespace AppIndicator3 not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "TwoToneDetect74.py", line 47, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/__init__.py", line 64, in <module>
  File "pystray/__init__.py", line 56, in backend
  File "pystray/__init__.py", line 28, in appindicator
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/_appindicator.py", line 26, in <module>
  File "gi/__init__.py", line 129, in require_version
ValueError: Namespace AyatanaAppIndicator3 not available
[445] Failed to execute script 'TwoToneDetect74' due to unhandled exception!
Actually, try this and see if it solves the issue:
Code:
sudo apt install gir1.2-appindicator3-0.1
 

jschmall

Member
Premium Subscriber
Joined
Jul 15, 2017
Messages
83
Location
Anderson, CA
Actually, try this and see if it solves the issue:
Code:
sudo apt install gir1.2-appindicator3-0.1

Seems to have resolved that particular issue with the Namespace AppIndicator3 error but now I have the following:

Code:
root@ttd:~/TTD# ./TwoToneDetect74
STARTING IMPORTS
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
  File "TwoToneDetect74.py", line 47, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/__init__.py", line 64, in <module>
  File "pystray/__init__.py", line 56, in backend
  File "pystray/__init__.py", line 36, in xorg
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "pystray/_xorg.py", line 36, in <module>
  File "Xlib/display.py", line 89, in __init__
  File "Xlib/display.py", line 71, in __init__
  File "Xlib/protocol/display.py", line 84, in __init__
  File "Xlib/support/connect.py", line 73, in get_display
  File "Xlib/support/unix_connect.py", line 76, in get_display
Xlib.error.DisplayNameError: Bad display name ""
[3845] Failed to execute script 'TwoToneDetect74' due to unhandled exception!
 

jschmall

Member
Premium Subscriber
Joined
Jul 15, 2017
Messages
83
Location
Anderson, CA
The
Code:
Xlib.error.DisplayNameError: Bad display name ""
is most likely related to a lack of an Xorg environment. I might be able to install a very minium GUI but I would really like to avoid that if possible.
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
Currently using Norton 360 on my TTD computer and did the update to v74. Norton really doesn't like TTD and you have to hit ALLOW several times for different functions: launching the app, sending a page, exiting the app. Does anyone know if there is a setting to get Norton to chill over the TTD directory? AV that is more TTD friendly?
 

transaline

Member
Premium Subscriber
Joined
Sep 7, 2022
Messages
18
Finally figure out why I can't get it to work. The county went to simulcast and stopped toning out.
Are there any other ways anyone knows of to get relevant dispatches sent to a mobile phone?
 

bunangst

Member
Joined
Mar 12, 2013
Messages
64
Location
Harmony, NJ
Finally figure out why I can't get it to work. The county went to simulcast and stopped toning out.
Are there any other ways anyone knows of to get relevant dispatches sent to a mobile phone?
Two-Tone paging (toning out) is very common on analog and digital simulcast systems.
Can you provide us a better location...town, county, and state?
The RR Database should be able to give us a better idea of what radio system is in your area and how we can help address your questions.
 

transaline

Member
Premium Subscriber
Joined
Sep 7, 2022
Messages
18
Two-Tone paging (toning out) is very common on analog and digital simulcast systems.
Can you provide us a better location...town, county, and state?
The RR Database should be able to give us a better idea of what radio system is in your area and how we can help address your questions.

Saline/Washtenaw/Michigan
 

davidVT

Member
Joined
Aug 29, 2010
Messages
138
Location
Washington County,Vermont
Excited to try the Ubuntu version... Any new notes from Ubuntu testers?
I am downloading U20.04 and will get minimal GNOME installed first.
I have been running V71 and V68 on several Pi for years. Storm electrical damage now has me dusting off the old TTD memories and testing new versions. No new Pi units to be had easily so switching to small used desktops running Linux and or Proxmox...
Happy New Year to all!
 
Last edited:

davidVT

Member
Joined
Aug 29, 2010
Messages
138
Location
Washington County,Vermont
Ubuntu 20.04 with minimal gnome and adding FFMPEG, TTD seems to be working. (just the usual audio errors)
This on a VM so now to move to real hardware to test the audio.
 
Last edited:

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
WISH LIST: Second of the same tone received after the minimum record time would stop recording on page 1 and start on page 2.

Our dispatch center does: Tone/Voice Message, Tone/Voice Message. We have our minimum recording time down to 6 because some of our dispatchers are pretty quick. The ask is that if the second tone is detected after the minimum record time (to prevent those who use Tone/Tone/Voice Message from getting a blank page) the first recording with terminate and the second would start.

We keep tightening increasing the audio threshold and have the release time down to 0.05 (not sure how low it accepts), bet we have trouble with consistently separately detecting and splitting the first page from the second.
 

fredva

Member
Feed Provider
Joined
Mar 19, 2007
Messages
2,250
Location
Virginia/West Virginia
Two-Tone paging (toning out) is very common on analog and digital simulcast systems.
Can you provide us a better location...town, county, and state?
The RR Database should be able to give us a better idea of what radio system is in your area and how we can help address your questions.
Looks like fire and EMS use the Michigan trunked system in that county. Some places have eliminated tone paging if firefighters are expected to be in the station 24/7. That decision might not always be apparent from looking at the radio systems in use.
 
Top