change warning timings

This commit is contained in:
Hugvey Central Command 2019-11-14 16:20:48 +01:00
parent d4e3ddfec6
commit 906932c2e8
3 changed files with 14 additions and 4 deletions

View File

@ -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.

Binary file not shown.

View File

@ -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