hoveeman / music-cards
- среда, 28 марта 2018 г. в 00:16:40
Python
Use RFID to call a curl command to homeassistant to play a Google Play playlist
Click the image below to see a video of it being used
wget http://dl.piwall.co.uk/python-evdev_0.4.1-1_armhf.deb
dpkg -i python-evdev_0.4.1-1_armhf.debpip install python-mpd2python config.py to select the reader from the inputspython add_card.py to scan cards and enter your Google Play Music Playlist Namepython box.py to start the application and verify that it is reading your cards and csv list properlycd music-cards/sudo cp musiccards.service /etc/systemd/system/musiccards.servicesudo systemctl daemon-reloadsudo systemctl start musiccards.servicesudo systemctl status musiccards.servicegmusic.py in there.Please note that I have Home Assistant running in a Virtual Machine on another computer. If you want to run Home Assistant and the music cards on the same machine I'd recommend a Raspberry Pi 3 as opposed to the Raspberry Pi Zero