I hereby claim:
- I am hsiboy on github.
- I am stuarttaylor (https://keybase.io/stuarttaylor) on keybase.
- I have a public key ASARxl6QyjoM_130xs1VjVfVZ47blsbzLOUIHz2t4-SFUAo
To claim this, I am signing this object:
| #!/bin/bash | |
| # Record radio4 FM from Winter Hill. | |
| # To be triggered by cron to record Shipping Forecast. | |
| # "timeout" will send a SIGTERM to rtl_fm to abort the recording after 5 mins. | |
| # Afterwards the wav file is converted to 11025 sample rate using sox. | |
| # "touch" will transfer the original timestamp to the new file | |
| # the original rtl_fm wav-file is deleted. | |
| timeout -s SIGTERM 300s rtl_fm -M wbfm -f 93M -s 60k -g 20 -E wav -F 0 radio4fm.wav |
| # assumes rtl sdr is installed | |
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install libasound2-dev cmake build-essential libusb-1.0-0-dev | |
| git clone https://www.github.com/wb2osz/direwolf | |
| cd direwolf | |
| make | |
| sudo make install | |
| make install-conf |
| sudo apt-get install -y gpsd | |
| sudo apt-get install -y gpsd-clients | |
| sudo apt-get install -y python-gps | |
| sudo apt-get install -y libcap-dev | |
| sudo apt-get install -y pps-tools | |
| echo console=ttyACM0,115200 >> /boot/cmdline.txt | |
| # edit /etc/rc/local and add (before the exit 0) | |
| # sudo gpsd /dev/ttyACM0 -F /var/run/gpsd.sock |
| # install the service | |
| sudo modprobe bcm2708_wdog | |
| echo "bcm2708_wdog" | sudo tee -a /etc/modules | |
| sudo apt-get install watchdog | |
| sudo update-rc.d watchdog defaults | |
| # configure service | |
| sudo vi /etc/watchdog.conf | |
| # Uncomment the line that starts #watchdog-device to enable the watchdog daemon to use the watchdog device. |
| cd ~ | |
| sudo raspi-config --expand-rootfs | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| cat <<EOF >no-rtl.conf | |
| blacklist dvb_usb_rtl28xxu | |
| blacklist rtl2832 | |
| blacklist rtl2830 | |
| EOF | |
| sudo mv no-rtl.conf /etc/modprobe.d/ |
| #!/bin/bash | |
| if [[ $UID -ne 0 ]]; then | |
| echo "This script must be run as root." | |
| exit 100 | |
| fi | |
| # decativate the mmc0 trigger | |
| echo none >/sys/class/leds/led0/trigger | |
| modprobe ledtrig_timer |
I hereby claim:
To claim this, I am signing this object:
ENC28J60 STM32F103
SCK PA5
SO PA6
SI PA7
CS PA4
RST PA0
VCC - 5V