From afdc1f860d327ea54c3e807c2b0de3f536607f45 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Wed, 10 Jul 2019 10:59:07 +0200 Subject: [PATCH] Changes for the temp hugveys 27-29 --- README.md | 2 +- hugvey/story.py | 4 ++-- www/js/hugvey_timeline.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d1c5994..69a22e5 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ chown=pi:pi rsync them all ```bash -for i in {1..26}; do echo $i; rsync -av ~/hugvey/ pi@hugvey$i.local:/home/pi/hugvey/ --exclude=www --exclude=venv --exclude=local --exclude=*.pyc --exclude=.git --exclude=recordings --exclude=/voice* --exclude=/pd; done +for i in {1..26}; do echo $i; rsync -av ~/hugvey/ pi@hugvey$i.local:/home/pi/hugvey/ --exclude=www --exclude=venv --exclude=local --exclude=*.pyc --exclude=.git --exclude=recordings --exclude=/voice* --exclude=/pd --exclude=Lanbox; done ``` shut all of them down diff --git a/hugvey/story.py b/hugvey/story.py index d3e09e3..326d291 100644 --- a/hugvey/story.py +++ b/hugvey/story.py @@ -416,7 +416,7 @@ class Condition(object): d = story.get(self.vars['diversionId']) if not d: - story.logger.critical(f"Condition on non-existing diversion: {self.vars['diversionId']}") + story.logger.warning(f"Condition on non-existing diversion: {self.vars['diversionId']}") r = d.hasHit if r: @@ -471,7 +471,7 @@ class Condition(object): self.hasRan = True if len(varValues) < number: - story.logger.info(f"{self.id}: Too few instances of {self.vars['var_name']}") + story.logger.critical(f"{self.id}: Too few instances of {self.vars['var_name']}, only {len(varValues)} in store") return False for i in range(number): diff --git a/www/js/hugvey_timeline.js b/www/js/hugvey_timeline.js index 1020b88..8dc3fbf 100644 --- a/www/js/hugvey_timeline.js +++ b/www/js/hugvey_timeline.js @@ -182,4 +182,4 @@ checkbox.addEventListener('change', (event) => { } } -var tl = new Timeline(ws, document.getElementById('line'), 26); +var tl = new Timeline(ws, document.getElementById('line'), 29);