Ham Radio Raspberry Pi streaming to Broadcastify with scanner (part 2)

This is a 4 part series. The parts are as follows:

  1. Raspberry Pi with scanner to local casting server.
  2. Raspberry Pi with scanner to BroadCastify Stream.
  3. Build a tool to keep the stream up in case it goes down.
  4. Raspberry Pi with rtl_sdr dongle to BroadCastify Stream.

So we are through Part 1. Everything seems to work “OK” and we want to get this out to the world now. I chose Broadcastify as my feed streamer since they make it easy. We talked about Broadcastify for ham radio repeaters a few weeks ago.

A few issues most likely arose from Part 1:

  1. It is connected to your router with an ethernet cable and you do not want it there permanently.
  2. We want to stream to broadcastify.

 

1) It is connected to your router with an ethernet cable and you do not want it there permanently.

If you are running the latest Distro of Raspian then you should not need to install any drivers for the EdiMax 7811un as they are already included. I highly suggest simply hooking up a monitor to the Raspberry Pi, plugging in the dongle and clicking the lower right hand corner of the screen to connect to your wifi. This is by far the easiest method.

If you want/need to do this via command line (Maybe you no longer have the easy ability to hook a monitor up but can still log in over the ethernet) then follow these instructions.

Unplug the network cord and feel free to now move the Raspberry Pi where you want it to live more permanently. I personally set up my router to give the Raspberry Pi MAC address the same IP address every time. This makes it easier to log into the Raspberry Pi via ssh for any maintenance issues.

Now that you are no longer connected via a monitor you may want to ssh into the computer using:

MACTerminal, found in launchpad. Open terminal and use ssh to get to your Raspberry Pi with your username and password. The command will look something like:

$ ssh bob@10.0.0.22

WindowsPutty, Open the program and use ssh and the Raspberry Pi IP Address to access remotely with your user name and password.

Unix/Linux/Android – Different for every distro. Use a terminal and ssh or an ssh application to the remote IP with your username and password.

The command will look something like:

 $ ssh bob@10.0.0.22

2) We want to stream to Broadcastify.

We need an account. If you already have one you can skip the setup part and move down to the configure section.

Setup an account – Broadcastify is the where people go to listen to feed providers streams. RadioReference.com is for the feed providers themselves.

– Go to RadioReference.com and register for an account.

Configure –

– Log In to RadioReference and click Manage Account.

– Go to the “Feeds” tab and Apply to broadcast Feed

– Once your feed is approved then log back into your account and write down the Server, Port, mount and password. This will be in the Feeds tab and then you would click the gear under “links” for the owner management page. The server, port, mount and password are then in the technicals tab.

The Broadcastify setup instructions were very good with the ezstream configuration. Here is the copy/paste from their site:

Create the following configuration file at /etc/ezstream_bcfy.xml and replace with your Server, Port, mount and password. If you plan on having multiple streams make sure and create a separate named configuration file (i.e.’/etc/ezstream_bcfy2.xml) for each stream and reference accordingly in your command script below.

<ezstream>
    <url>http://audio#.broadcastify.com:80/your_mount</url>
    <sourcepassword>your_source_password</sourcepassword>
    <format>MP3</format>
    <filename>stdin</filename>
    <svrinfoname>Stream Name</svrinfoname>
    <svrinfourl>http://www.broadcastify.com</svrinfourl>
    <svrinfogenre>Scanner</svrinfogenre>
    <svrinfodescription></svrinfodescription>
    <svrinfobitrate>16</svrinfobitrate>
    <svrinfochannels>1</svrinfochannels>
    <svrinfosamplerate>22050</svrinfosamplerate>
    <svrinfopublic>0</svrinfopublic>
</ezstream>

 

Now we simply run the following command to change where ezstream picks up its file to the /etc/ezstream_bcfy.xml file we just created.

$ sudo arecord -f dat -c 1 -D hw:1,0 | /usr/bin/lame -r -s 48 --resample 44.1 -m m -b 16 -F --cbr --lowpass 2.8 --highpass .4 - - | /usr/bin/ezstream -c /etc/ezstream_bcfy.xml &

We will pick this up next time with building a tool to keep the stream up in case it goes down.

Click here for my club repeater linked to BroadCastify

Have fun and 73’s,

Let me know what questions you want me to address or if anything is unclear. My email is k0fey@arrl.net

radioactive

Advertisements

About K0FEY

I am a member of the Eden Prairie Radio club. This is a Minnesota Ham Radio Enthusiast club and we promote experimentation and learning through the Amateur Radio hobby. Come check into a net on Sunday with us or better yet meet us in person on the 3rd Thursday of the month.
This entry was posted in Experiments, Ham Radio, Linux, Scanner, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s