mirror of
https://github.com/acatoire/bipbipzizik.git
synced 2026-03-10 08:01:18 +00:00
f638ccbc2eeedd2887fb077ea1c9a4b6a35130e5
Music Cards
Click the image below to see a video of it being used
Requires
software:
- python evdev. To install:
wget http://dl.piwall.co.uk/python-evdev_0.4.1-1_armhf.deb
dpkg -i python-evdev_0.4.1-1_armhf.deb
hardware:
- Raspberry Pi Zero (Don't forget micro sd card and power supply)
- USB OTG Hub
- RFID 125Khz Reader
- 125Khz Cards
- RFID Card Inkjet Tray to print in your printer (Note this is the model needed for my Canon MX922 Printer)
Please note that Raspberry Pi Zero is insufficient to run both the Home Assistant and Music Cards concurrently. I recommend you use a Raspberry Pi 3 if you intend to run both at the same time.
Steps to Configure and/or Run once if you dont want Music Cards to AutoStart
- Run
python config.pyto select the reader from the inputs - Run
python add_card.pyto scan cards and enter your Google Play Music Playlist Name - Make .sh scrypts executables : chmod +x sonosplay.sh
- Run
python box.pyto start the application and verify that it is reading your cards and csv list properly
Install Service to AutoStart
- Change directory to music-cards/
cd music-cards/
- Copy the musiccards.service file to systemd
sudo cp musiccards.service /etc/systemd/system/musiccards.service
- Reload the Daemon
sudo systemctl daemon-reload
- Start the musiccards.service
sudo systemctl start musiccards.service
- Check if musiccards.service is running
sudo systemctl status musiccards.service
HomeAssistant Setup for Google Music
- Place the files under homeassistant_files in the config directory of your Homeassistant machine.
- You will need to create custom_components/switch directory in your config directory and place
gmusic.pyin there. - Follow this forum post to install gmusicapi, find your device id, and set up the component.
Description
Languages
Python
99.9%
Batchfile
0.1%
