diff --git a/hugvey/central_command.py b/hugvey/central_command.py index 0fd8456..aca3e36 100644 --- a/hugvey/central_command.py +++ b/hugvey/central_command.py @@ -200,9 +200,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 > 60: + if diffs > 120: status['time_since_hugvey_spoke_state'] = 'critical' - elif diffs > 90: + elif diffs > 80: status['time_since_hugvey_spoke_state'] = 'warning' if not hv.story.timer.hasMark('last_speech'): @@ -211,10 +211,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 > 900: + if diffs > 1700: # evLogger.warning("Very long time since audience spoke") status['time_since_visitor_spoke_state'] = 'critical' - elif diffs > 1800: + elif diffs > 900: status['time_since_visitor_spoke_state'] = 'warning' # else: # #clear warning diff --git a/www/timeline.html b/www/timeline.html index 5d95222..9c365a8 100644 --- a/www/timeline.html +++ b/www/timeline.html @@ -136,6 +136,10 @@ font-size: 20pt; display:block; padding: 0 5px; } + +.status-gone .times, .status-blocked .times, .is-available .times{ +display:none; +}