Broadcastify Raspberry Pi Feed Appliance Image v1.0 (BETA)

KD0TAZ

Member
Feed Provider
Joined
Dec 26, 2010
Messages
334
Location
Kansas
Can I use this on a 3B+ to do a Calls ingest, AND run my traditional p25 feed (currently using a scanner and ProScan) off it as well without having to use a sound card? I've used SDRTrunk before and I know it can do it (you can run multiple feeds directly off it and choose specific TGs to go into each separate feed), but never used TrunkRecorder before. Does it record and queue simultaneous transmissions into a traditional feed sequentially? Also, has Alpha Tag support made it into the image yet?
Anybody?
 

edweirdFL

Member
Joined
Dec 10, 2004
Messages
580
Location
Daytona Beach, FL
I setup my second Broadcastify Raspberry Pi4 and used the recommended USB soundcard and Darkice to create a feed using an scanner. Things were super easy with the only head scratching moment being when I was asked for username and password to get Darkice the feed info.

I thought it was the password on the technical tab for the new feed but instead it was my regular password for my account.

Working great now although after getting a domain key, I'm still having problems with placing the html5 player on my blog page. Just seeing a blank square.

Overall I have to say using a RPi4 to setup either a Darkice feed (super easy) or a SDR based Trunkrecorder feed (not that hard with some examples and help) is a really good alternative to using a PC that's also used for other tasks, or has to be left on all of the time. Thanks for creating the image.
 

scanbc780

Usually Lurking
Joined
Aug 30, 2002
Messages
416
Location
Maricopa/Yavapai Counties, Arizona
Working great now although after getting a domain key, I'm still having problems with placing the html5 player on my blog page. Just seeing a blank square.


I don't know what you're using for your blog, but they may not support "iframes" and the feed embed uses an iframe. Self hosted Wordpress should allow you to use iframes, Wordpress hosted at Wordpress doesn't allow it.
 

ktkadude

Twister Chaser
Feed Provider
Joined
Jul 17, 2006
Messages
9
Location
Great Bend KS
Anyone seeing this issue with the latest default image when using the Trunk Recorder functions on Calls

[2021-08-06 10:04:21.092186] (error) Failed to convert call recording, see above error. Make sure you have sox and fdkaac installed.
[2021-08-06 10:04:47.070922] (info) [Great Bend South] TG: [35m 228[0m Freq: 857.962500 MHz TG not in Talkgroup File
[2021-08-06 10:04:47.072467] (info) - Starting P25 Recorder Num [0] TG: [35m 228[0m Freq: 857.962500 MHz TDMA: false Slot: 0 Mod: true
[2021-08-06 10:04:47.075934] (info) [Great Bend South] TG: [35m 228[0m Freq: 857.962500 MHz [32mStarting Recorder on Src: airspy=0x260868c82a7e5d9b[0m
[2021-08-06 10:04:50.005118] (info) [Great Bend South] TG: [35m 228[0m Freq: 857.962500 MHz Ending Recorded Call - Last Update: 2s Call Elapsed: 3
[2021-08-06 10:04:50.005961] (info) - Stopping P25 Recorder Num [0] TG: [35m 228[0m Freq: 857.962500 MHz TDMA: false Slot: 0
sox FAIL sox: Not enough input filenames specified

ERROR: Bend: No such file or directory

[2021-08-06 10:04:50.080278] (error) Failed to convert call recording, see above error. Make sure you have sox and fdkaac installed.
[2021-08-06 10:04:50.474473] (info) [Great Bend South] TG: [35m 228[0m Freq: 858.987500 MHz TG not in Talkgroup File
[2021-08-06 10:04:50.474738] (info) - Starting P25 Recorder Num [0] TG: [35m 228[0m Freq: 858.987500 MHz TDMA: false Slot: 0 Mod: true
[2021-08-06 10:04:50.475065] (info) [Great Bend South] TG: [35m 228[0m Freq: 858.987500 MHz [32mStarting Recorder on Src: airspy=0x260868c82a7e5d9b[0m
[2021-08-06 10:04:55.009248] (info) [Great Bend South] TG: [35m 228[0m Freq: 858.987500 MHz Ending Recorded Call - Last Update: 2s Call Elapsed: 5
[2021-08-06 10:04:55.009974] (info) - Stopping P25 Recorder Num [0] TG: [35m 228[0m Freq: 858.987500 MHz TDMA: false Slot: 0
sox FAIL sox: Not enough input filenames specified

ERROR: Bend: No such file or directory
[2021-08-06 10:04:55.120547] (error) Failed to convert call recording, see above error. Make sure you have sox and fdkaac installed.



This had been working fine until I allowed the the update via the BCYF Shell


 
Last edited:

edweirdFL

Member
Joined
Dec 10, 2004
Messages
580
Location
Daytona Beach, FL
I recall seeing a note about keeping system short names below 8 characters and avoiding other characters.

Try changing " Great Bend South" to "GBS"

also check in the JSON file to make sure your recordings are being saved in a valid location.

For example mine says
Code:
"captureDir": "/home/pi/bcfy/audio",
 

edweirdFL

Member
Joined
Dec 10, 2004
Messages
580
Location
Daytona Beach, FL
I don't know what you're using for your blog, but they may not support "iframes" and the feed embed uses an iframe. Self hosted Wordpress should allow you to use iframes, Wordpress hosted at Wordpress doesn't allow it.
The issue is a with the sample code snippet provided on the Broadcastify Manage Feed page on the technicals tab. I found a page with the player working and then copied their code. They had a ";" between the key and the feed ID where the example I was using from Broadcastify had an "&"

This is working for me.
Code:
<iframe loading="lazy" width="316px" height="90px" frameborder="0" scrolling="no" src="https://api.broadcastify.com/embed/player/?key=yourkeyhere&amp;feedId=yourfeedhere&amp;stats=1&amp;as=1&amp;html5=1">Your browser does not support iFrames.</iframe>
 

rn1nduk1

Feed Provider
Premium Subscriber
Joined
Apr 14, 2011
Messages
147
Location
Texas
Did I apply for wrong Feed if using SDR with this? Documentation is vague, and trying to set up SDR RTLv3 in Trunk Recorder. Appears that is for Broadcastify Call. I applied for just a feed. Back to trying to figure this Pi image out to add SDR in trunk recorder.
 

rn1nduk1

Feed Provider
Premium Subscriber
Joined
Apr 14, 2011
Messages
147
Location
Texas
Keep getting this crash too on the shell. Any ideas? and from my previous post above? Thinking i asked for wrong feed type, and this Pi image seems not as simple as i thought to use SDR
 

Attachments

  • Capture.PNG
    Capture.PNG
    522.1 KB · Views: 13

kd4e

Member
Joined
Jun 19, 2006
Messages
70
Location
Nevils, GA
What does the error at the bottom tell me, please?

"Current command vanished from the unit file ..."

------------------------------------------------
[1] Trunk Recorder - Trunked Recorder Instance 1
------------------------------------------------
Choose one of the following actions:

[1] Start
[2] Stop
[3] Restart
[4] Enable start on boot
[5] Disable start on boot

[q] Quit

Enter action: 1
Starting trunk-recorder...
● trunk-recorder.service - BCFY Trunk Recorder Service
Loaded: loaded (/etc/systemd/system/trunk-recorder.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-08-22 21:45:41 CDT; 22h ago
Main PID: 11626 (sh)
Tasks: 310 (limit: 4915)
CGroup: /system.slice/trunk-recorder.service
├─11626 /bin/sh -c /home/pi/bcfy/trunk-recorder/recorder --config=/home/pi/bcfy/configs/trunk-recorder/config.json >> /home/pi/bcfy/logs/trunk-recorder.log 2>&1
└─11627 /home/pi/bcfy/trunk-recorder/recorder --config=/home/pi/bcfy/configs/trunk-recorder/config.json

Aug 22 21:45:41 bcfy-7e73a872 systemd[1]: Started BCFY Trunk Recorder Service.
Aug 22 22:45:36 bcfy-7e73a872 systemd[1]: trunk-recorder.service: Current command vanished from the unit file, execution of the command list won't be resumed.
Press [Enter] to return to the main menu...
 

kd4e

Member
Joined
Jun 19, 2006
Messages
70
Location
Nevils, GA
It won't let me delete the message two posts up - here's the correctly edited version:
I tried your script to handle a P25 Phase 2 feed. I'm getting an error about a missing uploadScript. I tried cutting and pasting the code here ``` rdio-scanner/upload-call.sh at master · chuot/rdio-scanner (I created upload-call.sh in the trunk-recorder folder and changed the api. I also made
upload-call.sh executable "chmod +x upload-call.sh" but it caused a whole new error ... please see prior post. Did I put upload-call.sh in the wrong folder and that's what messed it up?
 
Last edited:

kd4e

Member
Joined
Jun 19, 2006
Messages
70
Location
Nevils, GA
pi@bcfy-7e73a872:~/bcfy/bin $ tail -f /home/pi/bcfy/logs/trunk-recorder.log
[2021-08-23 21:16:03.001765] (info) [ D7 ] State: inactive
[2021-08-23 21:16:03.001827] (info) [ D8 ] State: inactive
[2021-08-23 21:16:03.001888] (info) [ D9 ] State: inactive
[2021-08-23 21:16:53.490552] (info) [SEGARRN] TG: - ( 12300) Freq: 856.362500 MHz TG not in Talkgroup File
[2021-08-23 21:16:53.490774] (info) - Starting P25 Recorder Num [0] TG: - ( 12300) Freq: 856.362500 MHz TDMA: false Slot: 0 Mod: true
[2021-08-23 21:16:53.490958] (info) [SEGARRN] TG: - ( 12300) Freq: 856.362500 MHz Starting Recorder on Src: rtl=00000010,buflen=32768
[2021-08-23 21:17:03.007299] (info) [SEGARRN] TG: - ( 12300) Freq: 856.362500 MHz Ending Recorded Call - Last Update: 4s Call Elapsed: 10
[2021-08-23 21:17:03.007848] (info) - Stopping P25 Recorder Num [0] TG: - ( 12300) Freq: 856.362500 MHz TDMA: false Slot: 0
[2021-08-23 21:17:03.008404] (info) Running upload script: ./upload-call.sh 6694 /home/pi/bcfy/trunk/SEGARRN/2021/8/23/12300-1629771413_856362500.wav &
curl: (7) Failed to connect to 127.0.0.1 port 3000: Connection refused
^C
pi@bcfy-7e73a872:~/bcfy/bin $
 

blantonl

Founder and CEO
Staff member
Super Moderator
Joined
Dec 9, 2000
Messages
11,095
Location
San Antonio, Whitefish, New Orleans
pi@bcfy-7e73a872:~/bcfy/bin $ tail -f /home/pi/bcfy/logs/trunk-recorder.log
[2021-08-23 21:16:03.001765] (info) [ D7 ] State: inactive
[2021-08-23 21:16:03.001827] (info) [ D8 ] State: inactive
[2021-08-23 21:16:03.001888] (info) [ D9 ] State: inactive
[2021-08-23 21:16:53.490552] (info) [SEGARRN] TG: - ( 12300) Freq: 856.362500 MHz TG not in Talkgroup File
[2021-08-23 21:16:53.490774] (info) - Starting P25 Recorder Num [0] TG: - ( 12300) Freq: 856.362500 MHz TDMA: false Slot: 0 Mod: true
[2021-08-23 21:16:53.490958] (info) [SEGARRN] TG: - ( 12300) Freq: 856.362500 MHz Starting Recorder on Src: rtl=00000010,buflen=32768
[2021-08-23 21:17:03.007299] (info) [SEGARRN] TG: - ( 12300) Freq: 856.362500 MHz Ending Recorded Call - Last Update: 4s Call Elapsed: 10
[2021-08-23 21:17:03.007848] (info) - Stopping P25 Recorder Num [0] TG: - ( 12300) Freq: 856.362500 MHz TDMA: false Slot: 0
[2021-08-23 21:17:03.008404] (info) Running upload script: ./upload-call.sh 6694 /home/pi/bcfy/trunk/SEGARRN/2021/8/23/12300-1629771413_856362500.wav &
curl: (7) Failed to connect to 127.0.0.1 port 3000: Connection refused
^C
pi@bcfy-7e73a872:~/bcfy/bin $

This looks like you've done additional installation and work around rdio-scanner that I don't support, and can't support due to their licensing.
 

JasperRidley

CATV Lineman - Entry Level Amateur Radio User
Premium Subscriber
Joined
Mar 31, 2020
Messages
25
Location
Hammond, Indiana
You can use the SDR for a Broadcastify Calls feed. It will depend how many frequencies you want to monitor and their frequencies. Since each RTL-SDR only covers about 2.5 MHz of bandwidth, you may need more than one RTL-SDR to cover the frequencies you want to monitor. The more dongles you have and the more bandwidth you need to cover, it will require more processing power of the Raspberry Pi. I was lucky with my setup. I was able to use the BCFY image and provide 10 frequencies with 2 dongles along with legacy feed on a RPi 4. I only needed about 1 MHz of bandwidth for each dongle which allowed me to provide more frequencies for the feed. The RPi 4 would seize up when there was a large incident and multiple frequencies were used at the same time. I had to buy a second RPi 4 and split the dongles to each RPi so they wouldn't overload processor and bring the feed down.

I have a question on this that I "think" is related. I'm trying to feed a single UHF repeater as of now and shows as active (running) in BCFY Shell bit no audio on my stream or out of the pi on board 3.5 port. I don't need the onboard port output but just thought I'd mention it.

I guess I'm confused as to which audio to selection the SDR setup. Loopback 1, 2 or do I need to manually edit the config file?

Thanks for any help!
 

JasperRidley

CATV Lineman - Entry Level Amateur Radio User
Premium Subscriber
Joined
Mar 31, 2020
Messages
25
Location
Hammond, Indiana
After further reading it seems I should probably be using the RTL-Airband option... Not sure why I was messing with the audio ports..
 

rn1nduk1

Feed Provider
Premium Subscriber
Joined
Apr 14, 2011
Messages
147
Location
Texas
Keep getting this crash too on the shell. Any ideas? and from my previous post above? Thinking i asked for wrong feed type, and this Pi image seems not as simple as i thought to use SDR

Abandoned project. Never could successfully get to work and the Broadcastify shell not crash on rtl-sdr v3. Went with alternative option on pi. I am sure this is an awesome tool in the correct environment.
 

kd4e

Member
Joined
Jun 19, 2006
Messages
70
Location
Nevils, GA
Abandoned project. Never could successfully get to work and the Broadcastify shell not crash on rtl-sdr v3. Went with alternative option on pi. I am sure this is an awesome tool in the correct environment.

What was your successful "alternative option"? I'm trying to sort through this, myself.
 

rn1nduk1

Feed Provider
Premium Subscriber
Joined
Apr 14, 2011
Messages
147
Location
Texas
What was your successful "alternative option"? I'm trying to sort through this, myself.

I went with the “harder” to set up OP25. Had that up and running in 30 minutes using standard pi desktop image when decided was going to quit my attempts on bcfy pi image. Tuned after a few hours so the stick get to warm operating temp to compensate for drift. Got audio coming out. Still need to add darkice. Once that seems good, reapply to bring feeds used to host back up when needed the pc that was doing all that before for a year, if they let me. Told them to pull it off the other day the new app since ran in to trouble with this image thinking was a simple setup until I figured this out. Never could so abandoned this image.

this image appears to still be in developmental stage. Could have been just quirks I came across and could not find info to overcome. Is why i say this pi image is probably great in some environments. Just could not get to work in mine.
 
Top