Giter VIP home page Giter VIP logo

alarmix's Introduction

python versions build status pypi version

logo

Installation

python -m pip install alarmix

⚠️ MPV must be installed and accessible ⚠️

At first, you need to start alarmd daemon:

# Run alarmd-server as a daemon
alarmd -s "path/to/sound/to/play" -d

# To kill it you need to run
alarmd kill

# Of course you can see help
alarmd -h

Then you can manage your alarms with alarmc command.

alarmc # Show scheduled alarms for today
alarmc -f # Show all scheduled alarms
alarmc stop # Stop buzzing alarm
alarmc add 20:00 19:30 14:00 # Add alarms
alarmc add +30 +2:40 # Add alarms with relative time
alarmc delete 20:00 # Remove alarm from schedule
alarmc

alarmc -h # Show help

Also alarmc can display information about your schedule in different formats:

➜  ~ alarmc # Default schedule information
+------------+----------------+
| alarm time | remaining time |
+------------+----------------+
|  09:30:00  |    9:01:28     |
+------------+----------------+

➜  ~ alarmc -r # Raw data without table formatting (separated by '\t' character)
alarm time      remaining time
09:30:00        9:00:43

➜  ~ alarmc -w # Show "When" column
+------------+----------------+----------+
| alarm time | remaining time |   when   |
+------------+----------------+----------+
|  09:30:00  |    8:58:58     | weekdays |
+------------+----------------+----------+

➜  ~ alarmc -c # Show "Cancelled" column
+------------+----------------+-----------+
| alarm time | remaining time | cancelled |
+------------+----------------+-----------+
|  09:30:00  |    8:57:35     |   False   |
+------------+----------------+-----------+

# All options can be combined
➜  ~ alarmc -rwc
alarm time      remaining time  when            cancelled
09:30:00        8:58:15         weekdays        False

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.