GithubHelp home page GithubHelp logo

kidsradio's Introduction

kidsRadio

Required Hardware and Software

Setup

Setup the RPi

Setup the RPi using the Pimoroni instructions. It will setup the audio, buttons, and leds.

You may need to install the Phat-beat libraries.

Install Raspotify. This will make the RPi a Spotify Device you can stream to.

Spotify

Setup Spotify for developers. Get Client ID and Secret.

Create a playlist for the kid's music.

The fun part

Export your Client ID and Secret as variables to the shell.

Run configTest2.py. This will allow you to login to Spotify and grant the Python app access. This will also create the tekore.cfg file that will allow constant access to the required Tokens.

I ran this on a seperate machine since the RPi is headless. The tekore.cfg file must then be copied over to the RPi via SSH.

Note you can remove the shell variables at this point

Edit the self.rPiSpotifyDevice with the ID of the RPi Radio. You can use the configured.py to list all your devices.

Get the playlist name by copying the link (Three dots) from the Spotify App/Web and paste to a text file. Extract the playlist ID (first set of numbers/letters).

Stop the process cleanshutd from running. This will force the rPi to reboot.

Just a player

One issue I've run into is the RPi only acts like a player after it's been found by Spotify. In order words, you have to go find the RPi Spotify Device in the Spotify App. It's unclear how long Spotify is aware of the player. It seems from time to time, the RPi player disappears. The app then crashes since it relies on the RPi player being present.

References

kidsradio's People

Contributors

aguileragit avatar

Watchers

James Cloos avatar  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.