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如何让ruby和maven协同工作   如何从Java代码中调用Excel VBA宏?   java是公共类的默认成员   java Android TextToSpeech总是无法运行   导入JAVA包的类不存在   java中有很多JSP/Servlet应用程序示例,为什么是。使用inc扩展代替。包含的jsp?   tomcat向JavaWebApp添加JAR   java如何在MySQL中向表中插入变量   java在Spring web app中找不到类[org.springframework.scheduling.quartz.SchedulerFactoryBean]   swing Java GUI布局建议   java Google HTTP库JSON解析,空值默认为True   java使用Eclipse和Apache Tomcat 9.0开发聊天机器人   java我可以使用vmware软件包更改虚拟机的IP地址吗?   java在单击“后台运行”后返回进度监视器对话框   java uibinder onload not调用   java Spring数据分页和排序存储库的工作原理