Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.02 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.02 KB

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/[email protected] sudo nano /etc/systemd/system/[email protected]/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