Skip to content
/ ToniePut Public

A TonieBox utility for putting mp3 files onto CreativeTonies

License

Notifications You must be signed in to change notification settings

srz2/ToniePut

Repository files navigation

ToniePut

Docker Image Version

Introduction

ToniePut is a utility to allow you to connect to your TonieBox and upload MP3 files to the box sourced either from youtube, spotifiy, or local files

How to Use

  1. Log in with your MyTonies username and password
  2. Load your files by submitting youtube/spotify links or load a local file (only MP3s allowed currently)
  3. Verify your pending files
  4. Select your desired CreativeTonie to load your files to
  5. Selected the Load button

Resources Used

For simplicity, utilities used are configured to download the audio files as an MP3 file. Also local files are restricted to MP3 files.

Youtube Downloads

In order to download the audio of youtube videos, yt-dlp is used.

Spotify

In order to download the audio files of a Spotify song, spotdp is used.

How to Build

Docker

To Build a docker image, use the following command

docker buildx build --platform linux/amd64,linux/arm64 -t {name}/tonieput:{tag} .

How to Run

Local

To build locally, use the following command

gunicorn --certfile ../cert.pem --keyfile ../key.pem -b 0.0.0.0:5050 --chdir src main:app

Linux

This needs two volumes:

  1. Location for cert.pem and key.pem at /var/lib/tonieput/certs
  2. Location for user data at /var/lib/tonieput/data
docker run \
-v /var/lib/tonieput/certs:/app/certs \
-v /var/lib/tonieput/data:/app/upload_to_tonie \
-p 5000:8000 \
-d \
[Docker_Image]

About

A TonieBox utility for putting mp3 files onto CreativeTonies

Resources

License

Stars

Watchers

Forks

Packages

No packages published