Skip to content

Instantly share code, notes, and snippets.

View TheTomster's full-sized avatar

Thomas Wright TheTomster

View GitHub Profile
@yourcelf
yourcelf / soma.py
Last active June 10, 2019 14:32
Command line script to play somafm radio stations. Type `soma.py --help` for usage, but briefly: `soma.py <stationname>` plays the station, `soma.py` with no argument lists the available stations. Uses mplayer to do the playing (change with --player option).
#!/usr/bin/env python
from __future__ import print_function
import sys
import subprocess
import argparse
import textwrap
import signal
stations = {