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.printToniesOverview()
# 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.syncPodcast2Tonie(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.syncPodcast2Tonie(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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f329a729ee6ee9c3538a2fe41fcc0c649575ef608eb4055257a0fee621745865 |
|
MD5 | e817820057b274d6b427475a877fb882 |
|
BLAKE2b-256 | a04e8035bf3d77b85b5d2e72b026717f011246ed18813f8dddf4abeec1f47866 |