Skip to content

Instantly share code, notes, and snippets.

@matbor
Last active December 22, 2020 02:31
Show Gist options
  • Save matbor/b9b7dfed55263280bb6f to your computer and use it in GitHub Desktop.
Save matbor/b9b7dfed55263280bb6f to your computer and use it in GitHub Desktop.
Scripts for my raspberry pi SDR RTL pager decoder.

Scripts for my raspberry pi SDR RTL pager decoder.

#!/bin/bash
# sends the pager messages to a csv file
pager_freq=(
148.904M
)
echo
echo "### STARTING ###"
date
echo "Frequency ${pager_freq[channel]}"
sudo rtl_fm -g 100 -d 0 -s 22050 -f ${pager_freq[channel]} - | multimon-ng -q -f alpha -a POCSAG1200 -a POCSAG2400 -a POCSAG512 -t raw - >> ${pager_freq[channel]}.csv &
#!/bin/bash
# displays pager messages in the terminal
pager_freq=(
148.904M
)
echo
echo "### STARTING ###"
date
echo "Frequency ${pager_freq[channel]}"
sudo rtl_fm -g 100 -d 0 -s 22050 -f ${pager_freq} - | multimon-ng -q -f alpha -a POCSAG1200 -a POCSAG2400 -a POCSAG512 -t raw /dev/stdin
#!/bin/bash
# sends all the pager messages to a mosquitto (MQTT) broker.
pager_freq=(
148.904M
)
echo
echo "### STARTING ###"
date
echo "Frequency ${pager_freq[channel]}"
sudo rtl_fm -g 100 -d 0 -s 22050 -f ${pager_freq} - | multimon-ng -q -f alpha -a POCSAG1200 -a POCSAG2400 -a POCSAG512 -t raw - | xargs -d"\n" -I {} echo "{\"pager\":\"{}\"}" | mosquitto_pub -h localhost -l -r -q 2 -t pager/messages/raw
#!/bin/bash
# lets sdr sharp to connect, IP below is the local IP
sudo rtl_tcp -a 192.168.4.125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment