From 906932c2e8e266503e8924ca0f333d277bbc17af Mon Sep 17 00:00:00 2001 From: Hugvey Central Command Date: Thu, 14 Nov 2019 16:20:48 +0100 Subject: [PATCH] change warning timings --- README.md | 10 ++++++++++ hugvey/.story.py.swp | Bin 1024 -> 0 bytes hugvey/central_command.py | 8 ++++---- 3 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 hugvey/.story.py.swp diff --git a/README.md b/README.md index b70f6c4..989410a 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,16 @@ Run the server: `python hugvey_server.py --config server_config.yml` +To make sure: don't run the server in a screen subterminal, as the amount of output can clog the server + +### Screen commands: + +Set scrollbuffer in `~/.screenrc`: as described [here](https://stackoverflow.com/a/8760452) + +`ctrl+a d`: detach, `ctrl+a esc`: scroll the buffer, `ctrl+a i`: current buffer settings + + + ### Panopticon The server also integrates the _panopticon_, the monitoring & administration interface to Hugvey. diff --git a/hugvey/.story.py.swp b/hugvey/.story.py.swp deleted file mode 100644 index fe62581b9cc0cef488ad08626e649c530184fb93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1024 zcmYc?$V<%2S1{HyVn6}sIT;u-O4G|yD^Y~8av 300: + if diffs > 60: status['time_since_hugvey_spoke_state'] = 'critical' - elif diffs > 100: + elif diffs > 90: status['time_since_hugvey_spoke_state'] = 'warning' if not hv.story.timer.hasMark('last_speech'): @@ -189,10 +189,10 @@ class CentralCommand(object): diff = datetime.timedelta(seconds=int(hv.story.timer.getElapsed('last_speech'))) status['time_since_visitor_spoke'] = str(diff) diffs = diff.total_seconds() - if diffs > 300: + if diffs > 900: # evLogger.warning("Very long time since audience spoke") status['time_since_visitor_spoke'] = 'critical' - elif diffs > 100: + elif diffs > 1800: status['time_since_visitor_spoke'] = 'warning' # else: # #clear warning