{"id":19082923,"url":"https://github.com/floscha/tonietools","last_synced_at":"2025-10-08T05:33:34.402Z","repository":{"id":49291932,"uuid":"365523426","full_name":"floscha/tonietools","owner":"floscha","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-30T12:08:16.000Z","size":1711,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-02T20:42:16.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floscha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-08T13:37:51.000Z","updated_at":"2022-08-15T11:15:22.000Z","dependencies_parsed_at":"2022-09-06T01:40:53.751Z","dependency_job_id":null,"html_url":"https://github.com/floscha/tonietools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Ftonietools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Ftonietools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Ftonietools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Ftonietools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floscha","download_url":"https://codeload.github.com/floscha/tonietools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240133134,"owners_count":19752993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T02:45:02.775Z","updated_at":"2025-10-08T05:33:29.383Z","avatar_url":"https://github.com/floscha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :package: TonieTools\n\nA handy tool to import songs from Spotify and YouTube to your Creative Tonie using a web UI or CLI.\n\n![python package](https://github.com/floscha/tonietools/actions/workflows/github-actions.yml/badge.svg)\n![push to dockerhub](https://github.com/floscha/tonietools/actions/workflows/push-to-dockerhub.yml/badge.svg)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n![License](https://img.shields.io/github/license/mashape/apistatus.svg)\n\n## Usage\n\n### Docker\n\nThen, run the following command to see how the CLI works:\n```bash\ndocker run --rm --name tonietools --env-file .env tonietools --help\n```\n\nTo start the web server, run\n```bash\ndocker run --rm --name tonietools -p 8000:8000 --env-file .env tonietools\n```\nThe web UI can then be accessed under [localhost:8000](localhost:8000).\n\nThis assumes that you use a *.env* file containing the environmental variables as listed in the following template:\n```\nTONIE_MAIL=\u003cyour-mail-adress\u003e\nTONIE_PASSWORD=\u003cyour-tonies-password\u003e\nTONIE_HOUSEHOLD=\u003ctonies-household-id\u003e\nTONIE_ID=\u003ccreative-tonie-id\u003e\n```\n\nAlternatively, you can add environmental variables to the `docker run` command individually as `-e TONIE_MAIL=\u003cyour-mail-adress\u003e`.\n\n### CLI\n\n#### Spotify\n\n`tonietools spotify \u003csong-album-or-playlist-id\u003e`\n\n\n## Development\n\n### Docker\n\nBuild the provided Docker image like so:\n```bash\ndocker build . -t tonietools\n```\n\nStart a bash session in the Docker container:\n```bash\ndocker run --rm -it --entrypoint /bin/bash --env-file .env --name tonietools tonietools\n```\n\n### No Docker\n\nInstall FFmpeg:\n- OSX: `brew install ffmpeg`\n- Ubuntu: `apt-get install ffmpeg`\n\nSetup a new virtual environment and install dependencies:\n```bash\npython -m venv .venv\nsource .venv/bin/activate\npython -m pip install --upgrade pip\npython -m pip install -r requirements-dev.txt\npython -m pip install -e .\n```\n\nWhen planning to commit to GitHub, activate pre-commit with `pre-commit install`.\n\nTo run the pre-commit hooks, use `pre-commit run --all-files`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Ftonietools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloscha%2Ftonietools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Ftonietools/lists"}