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(未发布)

  • 概念的工作证明

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java从Hibernate entitymanager 3.6.9迁移到4.1.2导致mysql连接崩溃   graalvm我可以将我的nativeimage Java应用程序打包到一个目录中吗   访问其中一个操作时发生java 500错误   具有baloon弹出窗口的java Gwt自定义文本框   递归Java方法中的递归错误反转队列   JavaIE11转换。xlsx文件到。xls和。docx文件到。医生   java PersistenceProvider createEntityManagerFactory在Eclipse插件中返回null   java如何为tic-tac-toe创建递归的computerplayer代码   java将ArrayList元素向右移动   java在同一个Scanner变量中使用int/double和字符串   线程“main”java中的eclipse异常。伊奥。FileNotFoundException:错误   java是否可以创建指向inmemory对象的URL?   java Moshi无法为具有泛型的类创建转换器   java将数字四舍五入到第一百位   java如何在节点类中创建“节点”类型的fild?   java如何将自定义数据保存到文本文件?   java递归最长公共子串(LCS)问题优化