Skip to main content

CLI Alarm Clock

Project description

https://badge.fury.io/py/alarm.png https://pypip.in/d/alarm/badge.png https://pypip.in/license/alarm/badge.png

CLI Alarm Clock

Alarm is CLI utility written in Python language.

Requirements

- Python 2 or 3
- Mplayer

Installation

Using pip :

$ pip install alarm

uninstall:

$ pip uninstall alarm

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

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

Example:

$ alarm -s 17 22:05 ~/Music/xristina.ogg

+==============================================================================+
|                              CLI Alarm Clock                                 |
+==============================================================================+
| Alarm set at : Wednesday 22:05                                               |
| Sound file : /home/dslackw/Music/xristina.ogg                                |
| Time : 21:06:41                                                              |
+==============================================================================+



+==============================================================================+
|                              CLI Alarm Clock                                 |
+==============================================================================+
| Alarm set at : Wednesday 22:05                                               |
| Sound file : /home/dslackw/Music/xristina.ogg                                |
| Time : 22:05 Wake Up !                                                       |
+==============================================================================+
__        __    _          _   _         _
\ \      / /_ _| | _____  | | | |_ __   | |
 \ \ /\ / / _` | |/ / _ \ | | | | '_ \  | |
  \ V  V / (_| |   <  __/ | |_| | |_) | |_|
   \_/\_/ \__,_|_|\_\___|  \___/| .__/  (_)
                                |_|

MPlayer 1.1-4.8.2 (C) 2000-2012 MPlayer Team
Playing /home/dslackw/Music/xristina.ogg.
libavformat version 54.6.100 (internal)
libavformat file format detected.
[lavf] stream 0: audio (vorbis), -aid 0, -alang eng
Load subtitles in /home/dslackw/Music/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.23.100 (internal)
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 205.9 (03:25.8) of 230.9 (03:50.9)  1.6%

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alarm-1.2.tar.gz (17.2 kB view details)

Uploaded Source

File details

Details for the file alarm-1.2.tar.gz.

File metadata

  • Download URL: alarm-1.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for alarm-1.2.tar.gz
Algorithm Hash digest
SHA256 63665484c80338b076a246a8ee38956b598a578a7987f18a3c56bd17c8a14292
MD5 0b1a997849b7ac7f79f278348bc1ae5b
BLAKE2b-256 eb648f16d0f35c0acbd517b2bc5e71a79417a75f0d83761a94cee0ea70c25a2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page