boyska 36cff1c634 backport to panoramisk==1.0 + refactoring 2 gadi atpakaļ
..
README.md 7c2c5a212a ring_mon readme 2 gadi atpakaļ
apply-state 94e5cc5293 unneeded dependency 2 gadi atpakaļ
example-state.json 24fcc4dba8 example files/scripts for apply-state 2 gadi atpakaļ
get-status 24fcc4dba8 example files/scripts for apply-state 2 gadi atpakaļ
ring.py 36cff1c634 backport to panoramisk==1.0 + refactoring 2 gadi atpakaļ
set-light 24fcc4dba8 example files/scripts for apply-state 2 gadi atpakaļ

README.md

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.

So what?

./ring.py --state-file state.json &
./apply-state --devices 1,2