Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
.. contents:: Table of Contents:
.. image:: https://gitlab.com/dslackw/images/raw/master/alarm/alarm-clock-icon.png :target: https://gitlab.com/dslackw/alarm
Alarm is command line alarm clock utility written in Python language.
When the date and time coincides with the current date and time, the alarm starts playing the sound is selected for five consecutive times.
You can pause the alarm by pressing 'p' or 'space' is an attempt to cancel the 'q' or 'ESC'. Change the volume of the alarm by pressing '*' or '/'.
You can create a list and use it as an alarm sound:
.. code-block:: bash
$ cat *.mp3 > playlist.m3u
$ alarm -s 17 07:05 ~/Music/playlist.m3u
You will find some sounds in folder alarm/sounds in the GitLab tar archive. Some will make you laugh, have fun !!!
.. code-block:: bash
- Python 3
- Mplayer
Using pip <https://pip.pypa.io/en/latest/>
_ :
.. code-block:: bash
$ pip install alarm --upgrade
uninstall:
$ pip uninstall alarm
Get the source 'git clone https://gitlab.com/dslackw/alarm.git'
.. code-block:: bash
$ python3 setup.py install
.. code-block:: bash
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 21 06:00 /path/to/song.mp3
Example:
.. code-block:: bash
$ alarm -s 18 22: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
Use config file in $HOME/.alarm/config:
.. code-block:: bash
$ 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 ...
FAQs
CLI Alarm Clock
We found that alarm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.