Git Product home page Git Product logo

juke-box's Introduction

Juke-Box

Uses NeoTrellis and Spotify to help create a simple Juke-Box.

Create a secrets file where the format should look like this:

SPOTIPY_CLIENT_ID=<enter client id here>
SPOTIPY_CLIENT_SECRET=<enter client secret here>
SPOTIPY_REDIRECT_URI=<enter redirect url here>
LIVING_ROOM_DEVICE_NAME=<enter the living room device name here>

Create a songs file where the format should look like this with 16 songs:

The Big Ship Sails on the Ally Ally Oh=spotify:track:4yfOLQspU8ELGOjWeck8oN
...

You'll need to login to spotify, or copy the .cache file from an existing install.

Install all the dependencies that are in requirements.txt when logged in as root.

Create a service

[Unit]
Description=This is the juke box app that works with NeoTrellis
After=multi-user.target

[Service]
WorkingDirectory=/home/<enter-user-name>/
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /home/<enter-user-name>/main.py

[Install]
WantedBy=multi-user.target

Enable the service:

sudo systemctl enable juke-box.service

Start the service:

sudo systemctl start juke-box.service

Setup grafana-agent

To be able to scrap the metrics from this running service, add this under metrics->configs:

  - name: service
    scrape_configs:
      - job_name: self-scrape
        static_configs:
          - targets: ['localhost:8000']
    remote_write:
    - basic_auth:
        password: <add-password>
        username: <add-username>
      url: <add-prom-remote-url>

juke-box's People

Contributors

ankur22 avatar

Watchers

 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.