Last active
August 29, 2015 14:09
-
-
Save EricTendian/c7c65d8f0cf44b081888 to your computer and use it in GitHub Desktop.
Use this shell script to play a specific Broadcastify #ChicagoScanner stream on your Linux computer. Currently uses omxplayer for use with a Raspberry Pi.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
'Chicago Police Department'|'cpd') | |
omxplayer http://relay.broadcastify.com:80/il_chicago_police2.mp3 | |
;; | |
'Chicago Police - Citywide 1'|'cw1') | |
omxplayer http://relay.broadcastify.com:80/128024765.mp3 | |
;; | |
'Chicago Police - Citywide 6'|'cw6') | |
omxplayer http://relay.broadcastify.com:80/299858349.mp3 | |
;; | |
'Chicago Police Zone 1 - Districts 16 and 17'|'z1') | |
omxplayer http://relay.broadcastify.com:80/51174769.mp3 | |
;; | |
'Chicago Police Zone 2 - District 19'|'z2') | |
omxplayer http://relay.broadcastify.com:80/779125459.mp3 | |
;; | |
'Chicago Police Zone 3 - Districts 12 and 14'|'z3') | |
omxplayer http://relay.broadcastify.com:80/29449913.mp3 | |
;; | |
'Chicago Police Zone 4 - Districts 1 and 18'|'z4') | |
omxplayer http://relay.broadcastify.com:80/527466356.mp3 | |
;; | |
'Chicago Police Zone 5 - District 2'|'z5') | |
omxplayer http://relay.broadcastify.com:80/464465203.mp3 | |
;; | |
'Chicago Police Zone 6 - Districts 7 and 8'|'z6') | |
omxplayer http://relay.broadcastify.com:80/877430000.mp3 | |
;; | |
'Chicago Police Zone 7 - District 3'|'z7') | |
omxplayer http://relay.broadcastify.com:80/937409687.mp3 | |
;; | |
'Chicago Police Zone 8 - Districts 4 and 6'|'z8') | |
omxplayer http://relay.broadcastify.com:80/267563787.mp3 | |
;; | |
'Chicago Police Zone 9 - Districts 5 and 22'|'z9') | |
omxplayer http://relay.broadcastify.com:80/258823627.mp3 | |
;; | |
'Chicago Police Zone 10 - Districts 10 and 11'|'z10') | |
omxplayer http://relay.broadcastify.com:80/716183595.mp3 | |
;; | |
'Chicago Police Zone 11 - Districts 20 and 24'|'z11') | |
omxplayer http://relay.broadcastify.com:80/243172971.mp3 | |
;; | |
'Chicago Police Zone 12 - Districts 15 and 25'|'z12') | |
omxplayer http://relay.broadcastify.com:80/il_chicago_police.mp3 | |
;; | |
'Chicago Police Zone 13 - District 9'|'z13') | |
omxplayer http://relay.broadcastify.com:80/539709865.mp3 | |
;; | |
*) | |
echo "USAGE: $0 zonename; e.g. $0 z8" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment