SonoPod是一个命令行工具,用于通过Sonos扬声器播放播客
sonopod的Python项目详细描述
一个简单的Sonos命令行播客播放器
为什么?
这个小实用程序非常适合为Sonos建立遥控器。
主要的用例是一个无头树莓pi,读取rfid卡。 选择播客播放Sonos扬声器。
如果你发现了它的其他用途,添加你的故事!
示例
帮助文本
$ ./sonopod.py --help SonoPod is a command line client to feed your Sonos with podcasts Copyright 2016 <havard@gulldahl.no>, GPLv3 licensed Usage: sonopod [-h|--help][--setsonos][--volume NN][podcast_url][-h|--help] This help text [--setsonos] Set default Sonos speaker [--volume NN] Set volume of default speaker to N, between 0(silent) and 90(max)[podcast_url] Add a new podcast series to the library, and pick an episode to play If run without arguments, presents a list of podcasts in the library
设置默认SONOS扬声器
$ ./sonopod.py --setsonos Choose a Sonos speaker [1] Arbeidsrom [2] Stue Set default>
设置默认扬声器的音量
$ ./sonopod.py --volume=21 New volume of player is 21
添加播客系列
$ ./sonopod.py http://www.thenakedscientists.com/naked_scientists_podcast.xml Available episodes [1] Cambridge Science Festival: Battle of the Brains [2] The A - Zika of viruses: Preventing Pandemics [3] Gravitational Waves: Discovery of the Decade? [4] Could The Internet Die? [5] Rules of Attraction: The Science of Sex Which episode to play>
从库中收听播客
$ ./sonopod.py Podcasts in library [1] NRK – 200 år på 200 minutter [2] NRK – Einstein – på sporet av den tøyde tid [3] Everyday Einstein's Quick and Dirty Tips for Making Sense of Science [4] NRK – Nyhetsmorgen [5] Freakonomics Radio [6] Valebrokk og Co. [7] NRK – Ekko - et aktuelt samfunnsprogram [8] NRK – Ytring Choose podcast> 6 Available episodes [1] Her bor fremtidens boligvinnere [2] Må vaskehjelpen subsidieres for å få kvinner i full jobb? [3] Lakselus til tross, vi har så vidt sett starten på lakseeventyret [4] Økonomisk toppmøte: Èn ting er mer verdt enn oljen [5] Hvor ille kan oljebremsen bli? Vi har spurt industritoppene før sentralbanksjefens årstale Which episode to play> 2
更改日志
0.1.2(2016-06-03)
- 添加--volume=XX选项以设置默认扬声器的音量。
0.1.1(2016-03-20)
- 工具在您的路径中安装为sonopod.py。
- 如果您有多个SONOS扬声器,请添加选择该扬声器的代码。与…一起跑 --setsonos设置扬声器。
- 添加命令行选项--help
- 不要依赖于builtin模块
0.1(未发布)
- 概念的工作证明