Coder Social home page Coder Social logo

volumio-rfid's Introduction

RFID Cards for Volumio

Use RFID cards to control Volumio. The association between card IDs and URLs are maintained in a table in AirTable.

Installation

apt-get update
apt-get install gcc libffi-dev libssl-dev python3-dev raspi-config python3-venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Create a file .env in the installation directory:

[Airtable]
apikey=key1234567890

Copy the service file to /etc/systemd/system/rfid.service and activate it

sudo cp rfid.service /etc/systemd/system/rfid.service
sudo chmod 664 /etc/systemd/system/rfid.service
sudo systemctl enable /etc/systemd/system/rfid.service
sudo systemctl daemon-reload
sudo systemctl start rfid.service

(Nice tutorial for writting services here )

Now your script will be put into service and will be started. To check for errors or not, you can run this command:

sudo service rfid status

To stop the script, you can run the command:

sudo service rfid stop

Further information

Example entries

Here are some examples for pairs RFID / Spotify URL

London Grammar

660373477523=spotify:artist:3Bd1cgCjtCI32PYvDC3ynO

Big Big Train - Folklore

866901399775=spotify:album:3j1MgNFNI90XdSTEGDN4pa

Sting

245858867403=spotify:artist:0Ty63ceoRnnJKVEYP0VQpk

???

180259887130=spotify:album:6UN8m07SmIzyDe63H0oljL

volumio-rfid's People

Contributors

oschettler avatar rob192 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.