Objects of interest
Block Chain Electronics:
OE-PORT-mini | PIC12F1840
OE-LION Battery Charger OE-ANALOG-multiplexer 8-channel voltmeter OE-I2C-modules GPIO, A/D, step
Open source project:
.:
Install | Setup
System | Script Code | Python | C |
Raspberry Pi | simple internet radio
install and test
sudo apt-get install mpc mpd mpc add http://streaming.radionomy.com/JamJazz mpc play 1 mpc help mpc stop
script.sh
#!/bin/sh arg1=$1 echo "NumArg>" $# echo "Arg1" $arg1 echo "cd>" #cd .. cd my-python echo "lcd>" sudo python _dispi2c.py internet_radio: JamJazz echo "audio>" amixer cset numid=3 1 mpc playlist echo "play>" if [ "$#" -eq 1 ]; then mpc play $arg1 else mpc play 1 fi sleep 2s echo "current>" mpc current song = mpc current exit 0
|