Skip to content

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

License

Notifications You must be signed in to change notification settings

haslinger/internet_radio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages