• Stars
    star
    1,260
  • Rank 35,987 (Top 0.8 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.

Phoniebox: the RPi-Jukebox-RFID

GitHub last commit (branch)

Python Checks and Tests Test Install Scripts for Bullseye on Docker CodeQL PHP Tests

Coverage Status

Gitter chat

Introduction

Phoniebox is a contactless jukebox for the Raspberry Pi, playing audio files, playlists, podcasts, web streams and spotify triggered by RFID cards. All plug and play via USB, no soldering iron needed. It also features GPIO buttons control support.

Important Notice regarding Spotify Integration

Spotify has disabled access to libspotify on May 16, 2022.

This means Spotify in Phoniebox doesn't work at the moment, as Phoniebox can not communicate with Spotify via libspotify (and mopidy-spotify) anymore.

The problem is not our code but the cut off by Spotify. We want Phoniebox users to be able to connect their box to their Spotify accounts and play their content. The possibilities Spotify offers are -- at first glance -- not supporting an integration with Phoniebox.

Third party projects like librespot-java enter a grey zone regarding violation of Spotify's Terms of Services (ToS). For a potential Spotify re-integration, we are committed to a Spotify ToS compliant way of doing so (both in Version 2 and Version 3). This means looking into the (relatively new) Spotify Playback API, which is going to take an unknown amount of time.

This leaves us in a pickle and we are happy to hear from developer talent in the Phoniebox community on how to move forward regarding Spotify integration.

We are also curious to learn about alternative services we can connect with and which you would like to see supported -- or have developed support for already: #1835

The Phoniebox Calendar 2023 is here

Another bunch of wonderful designs! 2023 is the fifth Phoniebox calendar. If you are interested, you can see the 2019, 2020, 2021 and 2022 calendars in the docs folder. Download the printable PDF of 2023 here.

The 2023 Phoniebox Calendar

If you want to be featured on next years calendar, please make sure to add your Phoniebox pics to the design thread here on github.

Install Phoniebox

If you are looking for the latest stable version 2.x, use the install script for Raspberry Pi.

🔥 Version 3 is coming

Newest release: V3.2.1 Beta -> 30. Dec 2022

Just as the year ends, we have put together a small update for Version 3 with bug fixes and documentation fixes.

And, of course you still have all the goodies that were introduced in Version 3.2.0:

  • New GPIO backend based on GPIOZero including more sophisticated controls for inputs and outputs
  • Bluetooth Headset support with device buttons
  • Equalizer + Mono down mixer
  • Localization support for Webapp, current languages supported are English and German (help us translate!)
  • Timer support in Webapp and via RFID cards
  • Additional system information in Webapp like Battery status, CPU temperature or IP address
  • Preperation for Text-to-Speech + Read My IP as a first example
  • Bugfixes for Install Script

The goal for Version 3 was to tidy up the codebase, focus on a single programming language for the core (Python), establish a solid plugin system and build a responsive web client. Read on here if you want to learn about more reasons.

👋 Looking for adopters, testers and contributors

If you want to test or help develop this new version called future3, let us know what you think about the new architecture, the new web application and help us find bugs (or fix them proactively).

While Version 3 is still under development, it is becoming a lot more stable! Although not all of the features from version 2.x have been ported to version 3 so far.

If you seek the adventure, your support will be more then welcome. Before contributing, check out the following references.

Version 2 (stable)

Phoniebox 2.4.0 released (2022-12-18).

What's new in Version 2.4.0?

  • 🔥 Fixed evdev bug (fixes e.g. #1721, #1653, #1618, #1501 etc.)
  • 🔥 New support for Raspian Bullseye (and still for Buster) #1849
  • Publish "card swiped" event via MQTT #1496
  • Spotify integration still doesn't work - please follow the discussion at #1835
  • More fixed bugs and minor improvements...

Features Version 2

  • The one-line install script handles both Classic and +Spotify when setting up your Phoniebox
    • integrated selection of RFID readers
    • features non-interactive installs based on a config file
  • RFID control for playout and controlling your Phoniebox (e.g. set maximum volume with RFID cards).
  • Support for various RFID readers, e.g.
  • GPIO control for buttons, knobs / dials and much more to control your Phoniebox via GPIO.
  • Control via smooth Web App running on ajax from your phone, tablet or PC. You can play, upload, move files, assign new RFID cards, control playout, settings, etc.
  • Support for files with embedded chapters metadata (like m4a)
  • Customizable poweroff command
  • WiFi management
    • RFID cards to toggle WiFi (or switch it on/off)
    • Read out the WiFi IP address (if you are connecting to a new network and don't know where to point your browser)
    • Hotspot Phoniebox: ad-hoc hotspot if no known network found (IP: 10.0.0.5 SSID: phoniebox Password: PlayItLoud)
  • Touchscreen LCD display Player (file: index-lcd.php in web app)
  • Integrate your Phoniebox in your Smart Home with MQTT.
  • Player control
    • Playout Resume switch for audio books, allowing you to jump straight back to where you were (unless you fell asleep...).
    • Playout Shuffle switch to mix up your playlists.
  • Audio sources

Quick install Version 2

Contact and Support

Documentation

Documentation can be found in the GitHub wiki for Phoniebox. Please try to add content in the wiki regarding special hardware, software tweaks and the like.

Manual

In the Manual you will learn:

Troubleshooting

There is a growing section of troubleshooting including:

  • I want to improve the onboard audio quality
  • I am moving, how do I get the Phoniebox into my new WiFi network?
  • The RFID Reader doesn't seem to work.
  • Changing the volume does not work, but the playout works.
  • Script daemon_rfid_reader.py only works via SSH not by RFID cards.
  • Script daemon is closing down unexpectedly.
  • Everything seems to work, but I hear nothing when swiping a card.
  • I would like to use two cards / IDs to do the same thing.

Reporting Bugs

To make maintenance easier for everyone, please run the following script and post the results when reporting a bug. (Note: the results contain some personal information like IP or SSID. You might want to erase some of it before sharing with the bug report.)

/home/pi/RPi-Jukebox-RFID/scripts/helperscripts/Analytics_AfterInstallScript.sh 

Just copy this line and paste it into your terminal on the pi.

If you find something that doesn't work. And you tried and tried again, but it still doesn't work, please report your issue in the "issues" section.

Hardware aka Shopping List

Here is a list of equipment needed. You can find a lot second hand online (save money and the planet). The links below lead to Amazon, not at all because I want to support them, but because their PartnerNet program helps to support the Phoniebox maintenance (a little bit...).

Note: depending on individual projects, the hardware requirements vary.

Raspberry Pi

You might be surprised how easy and affordable you can get an RPi second hand. Think about the planet before you buy a new one.

RFID Reader and cards / fobs

Speakers / amps

Arcade Buttons

Special hardware

These are links to additional items, which will add an individual flavour to your Phoniebox setup. Consult the issue threads to see if your idea has been realised already.

Components

Special hardware is now organised in the folder components. If you have new hardware attached to your Phoniebox, please add to this library! It currently contains soundcards, displays, GPIO controls, RFID reader, smarthome integration.

Support Phoniebox

If you like your Phoniebox, consider to buy me a coffee or donate via PayPal to [email protected] using the friends option.

Media

Videos and Screenshots

Prototype of the RFID jukebox

See the Phoniebox code in action, watch this video and read the blog post from iphone-ticker.de

We love Tech published a video screencast on how to build your Phoniebox (in German), you can find all the steps and see the final product here:


Installation und Hardware

Web App and Audio / Spotify

The finished Phoniebox in action

A new video screencast about

What makes this Phoniebox easy to install and use:

  • Runs on all Raspberry Pi models (1, 2 and 3) and Raspberry Zero. (jump to the install instructions)
  • Just plug and play using USB, no soldering iron needed.
  • Once the Phoniebox is up and running, add music from any computer on your home network.
  • Register new RFID cards easily without having to connect to the RPi.
  • Play single or multiple files, podcasts or web streams.
  • Volume control is also done with RFID cards or key fobs.
  • Connect to your Phoniebox via your wifi network or run the Phoniebox like an access point and connect directly without a router.
  • Bonus: control the Phoniebox from your phone or computer via a web app.

The web app allows you to change the volume level, list and play audio files and folders, stop the player and shut down the RPi gracefully.

The web app runs on any device and is mobile optimised. It provides:

  • An audio player to pause, resume, shuffle, loop, stop and skip to previous and next track.
  • Sub folder support: manage your collection in sub folders. Phoniebox has two play buttons: only this folder and eeeeverything in this folder.
  • Manage files and folders via the web app.
  • Register new RFID cards, manage Phoniebox settings, display system info and edit the wifi connection.
  • Covers displayed in the web app (files called cover.jpg).

Phoniebox Gallery

Caption Caption Caption Caption Caption Caption

See more innovation, upcycling and creativity in the Phoniebox Gallery or visit and share the project's homepage at phoniebox.de. There is also an english Phoniebox page.

Sustainability

You might be surprised how easy and affordable you can get a RaspberryPi or an "appropriate" housing for your Phoniebox second hand. Think about the planet before you buy a new one. Creating a Phoniebox may be sustainable for the following reasons:

  • You buy things second hand or do upcycling on unused objects and reduce newly produced products
  • You built your Phoniebox yourself, so maintaining and repairing is not a problem (Additionally a great community helps you)
  • Since the Phoniebox uses Linux as a base system it's very unlikely that you run out of system and security updates - so it can run and run and run...
  • RFID cards or tags can be reused - no need to buy new plastic elements for changing the music or story linked to a card
  • Build it together with your kids to show them that building things on their own is possible and in cooperation with others makes life easier and fun at the same time

Contributing improvements

Read the CONTRIBUTING.md file for more infos on how to contribute code.

Acknowledgments

There are many, many, many inspiring suggestions and solutions on the web to bring together the idea of a jukebox with RFID cards. I want to mention a few of these that have inspired me.

I also want to link to two proprietary and commercial projects, because they were an inspiration in the early days of the Phoniebox. Since the first release, the Phoniebox code has shown the power of open source development. Today, Phoniebox might be the most versatile project of its kind.

More Repositories

1

streamplan

schedule stream recordings from the command line
Shell
9
star
2

Storyteller-JSON

A longform article theme with video, slideshows, parallax and more using PHP/JSON (originally developed as a Newscoop theme)
CSS
6
star
3

RPi-Stop-Motion-Capture

Stop motion video capture with the Raspberry Pi using a standard USB webcam.
Shell
5
star
4

PDFreactor-examples

This repo contains a number of examples, illustrating how PDFreactor can be used in Booktype. To be more precise: information on what a new export script needs to be capable of, to create the HTML and CSS which is needed by PDFreactor.
PHP
3
star
5

XeTeX-Theme4BooktypePDF

This set of XeTeX book templates is aimed at making automated Booktype PDFs easier. All variables regarding metadata, paper size, themes are saved in one seperate .tex file. The master XeTex template will read this file and change the book accordingly (e.g. build a colophon based on available metadata).
TeX
3
star
6

pan-book-machine

A little hack to make formatted documents from markdown using PanDoc https://pandoc.org/
Shell
2
star
7

BooktypeThemeBuilder4mpdf

Buidling themes for Booktype, including epub, editor and PDF (using mpdf)
CSS
2
star
8

podjob

Scheduled download of podcasts, writing podcast info to ID3V2 tags in the mp3 files
PHP
2
star
9

Booktype-UI-snippets

This repo is more private than public and contains snippets of CSS and images that I am playing with when tweaking the UI.
CSS
2
star
10

kinshasa-collection.com

kinshasa-collection.com home page
HTML
1
star
11

www

server conf
1
star
12

website-phonies-1

Static HTML CSS JS files
PHP
1
star
13

phpmyfaq-tpl-omnibook

Template set for phpMyFAQ for omnibook.pro
CSS
1
star
14

LaTeX-Theme4PDF

This set of LaTeX book templates is aimed at making automated PDFs easier. All variables regarding metadata, paper size, themes are saved in one seperate .tex file. The master LaTeX template will read this file and change the book accordingly (e.g. build a colophon based on available metadata).
TeX
1
star
15

Bootstrap-Basic-Elements

A collection of basic bootstrap elements for theme development.
HTML
1
star
16

Sample-Podcasts

A number of sample podcasts for testing RSS parser and other podcasts / player software.
1
star
17

From-EPUB-To-Conversion

A bundle of scripts to convert from EPUB to other formats
Shell
1
star
18

lowlive

basic radio automation in the browser
Perl
1
star
19

Comparing-Book-XML-Standards

The below list is an attempt to compare different XML concepts that try to define and describe a book.
HTML
1
star
20

quicz-means-quiz-markdown

QUICZ is a very simple format for creating multiple choice questions based on markdown syntax with clear human-readability in mind. Repo comes with conversion scripts.
Python
1
star