GithubHelp home page GithubHelp logo

rfid-mqtt-jukebox's Introduction

rfid-mqtt-jukebox

A set of scripts to turn a Raspberry Pi combined with an mfrc522 RFID card reader into a jukebox.

Installation/What's needed

  • Set up the Raspberry Pi + RFID Chip: https://pimylifeup.com/raspberry-pi-rfid-rc522/
  • Clone this repository
  • Edit jukebox.py add your MQTT credentials
  • Edit jukebox_control.py, add MQTT credentials and path to jukebox.py
  • Optional: Use systemd to start jukebox_control.py on boot.

Scripts description

jukebox.py: Takes care of reading the RFID cards and sending the values to an MQTT topic jukebox_control.py: Takes care of starting and stopping jukebox.py, as well as shutting down the raspberry pi to allow you to remotely control it

Write the RFID cards

Use the write.py script to write data to your RFID cards. I went with numbering them starting from 1. Those values will then get sent to the MQTT topic and can be used to assign different songs/playlists to each card.

Node Red flow

Check example_flow for an example. I'm using Sonos speakers and the following method to play a random Sonos playlist: https://www.reddit.com/r/homeassistant/comments/agdbh2/neat_trick_autoplaying_sonos_favorites_by_emoji/

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.