Skip to content

MauliQT/ultrasonics-api-self-hosted

 
 

Repository files navigation


Important

The offical API isn't working anymore and had some issues with deployment and ease of use. This mauliqt/ultrasonics-api alongside with mauliqt/ultrasonics is working but with some issues, i havent been able to fix yet.

The api proxy for ultrasonics.

This is the source code for the ultrasonics-api proxy server. It's purpose is to store private api keys for services such as Spotify, Deezer, and Last.fm, while providing an endpoint for ultrasonics to access those apis.

Installation

Either make the image using the Dockerfile, or pull from the inofficial repo: MauliQT/ultrasonics-api.

Recommended usage: docker-compose

version: "3.7"
services:
  ultrasonics-api:
    image: mauliqt/ultrasonics-api:1.1
    container_name: ultrasonics-api
    restart: unless-stopped

    ports:
      - 8003:8003

    environment:
      - PUID=${PUID}
      - PGID=${PGID}

      - SPOTIFY_CLIENT_ID=abc
      - SPOTIFY_CLIENT_SECRET=xyz
      - SPOTIFY_REDIRECT_URI=http://localhost:8003/api/spotify/auth/

      - LASTFM_API_KEY=xyz

      - DEEZER_APP_ID=abc
      - DEEZER_APP_SECRET=xyz
      - DEEZER_REDIRECT_URI=https://localhost:8003/api/deezer/auth

Environment Variables

These environment variables can be applied to your Heroku instance, or saved in a .env file in this directory.

If you don't use a service, you can remove it's environment variables.

Most services require you to get an api key / secret by creating an account and setting up an application. Documentation for each service can be found below.


Finding API Keys

App Link Notes
Spotify https://developer.spotify.com Refer to "Set Up Your Account" and "Register Your Application".
Last.fm https://www.last.fm/api
Deezer https://developers.deezer.com/myapps/

.env file

FLASK_APP=ultrasonics_api

USE_REDIS=False
REDIS_URL=[Only if USE_REDIS=True]

SPOTIFY_CLIENT_ID=abc
SPOTIFY_CLIENT_SECRET=xyz

LASTFM_API_KEY=abc

DEEZER_APP_ID=abc
DEEZER_APP_SECRET=xyz

About

API proxy for ultrasonics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.1%
  • HTML 18.3%
  • Other 2.6%