Code Monkey home page Code Monkey logo

beatbox's Introduction

beatbox

A gokrazy appliance to play music with an NFC reader

Build Status Go Report Card GoDoc

Description

Beatbox is small application that reads data from a Violet Mir:ror using the hidraw interface. Depending on which NFC tag is used, it will play local or remote playlists.

See the initial concept article, and the FOSDEM talk for understanding of the motivations.

Demo Video

Configuration

Since this is a gokrazy appliance, the configuration and data path is hardcoded to /perm/beatbox-data, there you'll need these files:

  • a directory for each tag, named with the tag ID, for example 0201000004042867d200000000000000. This is the tag ID that beatbox shows when an unkown tag is put on the NFC reader.
  • inside this directory, put the mp3 files you want to play

And for Spotify support:

  • "blob.bin", the file generated when using librespot, that serves as an authentication token.
  • "username", a file containing you Spotify username
  • files named like the directories mentionned earlier, that contain a Spotify playlist id, for example user/spotify/playlist/4Y7Ch1e3A3qWP9Gt3g9Hiv

Building

To build the binary for your machine:

   go get -u github.com/anisse/beatbox

And to build the SDCARD image for your Raspberry Pi 3, if the sdcard device is /dev/mmcblk0 (be VERY careful before running, or you might overwrite the wrong disk/device):

   go get -u github.com/gokrazy/tools/cmd/gokr-packer
   sudo setfacl -m u:${USER}:rw /dev/mmcblk0
   gokr-packer -kernel_package github.com/anisse/beatbox-kernel -overwrite=/dev/mmcblk0 github.com/anisse/beatbox

beatbox's People

Contributors

anisse avatar

Watchers

 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.