boyska 02bd430baa avoid zombies | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=2) %!d(string=hai) anos | |
apply-state | %!s(int64=2) %!d(string=hai) anos | |
example-state.json | %!s(int64=2) %!d(string=hai) anos | |
get-status | %!s(int64=2) %!d(string=hai) anos | |
ring.py | %!s(int64=2) %!d(string=hai) anos | |
set-light | %!s(int64=2) %!d(string=hai) anos |
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