Creating a new Pi image called iCAD Pi for tone detection.

Status
Not open for further replies.

AFD103

Member
Premium Subscriber
Joined
Nov 17, 2020
Messages
34
I don't have a RP3, but the only thing keeping it from working with the image is RTL_Airband. I may be able to create an image with out it compiled, and have a script that will compile it for you. Would that work?

If RTL_Airband is the only barrier, I should be able to download the image, recompile RTL_Airband for the RP3 and have it work, right?
I might give that a go in the next couple days.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,578
Location
Massachusetts
A 'pie in the sky' ask would be for integration with HomeAssistant.
I currently have TTD firing a script that executes individual "turn on" commands via python-kasa, sleeping for five minutes, then turning them off. It's great to have the bedroom, living room, and front door lights come on at 3am when our pagers are activated. Some type of HomeAssistant integration would allow for more automations and to stem outside one particular vendor's ecosystem.

the ICAD PI package from xicarusx already includes what you are looking for. The MQTT Topic script will publish a command to an MQTT topic. Smart devices can then subscribe to that topic and react when a particular tone set is detected. Use smart devices flashed with Tasmota firmware. There is a long list of devices by various mfg’s compatible with Tasmota: https://templates.blakadder.com/. Here is the main Tasmota page: Tasmota Documentation - Tasmota

such a setup requires a MQTT server to process the pub/sub stuff. GitHub - eclipse/paho.mqtt.python: paho.mqtt.python
This can easily be installed on the same pi. However, if you use an internet-based server (or open your pi-based server to the internet), then any wifi-connected smart device worldwide can react to the tone detection. Every member of your department can simply plug in a smart switch, program it appropriately, and have his lights also come on.

Look for devices with Tasmota already installed to save yourself the task of flashing them. It is tedious, especially the first time.
for example:
 
Last edited:

AFD103

Member
Premium Subscriber
Joined
Nov 17, 2020
Messages
34
the ICAD PI package from xicarusx already includes what you are looking for. The MQTT Topic script will publish a command to an MQTT topic. Smart devices can then subscribe to that topic and react when a particular tone set is detected. Use smart devices flashed with Tasmota firmware. There is a long list of devices by various mfg’s compatible with Tasmota: https://templates.blakadder.com/. Here is the main Tasmota page: Tasmota Documentation - Tasmota

such a setup requires a MQTT server to process the pub/sub stuff. GitHub - eclipse/paho.mqtt.python: paho.mqtt.python
This can easily be installed on the same pi. However, if you use an internet-based server (or open your pi-based server to the internet), then any wifi-connected smart device worldwide can react to the tone detection. Every member of your department can simply plug in a smart switch, program it appropriately, and have his lights also come on.

Look for devices with Tasmota already installed to save yourself the task of flashing them. It is tedious, especially the first time.
for example:

I've never played with MQTT. I'll have to spend some time with it. Thank you.
 

webstar22

RenfrewCountyScanner.com
Premium Subscriber
Joined
Dec 21, 2003
Messages
1,037
Location
Ontario, Canada
Feature: Discord Webhook support. With Twitter and Facebook it's the next logical one I think.

Question: Any ways to do this without a Pi? I have a bunch of Dell Wyse thin clients from my work laying around and wouldn't mind putting one to use for this. I already run FDNotify for this https://twitter.com/RenfrewCntyScan
Being able to use your software would be cool.

I'd also give you access if you wanted to use it for testing.
I get a lot of Fire and EMS Paging each day as I am in a position that can pick up a repeater that gets pages for about 25 different departments in my area.
Fire:
1660698477190.png
EMS:
1660698500618.png
 
Last edited:

cpg178

Member
Premium Subscriber
Joined
Sep 7, 2014
Messages
413
Just came across this, very interested in the transcription feature. Will be loading this up on my Pi4 later today
 

xicarusx

Member
Feed Provider
Joined
Oct 2, 2008
Messages
104
Location
Sayre, PA
Feature: Discord Webhook support. With Twitter and Facebook it's the next logical one I think.

Question: Any ways to do this without a Pi? I have a bunch of Dell Wyse thin clients from my work laying around and wouldn't mind putting one to use for this. I already run FDNotify for this https://twitter.com/RenfrewCntyScan
Being able to use your software would be cool.

I'd also give you access if you wanted to use it for testing.
I get a lot of Fire and EMS Paging each day as I am in a position that can pick up a repeater that gets pages for about 25 different departments in my area.
Fire:
View attachment 126147
EMS:
View attachment 126148

I also have a stand alone version of the script that will run anywhere with python3 and the python packages it requires. Preferably a linux flavor of some sort! Discord is a great idea and I can add that as well :)

Check here for guides and info regarding.

Also you may contact me here or via Discord for any help or questions I do not always get notifications for this forum for some reason - Smashedbotatos#2326
 

KI5IRE

Member
Premium Subscriber
Joined
Jun 28, 2016
Messages
592
Location
Oklahoma City
I would like to try to implement something like this for media use. I don't have an Pi devices currently, but have a PC that I mostly use for P25 CC logging. Does FDNotify work with P25 trunked or is there a way to make it work?

With a transcribe feature, this would be useful for me since the main department I monitor for work uses 3 standard tones and not unique for certain stations or necessarily certain incidents. Really the only unique tone is for structure fires. All other calls are dispatched on the same 2 or 3 tones and stations are alerted via IP protocols.
 

xicarusx

Member
Feed Provider
Joined
Oct 2, 2008
Messages
104
Location
Sayre, PA
I would like to try to implement something like this for media use. I don't have an Pi devices currently, but have a PC that I mostly use for P25 CC logging. Does FDNotify work with P25 trunked or is there a way to make it work?

With a transcribe feature, this would be useful for me since the main department I monitor for work uses 3 standard tones and not unique for certain stations or necessarily certain incidents. Really the only unique tone is for structure fires. All other calls are dispatched on the same 2 or 3 tones and stations are alerted via IP protocols.

Yea that is completely possible. No matter what the radio standard is Digital or Analog it is possible to use fd-tone-notify. Just pipe the audio from the dispatch channel or channels to a pulse audio sink and have fd-tone-notify listen to that sink.

Script I wrote may work on Windows it hasn't been tested by me yet. Its Python though, so it shoudl be cross platform as long as you set configuration to proper file paths. I also wrote it with 3.10 version, so its not an outdated version of Python either. Should work on Python 3.6 and up.
 

xicarusx

Member
Feed Provider
Joined
Oct 2, 2008
Messages
104
Location
Sayre, PA
Feature: Discord Webhook support. With Twitter and Facebook it's the next logical one I think.

I did you one better. I have created a Discord Bot script. (You will need your own bot and dev account). It will connect to your Discord Server and will post to text channel, and can join a voice channel and play the call. :)

Still WIP, but its already working on my setup now.
 

CDTbolt10033

Member
Joined
May 6, 2020
Messages
254
Location
Waterloo Region, ON
Hello,

I am not sure if this is a good spot to put this, but I am having trouble getting FD Tone Notify set up on windows 10. I wanted to try it to see if it's better than TwoToneDetect. When trying to start the program I get the following error:

Aug-21-2022 23:34:47 crit : Push Bullet does not have an API Key. Notifications will not be sent

Aug-21-2022 23:34:48 warning : Cannot access secrets file at config/secrets.json. Only using secrets from env Vars

Aug-21-2022 23:34:48 warning : Secret FD_PUSHBULLET_API_KEY has not been set or has an empty value

Aug-21-2022 23:34:48 warning : Secret FD_CORALOGIX_PRIVATE_KEY has not been set or has an empty value

Aug-21-2022 23:34:48 warning : Secret FD_SMTP_USERNAME has not been set or has an empty value

Aug-21-2022 23:34:48 warning : Secret FD_SMTP_PASSWORD has not been set or has an empty value

Aug-21-2022 23:34:48 info : Adding Detector for Test Fire Department with tones 911Hz, 3000Hz. Match Threshold: 6, Tolerance: 2%

Aug-21-2022 23:34:48 info : Adding Detector for Second Test Fire Department with tones 1000Hz, 540Hz. Match Threshold: 6, Tolerance: 2%

Aug-21-2022 23:34:48 info : Mic Instance Has Started

events.js:292

throw er; // Unhandled 'error' event

^



Error: spawn sox ENOENT

at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)

at onErrorNT (internal/child_process.js:469:16)

at processTicksAndRejections (internal/process/task_queues.js:84:21)

at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:66:3)

at Function.Module.runMain (pkg/prelude/bootstrap.js:1376:13)

at internal/main/run_main_module.js:17:47

Emitted 'error' event on ChildProcess instance at:

at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)

at onErrorNT (internal/child_process.js:469:16)

[... lines matching original stack trace ...]

at internal/main/run_main_module.js:17:47 {

errno: 'ENOENT',

code: 'ENOENT',

syscall: 'spawn sox',

path: 'sox',

spawnargs: [

'-b', '16',

'--endian', 'little',

'-c', '1',

'-r', '44100',

'-e', 'signed-integer',

'-t', 'waveaudio',

'default', '-p'

]

}

Thanks,

CDTbolt10033
 

xicarusx

Member
Feed Provider
Joined
Oct 2, 2008
Messages
104
Location
Sayre, PA
Aug-21-2022 23:34:48 info : Mic Instance Has Started

events.js:292

throw er; // Unhandled 'error' event

^

Error: spawn sox ENOENT

Hi,

It works just as well as TTD, and with my script I like it 10x better. Plus you can listen to a pulse sink monitor on Linux which makes it much better.


The issue I am seeing here from your error is that you are missing SoX library on Windows.
Download link SoX - Sound eXchange - Browse /sox/14.4.2 at SourceForge.net choose win32 version.

Install and try to run fd-tone-notify again.
 

CDTbolt10033

Member
Joined
May 6, 2020
Messages
254
Location
Waterloo Region, ON
Hi,

It works just as well as TTD, and with my script I like it 10x better. Plus you can listen to a pulse sink monitor on Linux which makes it much better.


The issue I am seeing here from your error is that you are missing SoX library on Windows.
Download link SoX - Sound eXchange - Browse /sox/14.4.2 at SourceForge.net choose win32 version.

Install and try to run fd-tone-notify again.
Ok, I got it running. How do I use your script to convert the tones.cfg to a file FD Tone Notify can use and how do I get the extension script to work with FD Tone Notify?
 

FFBillBlast

Member
Joined
Apr 4, 2020
Messages
22
New Updated Image Release - icad_pi.img.gz

Includes -
Discord Client and sending text/voice to discord
MP3 Silence removal
NOAA Warning Client that can send to facebook/discord/twitter

Wiki is a work in progress - Home · TheGreatCodeholio/iCAD_Pi Wiki
I see there are many knowledgeable ppl of programming in here creating amazing sounding programming that is changing how ppl receive notifications, my question is....is there a way one day a program or multiple programs can be created for ppl such as myself & many others who know little to nothing about coding to have an opportunity to use this amazing sounding product. Something were you can possibly supply audio to this program & type in your toneouts, email addy, etc? It might be a lot I'm asking of, I truly don't know since I'm not familiar with code or different programs but I just know many have asked how they could use this program but have no knowledge how to put all the pieces of the puzzle together.....he'll, idk how long it rakes to download & put this all together, but maybe a tutorial video if that is possible??
 

xicarusx

Member
Feed Provider
Joined
Oct 2, 2008
Messages
104
Location
Sayre, PA
I started on a tutorial video, and writing the wiki for the Raspberry Pi image as it is. The started writing a full web interface to configure FD Notify. The problem is I realized how much time and effort I was using to essentially rewrite someone elses program.

So that is when I started something new, a new tone detection software that does all of these things all in one. It is still being tested and written. Its not simple to set up, but I am willing to set it up for you if you have the proper hardware to run it on. :)
 

FFBillBlast

Member
Joined
Apr 4, 2020
Messages
22
I started on a tutorial video, and writing the wiki for the Raspberry Pi image as it is. The started writing a full web interface to configure FD Notify. The problem is I realized how much time and effort I was using to essentially rewrite someone elses program.

So that is when I started something new, a new tone detection software that does all of these things all in one. It is still being tested and written. Its not simple to set up, but I am willing to set it up for you if you have the proper hardware to run it on. :)
I greatly appreciate u offering to write it for me, that truly means so much seeing all the time you already are using to create, test, fix any bugs/errors & tutorials you are working on. After saying all of that & as I previously mentioned, I am not familiar w/code, writing & whatever else I missed or said improperly, I could not possibly ask you to write this up for me, but I'm truly touched that you would offer. I will wait the same way many others are doing....as I wait, I will continue to support you & your hard work.
THANK YOU SO MUCH MY FRIEND!!!!
 
Status
Not open for further replies.
Top