cli闹钟

alarm的Python项目详细描述


https://img.shields.io/github/release/dslackw/alarm.svghttps://travis-ci.org/dslackw/alarm.svg?branch=masterhttps://landscape.io/github/dslackw/alarm/master/landscape.pnghttps://img.shields.io/codacy/22fbb1e64acc45a78de3c86233d88d9a.svghttps://img.shields.io/pypi/dm/alarm.svghttps://img.shields.io/badge/license-GPLv3-blue.svghttps://img.shields.io/github/stars/dslackw/alarm.svghttps://img.shields.io/github/forks/dslackw/alarm.svghttps://img.shields.io/github/issues/dslackw/alarm.svg

CLI Alarm Clock

https://raw.githubusercontent.com/dslackw/images/master/alarm/alarm-clock-icon.png

alarm是用python语言编写的命令行闹钟实用程序。

How works

当日期和时间与当前时间一致时,警报开始 连续五次选择播放声音。你可以 按“P”或“空格”暂停报警是试图取消 “q”或“esc”。按“*”或“/”更改警报的音量。

您可以创建一个列表并将其用作报警声音:

$ cat *.mp3 > playlist.m3u
$ alarm -s 1707:05 ~/Music/playlist.m3u

您将在“报警/声音”文件夹中找到一些声音 仅Github tar存档alarm-2.1.tar.gz或 压缩存档alarm-2.1.zip。 有些会让你笑,玩得开心!!!

Requirements

- Python 2 or 3
- Mplayer

Installation

使用pip

$ pip install alarm --upgrade

uninstall:

$ pip uninstall alarm

获取源“git clonehttps://github.com/dslackw/alarm.git

$ python setup.py install

Command Line Tool Usage

usage: alarm [-h][-v][-s] <day> <alarm time> <song>

optional arguments
  -h, --help       show this help message and exit
  -v, --version    print version and exit
  -s, --set        set alarm day, time and sound

  --config         use config file

example: alarm -s 2106:00 /path/to/song.mp3

示例:

$ alarm -s 1822:05 ~/alarm/sounds/wake_up.mp3

+==============================================================================+
|                              CLI Alarm Clock                                 |
+==============================================================================+
| Alarm set at : Wednesday 22:05                                               || Sound file : ~/alarm/sounds/wake_up.mp3                                      || Time : 21:06:41                                                              |
+==============================================================================+
Press 'Ctrl + c' to cancel alarm ...


+==============================================================================+
|                              CLI Alarm Clock                                 |
+==============================================================================+
| Alarm set at : Wednesday 22:05                                               || Sound file :  ~/alarm/sounds/wake_up.mp3                                     || Time : 22:05 Wake Up !                                                       |
+==============================================================================+
Press 'Ctrl + c' to cancel alarm ...
__        __    _          _   _         _
\ \      / /_ _|| _____  ||||_ __   ||\ \ /\ / / _`||/ / _ \ ||||'_ \  | |
  \ V  V / (_| |   <  __/ | |_| | |_) | |_|
   \_/\_/ \__,_|_|\_\___|  \___/| .__/  (_)
                                |_|

Press 'SPACE' to pause alarm ...

Attempt 1

Attempt 2

使用$HOME/中的配置文件。报警/配置:

$ alarm --config

+==============================================================================+
|                              CLI Alarm Clock                                 |
+==============================================================================+
| Alarm set at : Wednesday 07:00                                               || Sound file : /home/user/alarm/sounds/funny.mp3                               || Time : 00:09:22                                                              |
+==============================================================================+
Press 'Ctrl + c' to cancel alarm ...

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

推荐PyPI第三方库


热门话题
java Android应用程序在后台   如何使用java减去日期。sql。时间戳   在Eclipse中使用Tomcat和Maven的java抛出错误   java Runnable jar什么都不做,资源不导出   并发Java内存模型:volatiles和读/写重新排序   使用Morphia在MongoDB中进行java批量升级。可能吗?   java将自己创建的sqlite数据库复制到安卓失败   在java中使用嵌套循环解决消除?   地图上多个标记的java实时动画   java如何在J2EE web应用程序中从服务层调用DAO方法   java我只想浏览文件,并将其作为电子邮件中的文件。我应如何附加:   猜猜我在think Java中的数字是57   可以在java流中的groupingBy中使用foreach吗?   我的Java程序编译时没有任何错误,但不会完全运行