beatbox

command module
v0.0.0-...-834410f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2019 License: MIT Imports: 18 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL