一种用作闹钟的拖把扩展。
Mopidy-AlarmClock的Python项目详细描述
一种用作闹钟的拖把扩展。
mopidy闹钟最初由Mathieu Xhonneux创建,现在由Davis Mosenkovs维护。
安装
通过运行安装:
pip install Mopidy-AlarmClock
配置
可选地,可以在mopidy.confconfig文件中配置报警默认值(默认值如下所示):
[alarmclock] # Default alarm time in Hours:Minutes format def_time = 8:00 # Name or Mopidy URI of default alarm playlist def_playlist = # Default state of Random Track Order (true or false) def_random = false # Default alarm volume (integer, 1 to 100) def_volume = 100 # Default seconds to full volume (integer, 0 to 300) def_vol_inc_duration = 30
用法
确保HTTP extension已启用。然后浏览到mopidy服务器上的应用程序(例如,http://localhost:6680/alarmclock/)。
警告!强烈建议仅将本地播放列表与本地媒体(文件)一起用于闹钟。
尽管mopidy闹钟包含一些防止播放列表/曲目不可访问(例如在网络中断时)的安全措施,但使用本地媒体仍然安全得多。
许可证
Copyright 2014 Mathieu Xhonneux Copyright 2015-2018 Davis Mosenkovs Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
变更日志
v0.1.7
- 无法启动播放时播放backup alarm sound(在30秒或更长时间内)。
- 在自述文件中添加了警告,提醒闹钟只能使用本地播放列表/媒体。
v0.1.6
- 将分支模型更改为git-flow。
- 重构以改进报警调度程序。
- 添加了backup alarm sound(以防所选播放列表丢失)。
- 禁用consume和single播放模式。
- 修正了错误的mopidy版本要求。
- 其他重构。
v0.1.5
- 增加了测试
- 修复了在5秒内取消并再次设置警报时的不确定效果(防止陈旧的idle()计时器)。
- 修正了逐渐增大音量时的小数学错误。
- 报警time支持一位数分钟。
- 在alarm state中当前时间的前导零。
v0.1.4
- 现在可以在mopidy.conf中配置报警默认值。
- 在alarm state上显示报警音量。
- 在alarm state上显示闹钟的当前时间。
- 添加了Travis-CI build和Coveralls test coverage info。
- 修复了自述文件(可由pypi解析)。
v0.1.3
- 增加可调音量并逐渐增大音量。
- 修复了页面重新加载时出现的过时消息。
- 微小的内部代码更改和接口更改。
- 更新了自述文件/变更日志。
v0.1.2
- 修正了在某些情况下立即启动的警报。
- 将shuffle mode重命名为random track order。
v0.1.1
- 由Davis Mosenkovs接管的项目。
- 项目从Zashas/mopidy-alarmclock移动到DavisNT/mopidy-alarmclock。
- 固定设置(+小技术修复)。
- 自动取消静音并将音量设置为100%。
- 更新了洗牌方法。
- 计时器分辨率现在为5秒。
v0.1.0(未发布)
- 由Mathieu Xhonneux创建。
- 初次发布