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 fe62581..0000000 Binary files a/hugvey/.story.py.swp and /dev/null differ diff --git a/hugvey/central_command.py b/hugvey/central_command.py index 5409d7d..ae229c6 100644 --- a/hugvey/central_command.py +++ b/hugvey/central_command.py @@ -178,9 +178,9 @@ class CentralCommand(object): diff = datetime.timedelta(seconds=int(hv.story.timer.getElapsed() - hv.story.lastMsgFinishTime)) status['time_since_hugvey_spoke'] = str(diff) diffs = diff.total_seconds() - if diffs > 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