Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

internet_radio

Python script for using a Ubuntu notebook as internet radio appliance (1 key = 1 station)

Wifi-setup

/etc/netplan/01-netcfg.yaml:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth1:
      dhcp4: yes
  wifis:
    wlan0:
      dhcp4: yes
      dhcp6: no
      access-points:
        "myssid":
          password: "mypassword"

Auto-Login:

sudo mkdir /etc/systemd/system/getty@tty1.service.d sudo nano /etc/systemd/system/getty@tty1.service.d/override.conf

[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin myusername --noclear %I $TERM
Type=idle

Update script to latest version and start it

mplayer -really-quiet -nolirc -ao alsa -cache 128 ~/internet_radio/ansagen/senderliste.mp3 < /dev/null > /dev/null
git -C ~/internet_radio pull origin master
python ~/internet_radio/radio.py

Tipps:

Disable lirc support (infrared control) by adding to ~/.mplayer/config

lirc=no
  • In case headphones are not working delete: /var/lib/alsa/asound.state

About

Python script for using a Ubuntu notebook as internet radio appliance (1 key = 1 station)

Resources

License

Releases

No releases published

Packages

No packages published

Languages