summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend/doorsign.html
diff options
context:
space:
mode:
authorMichael Scherle2016-12-02 16:03:39 +0100
committerMichael Scherle2016-12-02 16:03:39 +0100
commit29bf37442d4a299f0c79b84b40f78bb6258b31c1 (patch)
tree9dd62d7e4bde79828d05fa88c9933aeb9167d1c3 /modules-available/locationinfo/frontend/doorsign.html
parentfrontend: implemented autoscaling for days (diff)
downloadslx-admin-29bf37442d4a299f0c79b84b40f78bb6258b31c1.tar.gz
slx-admin-29bf37442d4a299f0c79b84b40f78bb6258b31c1.tar.xz
slx-admin-29bf37442d4a299f0c79b84b40f78bb6258b31c1.zip
frontend: fixed all time parameter from config
Diffstat (limited to 'modules-available/locationinfo/frontend/doorsign.html')
-rwxr-xr-xmodules-available/locationinfo/frontend/doorsign.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html
index db86a39b..80189fd8 100755
--- a/modules-available/locationinfo/frontend/doorsign.html
+++ b/modules-available/locationinfo/frontend/doorsign.html
@@ -20,6 +20,7 @@ optional:
rotation:[0-3] rotation of the roomplan
vertical:[true] only mode 1, sets the calendar above the roomplan
configupdate: Time interval the config gets updated (in minutes)
+ scaledaysauto: [true] if true it finds automaticly the daystoshow parameter depending on display size
-->
<!DOCTYPE html>
<html lang="de">
@@ -301,9 +302,9 @@ optional:
lang = json.lang;
daysToShow = parseInt(json.daystoshow);
scaleLayout = parseInt(json.scale);
- switchTime = parseInt(json.switchtime);
- queryTimeCalendar = parseInt(json.calupdate);
- queryTimeRoom = parseInt(json.roomupdate);
+ switchTime = parseInt(json.switchtime) * 1000;
+ queryTimeCalendar = parseInt(json.calupdate) * 60 * 1000;
+ queryTimeRoom = parseInt(json.roomupdate) * 1000;
rotation = parseInt(json.rotation);
if(json.scaleDaysAuto!=null) {