This repo contains the source code used to configure my 1941 radio. This radio as been setup so that it is now supports chromecast and bluetooth. Retro Electronics redone so that it is now up-to-date.
Your will need a raspberry pi zero. The radio was a 1941 rca radio and has been updated to chromecast and bluetooth. All buttons are configured to control a modern amp and speaker box that i built. The amp is found on Amazon here.
Steps to get the code working on your pi:
- Clone this repo
git clone https://github.com/gschaetz/oldradio.git
- cd into the repo
cd ./oldradio/
- Use the most recent version of Raspbian for your pi
- sftp into your raspberry pi
ssh pi@(your ip)
- Create a directory for developement and logs
mkdir development
cd ./development
mkdir logs
- Open a second bash shell
- sftp in to the pi
sftp pi@(your ip)
- Change remote directory to development/
cd development/
- Copy oldradio.py to remote
put oldradio.py
put launcher.sh
- Use shell for ssh and add crontab. Add the following to the crontab
sudo crontab -e
Add the following line:
@reboot sleep 10 && sudo -u pi bash /home/pi/development/launcher.sh > /home/pi/development/logs/cronlog 2>&1
- Reboot pi
sudo shutdown
- Restart pi
- Gary Schaetz - Builder of fun stuff