Ooh, thanks for that - I hadn't thought about using a number pad for this - works much better as instead of having only two stations to switch between I can have nine, and have commands for altering the volume or switching the audio off.
So after a bit of searching around, I have now used the bind command to set the keys to their tasks - currently 1, 2, and 3 load specific radio stations, 0 stops MPC, and the + and - buttons alter the volume. It's also set to start playing automatically when the Pi is booted (it did that anyway, I didn't have any problems with that bit - as I said before, I have some slightly higher-than-basic knowledge of Linux terminal).
The problem I now have is that I can't seem to get the bind command to run automatically. At the moment, I've got a shell script that initialises the 'radio', so it sets the default volume of MPC and starts the default station. But it doesn't seem to want to run the bind command. I just get
Code: Select all
init.sh: 1: init.sh: bind: not found
when it tries to run (obviously as part of the bootup sequence, this doesn't appear, but it does when I try to run it, either locally or remotely - I know running bind doesn't work on the local machine when you run it remotely, but am just testing!)
A search of the Internet has come up with a blank, partially - I think - because there's another bind command that does something with DNS servers. So does anybody know how I can get this to run on boot? The idea is that this can just get switched on and then it will run, with no screen attached or anything and with just the USB number pad attached. So any ideas?