diff options
author | Michael Scherle | 2016-12-02 16:03:39 +0100 |
---|---|---|
committer | Michael Scherle | 2016-12-02 16:03:39 +0100 |
commit | 29bf37442d4a299f0c79b84b40f78bb6258b31c1 (patch) | |
tree | 9dd62d7e4bde79828d05fa88c9933aeb9167d1c3 /modules-available/locationinfo/frontend | |
parent | frontend: implemented autoscaling for days (diff) | |
download | slx-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')
-rwxr-xr-x | modules-available/locationinfo/frontend/doorsign.html | 7 |
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) {
|