boyska 02bd430baa avoid zombies | há 2 anos atrás | |
---|---|---|
.. | ||
README.md | há 2 anos atrás | |
apply-state | há 2 anos atrás | |
example-state.json | há 2 anos atrás | |
get-status | há 2 anos atrás | |
ring.py | há 2 anos atrás | |
set-light | há 2 anos atrás |
ring_mon
ring.py
will get data from asterisk and create a simple json file.
apply-state
handles blinking patterns and similar stuff, so that a single light can provide info on a phone.
It uses helper scripts instead of configuration: get-status
is a --bin-state
helper; set-light
is a --bin-set-light
example.
./ring.py --state-file state.json &
./apply-state --devices 1,2