autobudilnik/README.md

47 lines
2.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## autobudilnik
a program on pure ruby for windows that turns on alarm after N times when you are not using the keyboard (the computer) without any third-party gems
### warning:
<del>for some reason 'system(audiofilepath)' doesn't always work</del>now this runs via bat file
### syntax:
ruby autobudilnik.rb [-a \<audiofilepath\>] [-t \<time\>] [-c \<configfilepath\>]
supports 's', 'm', 'h' and 'd' (24 hours) suffixes for time
### configuration file:
<code>waittime \<time\>
configfilepath \<path/to/config\></code>
### TODO
1. UI
2. automatic a config file creation?
## НА РУССКОМ
ПРОГРАММА НА ЧИСТОМ РУБИ ДЛЯ ВИНДОВС КОТОРАЯ ВКЛЮЧАЕТ БУДИЛЬНИК ЧЕРЕЗ ОПРЕДЕЛЁННОЕ ВРЕМЯ НЕИСПОЛЬЗОВАНИЕ КЛАВИАТУРЫ (КОМПЬЮТЕРА) БЕЗ СТОРОННИХ ГЕМОВ
### СИНТАКСИС:
ruby autobudilnik.rb [-a \<audiofilepath\>] [-t \<time\>] [-c \<configfilepath\>]
МОЖНО ИСПОЛЬЗОВАТЬ СУФФИКСЫ (ПРИСТАВКИ) ДЛЯ ВРЕМЕНИ:
- 's' ДЛЯ СЕКУНД (АВТОМАТИЧЕСКИЙ)
- 'm' ДЛЯ МИНУТ
- 'h' ДЛЯ ЧАСОВ
- 'd' ДЛЯ ДНЕЙ(24 ЧАСОВ(СУТКИ) А НЕ 12 ЧАСОВ)
### ПРИМЕЧАНИЯ
<del>ЧЁТ 'system(audiofilepath)' НЕ ВСЕГДА РАБОТАЕТ</del>ТЕПЕРЬ ЗАПУСКАЕТ ЧЕРЕЗ ЧЕРЕЗ .bat ФАЙЛ
ПАРАМЕНТЫ ОПРЕДЕЛЯЮТСЯ В ЭТИХ ПРИОРИТЕТАХ:
АРГУМЕНТЫ > СВОЙ КОНФИГ > КОНФИГ > ВСТРОЕННЫЕ ПАРАМЕТРЫ
ЕСЛИ НУЖЕН КОНФИГ ИЛИ АУДИОФАЙЛ В ОТНОСИТЕЛЬНОМ КАТАЛОГЕ ТО НУЖНО СНАЧАЛО В ТЕРМИНАЛЬНОЙ СРЕДЕ(cmd) ПЕРЕЙТИ ТУДА ПЕРЕД ЗАПУСКОМ
### ФАЙЛ КОНФИГУРАЦИИ
<code>waittime \<ВРЕМЯ\>
configfilepath \<ПУТЬ/К/КОНФИГУ\></code>
### ЗАДАЧИ
1. ПОЛЬЗОВАТСКИЙ ИНТЕРФЕЙС
2. АВТОМАТИЧЕСКОЕ СОЗДАНИЕ ФАЙЛА КОНФИГА?