Code Monkey home page Code Monkey logo

smergify's Introduction

Smergify

Shared Spotify playlists

Setup

Spotify App

  • Create your own Spotify App here
  • Add a Redirect URI to your app, for example http://localhost:8080
  • You will need your app's Redirect URI, Client ID and Client Secret later for configuring the Server and Client

Server

  • Setup your own server, for example a RaspberryPi

  • If you use a RaspberryPi, you can run our configuration script to automatically:

    • Run a full upgrade
    • Install fail2ban to prevent brute-force attacks
    • Ask for password when using sudo
    • Enable SSH, change port and disable password login
    • Setup DuckDNS
  • Install the required packages in requirements.txt

pip3 install -r requirements.txt
  • Open config.yaml and insert your configuration

    • Client ID, Client Secret and Redirect URI of your previously created App
    • The name of your database file (Default: data.db). The file should be in the same folder as your script
    • The name of your log-file which is saved in logs
    • Minimum and desired playlist size (Amount of songs)
  • Add a cronjob with crontab -e to automatically update all playlists for groups created with the client

# Runs every Sunday at 00:00
0 0 * * 7 python3 smergify.py

Client

pip3 install -r requirements.txt
  • Open config.yaml and insert your configuration

    • Client ID, Client Secret and Redirect URI of your previously created App
    • Username, hostname and port of your server
    • The path to your private key. Leave empty if not needed
    • Your server's password. Leave empty if not needed
    • The absolute path to the playlist groups on the server
    • The absolute path to the server bash script starting the script

Usage

Run python3 smergify.py on your client and follow the instructions.

Contributors

smergify's People

Contributors

johannespertl avatar liliolczak avatar manuelhacker avatar

Stargazers

 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.