Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bertrandom/spinster
This is the script for my RFID Record Player that tells my stereo to play music when an RFID record is placed on the reader.
https://github.com/bertrandom/spinster
Last synced: 23 days ago
JSON representation
This is the script for my RFID Record Player that tells my stereo to play music when an RFID record is placed on the reader.
- Host: GitHub
- URL: https://github.com/bertrandom/spinster
- Owner: bertrandom
- Created: 2012-12-07T08:37:56.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-07T08:56:03.000Z (about 12 years ago)
- Last Synced: 2023-04-17T14:00:29.961Z (over 1 year ago)
- Language: Python
- Homepage: http://thatsaspicymeatball.com/post/3567097734/rfid-record-player
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spinster
This is the script for my [RFID Record Player](http://thatsaspicymeatball.com/post/3567097734/rfid-record-player) that tells my stereo to play music when an RFID record is placed on the reader.
The Redbee RFID reader uses XBee to wirelessly send the signal to the USB dongle plugged into my server. I'm running Ubuntu 12.04 LTS which has `ftdi_usb` drivers already built in, so the dongle shows up as `/dev/ttyUSB0`. The script treats that as a serial port. From the manual:
> The RedBee™ RFID reader comes configured to communicate at 9600 baud, No parity, One Stop bit, and No Flow Control.
After it receives the tag, it looks it up against the hash for the corresponding album and then tells mpd to clear the current playlist, search for the album and add it as the current playlist, and play. It also keeps tabs on what the last album played was so it doesn't constantly restart the album (as long as the tag is on the RFID reader, it will continually transmit the tag over and over again). The searchadd command is only available in mpd 0.17 so you may have to compile the newest mpd from source:
bzip2 -d mpd-0.17.2.tar.bz2
cd mpd-0.17.2
apt-get install libasound2-dev libmad0-dev libid3tag0-dev libflac-dev libflac++-dev
apt-get install libglib2.0-dev
./configure
make
make installand then make `/etc/init.d/mpd` point to `/usr/local/bin/mpd` instead of `/usr/bin/mpd`.