allows synching podcast episodes to creative tonies
Project description
tonie-podcast-sync
tonie-podcast-sync allows synching podcast episodes to creative tonies.
This is a purely private project and has no association with Boxine GmbH.
Constraints and Limitations
- currently limited to podcasts providing mp3 files
- tested with the following podcasts:
- ... but in general, it should hopefully work with all podcasts out there
Usage
tonie-podcast-sync is available as a pip package on pypi. Install via
pip install tonie-podcast-sync
Then, use it as shown in the following example code:
from toniepodcastsync import ToniePodcastSync, Podcast
# create two Podcast objects, providing the feed URL to each
pumuckl = Podcast("https://feeds.br.de/pumuckl/feed.xml")
maus = Podcast("https://kinder.wdr.de/radio/diemaus/audio/gute-nacht-mit-der-maus/diemaus-gute-nacht-104.podcast")
# create instance of ToniePodcastSync
tps = ToniePodcastSync("<toniecloud-username>", "<toniecloud-password>")
# for an overview of your creative tonies and their IDs
tps.print_tonies_overview()
# define creative tonies based on their ID
greenTonie = "<your-tonieID>"
orangeTonie = "<your-tonieID>"
# Fetch new podcast episodes and copy them to greenTonie.
# The tonie will be filled with as much episodes as fit (90 min max).
# Episode are ordered with newest first.
tps.sync_podcast_to_tonie(pumuckl, greenTonie)
# Kid's should fall asleep, so let's limit the podcast
# episodes on this tonie to 60 minutes in total.
# Use the optional parameter for this:
tps.sync_podcast_to_tonie(maus, orangeTonie, 60)
For the tonie to fetch new content from tonie-cloud, you have to press one ear for 3s (until the "ping" sound) with no tonie on the box (refer also to TonieBox manual).
builds upon work of / kudos to
- moritj29's awesome tonie_api
- Tobias Raabe
- Matthew Wimberly
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for tonie_podcast_sync-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53eb2e737160375b85f591aae48758f568a160a159ff179b360f2b16e15758ad |
|
MD5 | 2284093779dae727c7b5c3b01236bc90 |
|
BLAKE2b-256 | 84c37616ba03f19118fbf02fa69bcb7418d297a2dc203197a5ca8d8353dbec3c |