Skip to content

Instantly share code, notes, and snippets.

View fjebaker's full-sized avatar
🪴
automating my houseplants...

Fergus Baker fjebaker

🪴
automating my houseplants...
View GitHub Profile
@stengland
stengland / bbcradio.sh
Last active January 11, 2023 14:53
Play BBC Radio with mpd or mplayer from the command line
#!/bin/bash
play() {
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_$1.m3u8"
echo $playlist
if mpc
then
mpc add $playlist
mpc play
else
mplayer $playlist