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
- Log in with your MyTonies
username
andpassword
- Load your files by submitting youtube/spotify links or load a local file (only MP3s allowed currently)
- Verify your pending files
- Select your desired CreativeTonie to load your files to
- Selected the
Load
button
For simplicity, utilities used are configured to download the audio files as an MP3 file. Also local files are restricted to MP3 files.
In order to download the audio of youtube videos, yt-dlp is used.
In order to download the audio files of a Spotify song, spotdp is used.
To Build a docker image, use the following command
docker buildx build --platform linux/amd64,linux/arm64 -t {name}/tonieput:{tag} .
To build locally, use the following command
gunicorn --certfile ../cert.pem --keyfile ../key.pem -b 0.0.0.0:5050 --chdir src main:app
This needs two volumes:
- Location for cert.pem and key.pem at
/var/lib/tonieput/certs
- 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]