Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Introduction screens, settings updated, style fixes, lightning removed

Robin9845dcaf924e
diff --git a/frontend/api/settings/current/get_current_settings.json b/frontend/api/settings/current/get_current_settings.json
index 6ddf60789..b4c6f8daf 100644
--- a/frontend/api/settings/current/get_current_settings.json
+++ b/frontend/api/settings/current/get_current_settings.json
@@ -1,6 +1,7 @@
{
"user_id": "1",
- "menu" : ["Home","Light","Start","Safety","Climate"],
+ "appartment_name": "253",
+ "menu" : ["Home","Start","Safety","Climate"],
"current_scene": {
"label": "Evening",
"smart": {
@@ -11,14 +12,14 @@
"climate": "false"
},
"start_devices": [
- {"label":"Dishwasher", "time": "15:30", "status": "false"},
- {"label":"Washer ", "time": "12:30", "status": "true"},
- {"label":"Dryer ", "time": "12:30", "status": "true"}
+ {"label":"Dishwasher", "time": "15:30"},
+ {"label":"Washer ", "time": "12:30"},
+ {"label":"Dryer ", "time": "12:30"}
],
"energy" : {"usage": "0.9", "main_power": "0", "solar": "0.9"},
"alarm": "true",
"temperature_actual": {
- "living_room": "18.0",
+ "living_room": "18",
"bedroom" : "20.5",
"bathroom": "18.1"
},
@@ -30,7 +31,7 @@
"ventilation": "Low"
},
"scenes":{
- "header":["Climate","Home","Away","Evening","Night"],
+ "header":["Climate","Home","Away","Eve","Night"],
"data":[
["Living","21", "19", "22", "18"],
["Bed","21", "19", "22", "18"],
@@ -38,13 +39,13 @@
]
},
"alarms":{
- "header":["Alarm","Home","Away","Evening","Night"],
+ "header":["Alarm","Home","Away","Eve","Night"],
"data":[
- ["Arm","true", "false", "false", "false"]
+ [" ","on", "off", "on", "off"]
]
},
"predicted_schedule":{
- "header":["","Home","Away","Evening","Night"],
+ "header":["","Home","Away","Eve","Night"],
"data":[
["Mon","09:00", "10:00", "17:00", "23:00"],
["Tue","09:00", "10:00", "17:00", "23:00"],
diff --git a/frontend/images/panel/energy_no_battery.png b/frontend/images/panel/energy_no_battery.png
index 95f7250b7..1d522e134 100644
Binary files a/frontend/images/panel/energy_no_battery.png and b/frontend/images/panel/energy_no_battery.png differ
diff --git a/frontend/index.html b/frontend/index.html
index cd0648617..aae42d144 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -6,10 +6,13 @@
<title>Blok 61</title>
<meta charset="utf-8">
+ <link href="images/blok61_icon.png" rel="apple-touch-icon" />
+ <link href="images/blok61_icon.png" rel="icon" sizes="128x128" />
+
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
-
- <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
+ <link rel="stylesheet" type="text/css" href="css/style.css">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1, user-scalable=no">
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="src/openremote-app.html">
@@ -34,6 +37,9 @@
a {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
+ .height-100{
+ height: 100%;
+ }
.paper-toggle-button-0[checked]:not([disabled]) .toggle-bar.paper-toggle-button{
opacity: 1;
}
diff --git a/frontend/src/components/input-dropdown.html b/frontend/src/components/input-dropdown.html
index 75d1f9552..f9d360502 100644
--- a/frontend/src/components/input-dropdown.html
+++ b/frontend/src/components/input-dropdown.html
@@ -3,52 +3,46 @@
<link rel="import" href="../../bower_components/paper-dropdown-menu/paper-dropdown-menu.html">
</head><body><dom-module id="input-dropdown" attributes={"data", "active"}>
<template>
- <style type="text/css">
- paper-dropdown-menu.custom{
+ <style type="text/css">
+ .dropdown-select{
+ color:#FFFFFF;
+ font-weight: 100;
+ font-family: 'Roboto', sans-serif;
+ font-size:15px;
background-color: #374c4f;
- }
+ border-radius: 0;
+ border:0;
- paper-dropdown-menu.custom{
- width:80px;
- }
- .paper-input{
- padding:0;
- }
- paper-dropdown-menu.custom > ::content paper-input-container{
- padding:0;
- margin:5px 0;
- }
- paper-dropdown-menu.custom > ::content .floated-label-placeholder{
- display: none;
- }
- paper-dropdown-menu.custom > ::content .label-and-input-container input{
- text-align: center;
- }
- paper-dropdown-menu.custom {
- --paper-input-container-input: {
- color:#FFFFFF;
- }
- --paper-input-container-label: {
- display:none;
- }
- --paper-input-container-underline: {
- border-color:transparent;
- }
+ font-size:15px;
+ padding: 5px 0 5px 10px;
+ min-width:80px;
- --paper-input-container-focus-color:{
- color:transparent;
- border-color:transparent;
+ text-align: center;
+ text-align: -webkit-center;
+ text-align-last:center;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
}
+
+ .dropdown-select{
+ }
};
+
</style>
- <paper-dropdown-menu class="custom">
+<!-- <paper-dropdown-menu class$="custom {{size}}">
<paper-listbox class="dropdown-content" attr-for-selected="label" selected="{{active}}">
- <template is="dom-repeat" items="{{data}}">
- <paper-item label="{{item}}" >{{item}}</paper-item>
+ <template is="dom-repeat" items="{{data}}">
+ <paper-item label="{{item}}" class="celsius">{{item}}</paper-item>
</template>
</paper-listbox>
- </paper-dropdown-menu>
+ </paper-dropdown-menu> -->
+ <select class$="dropdown-select {{size}}">
+ <template is="dom-repeat" items="{{data}}">
+ <option value="{{item}}">{{item}}</option>
+ </template>
+ </select>
</template>
<script>Polymer({is:"input-dropdown"});</script>
diff --git a/frontend/src/components/input-switch-blok.html b/frontend/src/components/input-switch-blok.html
index 61ddbc871..aa10ff140 100644
--- a/frontend/src/components/input-switch-blok.html
+++ b/frontend/src/components/input-switch-blok.html
@@ -6,8 +6,8 @@
paper-radio-group.square-group{
position:relative;
display:block;
- height: 220px;
- margin: 20px auto;
+ height: 240px;
+ margin: 0 auto;
width:240px;
}
paper-radio-button{
diff --git a/frontend/src/components/input-temperature.html b/frontend/src/components/input-temperature.html
index 16da646f0..daba6a1c2 100644
--- a/frontend/src/components/input-temperature.html
+++ b/frontend/src/components/input-temperature.html
@@ -4,66 +4,56 @@
</head><body><dom-module id="input-temperature" attributes={"size", "active", "data"}>
<template>
<style type="text/css">
- paper-dropdown-menu.custom{
+ .dropdown-select{
+ color:#FFFFFF;
+ font-weight: 100;
+ font-family: 'Roboto', sans-serif;
+ font-size:15px;
background-color: #374c4f;
- }
+ border-radius: 0;
+ border:0;
- paper-dropdown-menu.custom.small{
- width:80px;
- }
- .paper-input{
- padding:0;
- }
+ font-size:15px;
+ padding:5px 0 5px 10px;
+ min-width:80px;
- paper-dropdown-menu.custom.small > ::content paper-input-container{
- padding:0;
- margin:5px 0;
- }
- paper-dropdown-menu.custom > ::content .floated-label-placeholder{
- display: none;
- }
- paper-dropdown-menu.custom > ::content .label-and-input-container input{
text-align: center;
- }
- paper-dropdown-menu.custom.large > ::content .label-and-input-container input{
- font-size:42px;
- }
- paper-dropdown-menu.custom.large{
- padding:30px 20px;
- }
+ text-align: -webkit-center;
+ text-align-last:center;
- paper-dropdown-menu.custom {
- --paper-input-container-input: {
- color:#FFFFFF;
- }
- --paper-input-container-label: {
- display:none;
- }
- --paper-input-container-label:after {
- content: "\00b0"
-
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
}
- --paper-input-container-underline: {
- border-color:transparent;
+ .dropdown-select.large{
+ display:flex;
+ height:100px;
+ min-width:120px;
+ margin-left:auto;
+ padding:0 30px;
+ font-size:28px;
+ }
+ .dropdown-select.large option{
+ font-size:24px;
}
-
- --paper-input-container-focus-color:{
- color:transparent;
- border-color:transparent;
- }
.celsius:after{
content: "\00b0"
}
};
</style>
- <paper-dropdown-menu class$="custom {{size}}">
+<!-- <paper-dropdown-menu class$="custom {{size}}">
<paper-listbox class="dropdown-content" attr-for-selected="label" selected="{{active}}">
<template is="dom-repeat" items="{{data}}">
<paper-item label="{{item}}" class="celsius">{{item}}</paper-item>
</template>
</paper-listbox>
- </paper-dropdown-menu>
+ </paper-dropdown-menu> -->
+ <select class$="dropdown-select {{size}}">
+ <template is="dom-repeat" items="{{data}}">
+ <option value="{{item}}" class="celsius">{{item}}</option>
+ </template>
+ </select>
</template>
<script>Polymer({is:"input-temperature"});</script>
diff --git a/frontend/src/components/table-schedule-edit.html b/frontend/src/components/table-schedule-edit.html
index 17fed9b8b..0f697e3a2 100644
--- a/frontend/src/components/table-schedule-edit.html
+++ b/frontend/src/components/table-schedule-edit.html
@@ -10,31 +10,46 @@
border-spacing:0px;
border-bottom: 1px solid #e4e4e4;
border-right: 1px solid #e4e4e4;
- font-weight: normal;
text-align: center;
+
+ font-size:15px;
+ font-weight: 100;
}
th {
background-color: #c0d62e;
color: white;
padding:5px 0;
}
+ input[type="time"]{
+ padding:0;
+ max-width:60px;
+ min-width:0;
+ }
th:first-child{
color:#000000;
background-color: #FFFFFF;
- display:none;
}
td:first-child{
background-color:#e4e4e4;
border-bottom: 1px solid #FFFFFF;
padding:10px 0;
- display:none;
}
input[type="time"]{
- background-color: transparent;
- border:0;
+ background-color: #374c4f;
+ color:#FFFFFF;
+ border:0;
+ border-radius: 0;
font-family: 'Roboto', sans-serif;
- font-size:16px;
- line-height:30px;
+ font-weight:100;
+ font-size:15px;
+ text-align: center;
+ text-align: -webkit-center;
+ text-align-last:center;
+
+
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
}
</style>
<table style="width: 100%" border="0">
@@ -47,7 +62,12 @@
<template is="dom-repeat" items="{{data}}">
<tr>
<template is="dom-repeat" items="{{item}}">
- <td><input type="time" value="{{item}}"></td>
+ <template is="dom-if" if="[[isFirst(index)]]">
+ <td>{{item}}</td>
+ </template>
+ <template is="dom-if" if="[[isNotFirst(index)]]">
+ <td><input type="time" value="{{item}}"></td>
+ </template>
</template>
</tr>
</template>
@@ -57,11 +77,18 @@
<script>Polymer({
is:"table-schedule-edit",
- hideFirst: function(i){
- if(1 != index)
+ isFirst: function(i){
+ if(0 == i)
+ { return true; }
+ else
+ { return false; }
+ },
+ isNotFirst: function(i){
+ if(0 != i)
{ return true; }
else
{ return false; }
}
+
});</script>
</dom-module></body></html>
\ No newline at end of file
diff --git a/frontend/src/components/table-schedule.html b/frontend/src/components/table-schedule.html
index a4370450e..a2e4eecf3 100644
--- a/frontend/src/components/table-schedule.html
+++ b/frontend/src/components/table-schedule.html
@@ -10,14 +10,17 @@
border-spacing:0px;
border-bottom: 1px solid #e4e4e4;
border-right: 1px solid #e4e4e4;
- font-weight: normal;
text-align: center;
+
+ font-size:15px;
+ font-weight: 100;
}
th {
background-color: #c0d62e;
color: white;
padding:5px 0;
}
+
th:first-child{
color:#000000;
background-color: #FFFFFF;
diff --git a/frontend/src/components/template-scenes-input.html b/frontend/src/components/template-scenes-input.html
index 311702c4f..082cc5307 100644
--- a/frontend/src/components/template-scenes-input.html
+++ b/frontend/src/components/template-scenes-input.html
@@ -6,9 +6,13 @@
}
.small {
--iron-icon-height: auto;
- --iron-icon-width: 15px;
+ --iron-icon-width: 14px;
+ margin:0 7px;
+ }
+ .small_height{
+ --iron-icon-height: auto;
+ --iron-icon-width: 28px;
}
-
.container {
position: relative;
display: flex;
@@ -19,10 +23,14 @@
padding: 10px;
flex: 1;
}
+ .container{
+ margin:15px 0;
+ }
+ .temp-icon{
+ }
.container-column {
box-sizing: border-box;
- padding: 0 5px;
- height:60px;
+ padding: 0 0 0 5px;
}
.container-column:first-child{
padding-right:20px;
@@ -36,34 +44,34 @@
</style>
<div class="container">
<div class="container-column">
- <iron-icon class="small" src="../../images/panel/temperature_gauge_100.png"></iron-icon>
+ <iron-icon class="temp-icon" src="../../images/panel/temperature.png"></iron-icon>
</div>
<div class="container-column">Living Room</div>
<div class="container-column">
- <input-temperature size="small"></input-temperature>
+ <input-temperature data="{{temperatures}}" size="small"></input-temperature>
</div>
</div>
<div class="container">
<div class="container-column">
- <iron-icon class="small" src="../../images/panel/temperature_gauge_100.png"></iron-icon>
+ <iron-icon class="temp-icon" src="../../images/panel/temperature.png"></iron-icon>
</div>
<div class="container-column">Bedroom</div>
<div class="container-column">
- <input-temperature size="small"></input-temperature>
+ <input-temperature data="{{temperatures}}" size="small"></input-temperature>
</div>
</div>
<div class="container">
<div class="container-column">
- <iron-icon class="small" src="../../images/panel/temperature_gauge_100.png"></iron-icon>
+ <iron-icon class="temp-icon" src="../../images/panel/temperature.png"></iron-icon>
</div>
<div class="container-column">Bathroom</div>
<div class="container-column">
- <input-temperature size="small"></input-temperature>
+ <input-temperature data="{{temperatures}}" size="small"></input-temperature>
</div>
</div>
<div class="container">
<div class="container-column">
- <iron-icon class="small" src="../../images/panel/alarm_off.png"></iron-icon>
+ <iron-icon class="small_height" src="../../images/panel/alarm_off.png"></iron-icon>
</div>
<div class="container-column">Alarm</div>
<div class="container-column">
@@ -72,5 +80,13 @@
</div>
</template>
- <script>Polymer({is:"template-scenes-input"});</script>
+ <script>Polymer({
+ is:"template-scenes-input",
+ properties: {
+ temperatures: Array
+ },
+ attached: function() {
+ this.temperatures = ["17.0","17.5","18.0","18.5","19.0","19.5","20.0","20.5","21.0","21.5","22.0","22.5","23.0","23.5","24.0","24.5","25.0"];
+ }
+ });</script>
</dom-module></body></html>
\ No newline at end of file
diff --git a/frontend/src/openremote-app.html b/frontend/src/openremote-app.html
index 2c914810b..d8cf19392 100644
--- a/frontend/src/openremote-app.html
+++ b/frontend/src/openremote-app.html
@@ -6,6 +6,7 @@
<link rel="import" href="../bower_components/app-route/app-location.html">
<link rel="import" href="../bower_components/app-route/app-route.html">
+<link rel="import" href="../bower_components/iron-swiper/iron-swiper.html">
<link rel="import" href="../bower_components/iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../bower_components/iron-icons/iron-icons.html">
<link rel="import" href="../bower_components/iron-media-query/iron-media-query.html">
@@ -24,8 +25,11 @@
<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html">
<link rel="import" href="../bower_components/paper-styles/color.html">
+<link rel="import" href="../bower_components/paper-date-picker/paper-date-picker.html">
+
<link rel="import" href="openremote-login.html">
<link rel="import" href="openremote-intro.html">
+<link rel="import" href="openremote-wizard.html">
<link rel="import" href="components/input-temperature.html">
<link rel="import" href="components/input-dropdown.html">
<link rel="import" href="components/input-switch-blok.html">
@@ -39,203 +43,7 @@
<iron-ajax auto url="../../../api/settings/current/get_current_settings.json" on-response="handleResponse" handle-as="json"></iron-ajax>
<style>
- a{
- color:#FFFFFF;
- text-decoration: none;
- font-weight: 100;
- font-family: 'Roboto', sans-serif;
- font-size:16px;
- }
- app-drawer-layout{
- position: relative;
- z-index: 9999;
-
- }
- app-toolbar {
- background-color: #374c4f;
- color:#FFFFFF;
- }
- .header-layout{
- z-index:999;
- }
- .main-header {
- box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.4);
- }
- .page-overlay{
- position: absolute;
- width:100%;
- height:100%;
- top:0;
- z-index: 999999;
- }
- .page-overlay-inner{
- background-color: #f2f2f2;
- top:0;
- width:100%;
- height:100%;
- position: absolute;
- overflow-y:scroll;
- }
-
- paper-tabs {
- --paper-tabs-selection-bar-color: #c0d62e;
- color:black;
- background-color: rgba(255,255,255,1);
- height:54px;
- }
- input[type="time"]{
- background-color: transparent;
- border:0;
- font-family: 'Roboto', sans-serif;
- font-size:16px;
- line-height:30px;
- }
-
- paper-tab {
- --paper-tab-ink: #c0d62e;
- }
- [hidden] {
- display: none !important;
- }
- paper-toggle-button.green {
- margin-left: auto;
- float: right;
- opacity:1;
- --paper-toggle-button-checked-bar-color: #374c4f;
- --paper-toggle-button-checked-button-color: #c0d62e;
- --paper-toggle-button-checked-ink-color: #374c4f;
- }
- paper-toggle-button.center.green {
- float:none;
- margin:auto;
- }
- .panel{
- background-color:rgba(255,255,255,0.87);
- margin:10px;
- border-radius: 5px;
- }
- .panel.transparent{
- background-color: transparent;
- }
- .inner-panel{
- padding:15px;
- }
- .small {
- --iron-icon-height: auto;
- --iron-icon-width: 15px;
- }
- .normal {
- --iron-icon-height: 30px;
- --iron-icon-width: 30px;
- }
- .normal > ::content img {
- width:auto!important;
- }
- .big {
- --iron-icon-height: auto;
- --iron-icon-width: 72px;
- margin:auto;
- display: block;
- }
- .background-image{
- background-repeat: no-repeat;
- background-position: center;
- background-size:120px auto;
- }
- .panel paper-toggle-button{
- margin:5px 0 0 0;
- }
- .panel .row span{
- margin-left: 20px;
- }
- .center{
- text-align: center;
- margin: auto;
- display: block;
- }
- .right{
- float:right;
- }
- .row{
- width:100%;
- margin:10px 0;
- clear:both;
- }
- .container {
- @apply(--layout-horizontal);
- }
- .container {
- margin:25px 0;
- position: relative;
- display: flex;
- flex-flow: row wrap;
- }
- .container.no-margin {
- margin:0;
- }
- .item {
- box-sizing: border-box;
- padding: 10px;
- flex: 1;
- }
- .container-column {
- box-sizing: border-box;
- padding: 0 5px;
- line-height:30px;
- }
-
- .container-column:first-child{
- padding-right:20px;
- }
-
- .container-column:nth-child(2){
- width:30%;
- }
- .container-column.col_2:nth-child(2){
- width:50%;
- }
- .container-column-3{
- width:33.3%;
- }
- .container-column span{
- line-height:30px;
- }
- .container-column:last-child{
- margin-left: auto;
- }
- .celsius:after{
- content: "\00b0"
- }
- #settings-btn{
- color:#FFFFFF;
- }
- .tab-link{
- text-decoration: none;
- color:#000000;
- display: flex;
- font-weight: normal;
- -ms-flex-direction: row;
- -webkit-flex-direction: row;
- flex-direction: row;
- -ms-flex-align: center;
- -webkit-align-items: center;
- align-items: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
- -ms-flex: 1 1 auto;
- -webkit-flex: 1 1 auto;
- flex: 1 1 auto;
-
- }
- .full_width{
- margin-top:20px;
- width:100%;
- }
- .bg-darkgreen{
- background-color: #374c4f;
- }
- }
+
</style>
<app-location use-hash-as-path route="{{route}}"></app-location>
<app-route
@@ -247,8 +55,8 @@
<app-header-layout class="header-layout">
<app-header id="header" effects="waterfall" fixed="">
- <app-toolbar>
- <div main-title="">Smart 61</div>
+ <app-toolbar class="app-toolbar-custom">
+ <div main-title=""><img height="20px" style="margin-top:5px;" src="/images/blok61_logo.png"/></div>
<a id="settings-btn" href="#/Settings">
<paper-icon-button icon="settings"></paper-icon-button>
</a>
@@ -256,7 +64,7 @@
<paper-tabs selected="[[routeData.view]]" attr-for-selected="name" autoselect autoselect-delay="1000">
<template is="dom-repeat" items="{{data.menu}}">
- <paper-tab name="{{item}}"><a class="tab-link" href="#/{{item}}">{{item}}</a></paper-tab>
+ <paper-tab name="{{item}}" link><a class="tab-link" href="#/{{item}}">{{item}}</a></paper-tab>
</template>
</paper-tabs>
@@ -265,8 +73,8 @@
<iron-pages id="pages" selected="[[routeData.view]]" attr-for-selected="name" fallback-selection="Login">
<div name="Login" class="page-overlay" route="{{subroute}}">
<div class="page-overlay-inner">
- <app-toolbar>
- <div main-title="">Smart 61</div>
+ <app-toolbar class="app-toolbar-custom">
+ <div main-title=""><img height="20px" style="margin-top:5px;" src="/images/blok61_logo.png"/></div>
</app-toolbar>
<div class="panel">
<div class="inner-panel">
@@ -275,14 +83,22 @@
</div>
</div>
</div>
- <div name="Intro" class="page-overlay" route="{{subroute}}">
+ <div name="Intro" class="page-overlay" route="{{subroute}}">
+ <div class="page-overlay-inner">
+ <app-toolbar class="app-toolbar-custom" style="z-index:99;position:relative;">
+ <div main-title="">Introduction</div>
+ </app-toolbar>
+ <openremote-intro class="height-100"></openremote-intro>
+ </div>
+ </div>
+ <div name="Wizard" class="page-overlay" route="{{subroute}}">
<div class="page-overlay-inner">
- <app-toolbar>
+ <app-toolbar class="app-toolbar-custom">
<paper-icon-button class="back-btn" icon="arrow-back" drawer-toggle=""></paper-icon-button>
- <div main-title="">Smart 61</div>
+ <div main-title="">Scene Wizard</div>
</app-toolbar>
<div class="panel transparent">
- <openremote-intro></openremote-intro>
+ <openremote-wizard></openremote-wizard>
</div>
</div>
</div>
@@ -293,7 +109,7 @@
<div class="container-column">
<iron-icon class="normal" src="../images/panel/star.png"></iron-icon>
</div>
- <div class="container-column col_2">Full Smart 61</div>
+ <div class="container-column col_2">Full Smart</div>
<div class="container-column">
<paper-toggle-button data-target="smart.fullsmart" checked="[[checkStatus(data.current_scene.smart.fullsmart)]]" class="green"></paper-toggle-button>
</div>
@@ -302,7 +118,6 @@
</div>
<div class="panel">
<div class="inner-panel">
- <label class="center">Scenes</label>
<input-switch-blok active="{{data.current_scene.label}}"></input-switch-blok>
</div>
</div>
@@ -314,7 +129,7 @@
<div class="container-column">
<iron-icon class="normal" src="../images/panel/light_on.png"></iron-icon>
</div>
- <div class="container-column col_2">Smart 61 - Lighting</div>
+ <div class="container-column col_2">Smart Lighting</div>
<div class="container-column">
<paper-toggle-button data-target="smart.light" checked="[[checkStatus(data.current_scene.smart.light)]]" class="green"></paper-toggle-button>
</div>
@@ -323,7 +138,7 @@
</div>
<div class="panel">
<div class="inner-panel">
- <label class="center" id="lightning">Lights</label>
+ <img style="width:100%;" src="../images/lighting.png"/>
</div>
</div>
</div>
@@ -334,7 +149,7 @@
<div class="container-column">
<iron-icon class="normal" src="../images/panel/home_on.png"></iron-icon>
</div>
- <div class="container-column col_2">Smart - Smart Start</div>
+ <div class="container-column col_2">Smart Start</div>
<div class="container-column">
<paper-toggle-button data-target="smart.start" checked="[[checkStatus(data.current_scene.smart.start)]]" class="green"></paper-toggle-button>
</div>
@@ -343,9 +158,8 @@
</div>
<div class="panel">
<div class="inner-panel">
- <span class="center">Smart Start Devices</span>
<template is="dom-repeat" index="i" items="{{data.current_scene.start_devices}}">
- <div class="container">
+ <div class="container no-margin-bottom">
<div class="container-column">
<iron-icon class="normal" src="../images/panel/home_on.png"></iron-icon>
</div>
@@ -353,13 +167,11 @@
<div class="container-column">
<span>{{item.label}}</span>
</div>
- <div class="container-column">
- <template is="dom-if" if="[[checkStatus(item.status)]]">
- <input type="time" value="{{item.time}}">
- </template>
+ <div class="container-column" style="margin-right: 10px; margin-left: auto;width:33px;height:33px; background-color:grey; font-size:11px;">
+ <span class="t-white" style="font-weight:100;line-height:normal;text-align:center;display: block;">Nu aan</span>
</div>
- <div class="container-column">
- <paper-toggle-button data-target="start_devices.1.status" checked="[[checkStatus(item.status)]]" class="green"></paper-toggle-button>
+ <div class="container-column" style="margin-left:0px;">
+ <input type="time" value="{{item.time}}">
</div>
</div>
</template>
@@ -368,18 +180,28 @@
<div class="panel">
<div class="inner-panel">
- <span class="center">Energy Monitor</span>
<div class="row background-image" style="background-image: url(../images/panel/energy_no_battery.png);">
<div class="container">
<div class="row">
- <div class="container-column-3 right">{{data.current_scene.energy.solar}}kW<div>Solar & Battery</div></div>
- </div>
- <div class="row">
- <div class="container-column-3 center">{{data.current_scene.energy.usage}}kW<div>Usage</div></div>
+
+ <div class="container-column t-grey" style="margin-left:38px;position: absolute; margin-top: 52px;">
+ <div class="t-black">+12%</div>Green
+ </div>
+
+ <div class="container-column right t-grey">
+ <div class="row">
+ <div class="t-black"><span class="t-grey">Solar & Battery </span><span style="float:right;margin-right:0px;">{{data.current_scene.energy.solar}}kW</span></div>
+ </div>
+ <div class="row" style="width:87%;height:5px; background-color:#c0d62e;">
+ </div>
+ <div class="row" style="width:17%;height:5px; background-color:grey;">
+ </div>
+ <div class="row">
+ <div class="t-black"><span class="t-grey">Main Power</span><span style="float:right;margin-right:0px;">{{data.current_scene.energy.usage}}kW</span></div>
+ </div>
</div>
- <div class="row">
- <div class="container-column-3">{{data.current_scene.energy.main_power}}kW<div>Mains power</div></div>
</div>
+
</div>
</div>
</div>
@@ -393,7 +215,7 @@
<div class="container-column">
<iron-icon class="normal" src="../images/panel/alarm_large_off.png"></iron-icon>
</div>
- <div class="container-column col_2">Smart 61 - Safety</div>
+ <div class="container-column col_2">Smart Safety</div>
<div class="container-column">
<paper-toggle-button data-target="smart.safety" checked="[[checkStatus(data.current_scene.smart.safety)]]" class="green"></paper-toggle-button>
</div>
@@ -402,10 +224,42 @@
</div>
<div class="panel">
<div class="inner-panel">
- <span class="center">Alarm</span>
- <div class="row">
- <iron-icon class="big" src="../images/panel/alarm_large_off.png"></iron-icon>
- <paper-toggle-button data-target="alarm" checked="[[checkStatus(data.current_scene.alarm)]]" class="green center"></paper-toggle-button>
+ <div class="container">
+ <div class="container-column">
+ <iron-icon class="large" src="../images/panel/alarm_large_off.png"></iron-icon>
+ </div>
+ <div class="container-column col_2" style="margin-top: 10px;" >Alarm <div class="t-grey">Activity</div></div>
+ <div class="container-column">
+ <paper-toggle-button data-target="alarm" style="margin-top: 28px;" checked="[[checkStatus(data.current_scene.alarm)]]" class="green center"></paper-toggle-button>
+ </div>
+ </div>
+ <div class="container">
+ <div class="container-column">
+ <iron-icon class="normal" src="../images/panel/alarm_small_eye.png"></iron-icon>
+ </div>
+ <div class="container-column col_2">Living Room</div>
+ <div class="container-column t-grey">Activity</div>
+ </div>
+ <div class="container">
+ <div class="container-column">
+ <iron-icon class="normal" src="../images/panel/alarm_small_eye.png"></iron-icon>
+ </div>
+ <div class="container-column col_2">Hallway</div>
+ <div class="container-column t-grey">No Activity</div>
+ </div>
+ <div class="container">
+ <div class="container-column">
+ <iron-icon class="normal" src="../images/panel/alarm_small_eye.png"></iron-icon>
+ </div>
+ <div class="container-column col_2">Bedroom</div>
+ <div class="container-column t-grey">No Activity</div>
+ </div>
+ <div class="container">
+ <div class="container-column">
+ <iron-icon class="normal" src="../images/panel/alarm_small_eye.png"></iron-icon>
+ </div>
+ <div class="container-column col_2">Bathroom</div>
+ <div class="container-column t-grey">No Activity</div>
</div>
</div>
</div>
@@ -416,9 +270,9 @@
<div class="inner-panel">
<div class="container no-margin">
<div class="container-column">
- <iron-icon class="normal" src="../images/panel/temperature_gauge_100.png"></iron-icon>
+ <iron-icon class="normal temp-icon" src="../images/panel/temperature.png"></iron-icon>
</div>
- <div class="container-column col_2">Smart 61 - Climate</div>
+ <div class="container-column col_2">Smart Climate</div>
<div class="container-column">
<paper-toggle-button data-target="smart.climate" checked="[[checkStatus(data.current_scene.smart.climate)]]" class="green"></paper-toggle-button>
</div>
@@ -427,117 +281,138 @@
</div>
<div class="panel">
<div class="inner-panel">
- <span class="center">Heating</span>
<div class="container">
- <div class="item"><span style="float:left">Living Room</span><span style="font-size:62px" class="celsius">{{data.current_scene.temperature_actual.living_room}}</span></div>
- <div class="item">
+ <div class="container-column">
+ <span style="display:block;">Living Room</span>
+ <span style="margin-top:20px;font-size:62px;display:block;" class="t-grey celsius">{{data.current_scene.temperature_actual.living_room}}</span>
+ </div>
+ <div class="container-column margin-left-auto">
<input-temperature size="large" data="{{temperatures}}" active="{{data.current_scene.temperature_program.living_room}}"></input-temperature>
</div>
</div>
- </div>
- </div>
- <div class="panel">
- <div class="inner-panel">
- <span class="center">Heating scenes</span>
- <div class="container">
+ <div class="container">
<div class="container-column">
- <iron-icon class="small" src="../images/panel/temperature_gauge_100.png"></iron-icon>
+ <iron-icon class="small temp-icon" src="../images/panel/temperature.png"></iron-icon>
</div>
<div class="container-column">Bedroom</div>
- <div class="container-column celsius">{{data.current_scene.temperature_actual.bedroom}}</div>
+ <div class="container-column celsius margin-left-auto t-grey">{{data.current_scene.temperature_actual.bedroom}}</div>
<div class="container-column">
<input-temperature size="small" data="{{temperatures}}" active="{{data.current_scene.temperature_program.bedroom}}"></input-temperature>
</div>
</div>
<div class="container">
<div class="container-column">
- <iron-icon class="small" src="../images/panel/temperature_gauge_100.png"></iron-icon>
+ <iron-icon class="small temp-icon" src="../images/panel/temperature.png"></iron-icon>
</div>
<div class="container-column">Bathroom</div>
- <div class="container-column celsius">{{data.current_scene.temperature_actual.bathroom}}</div>
+ <div class="container-column celsius margin-left-auto t-grey">{{data.current_scene.temperature_actual.bathroom}}</div>
<div class="container-column">
<input-temperature size="small" data="{{temperatures}}" active="{{data.current_scene.temperature_program.bathroom}}"></input-temperature>
</div>
</div>
</div>
- </div>
+ </div>
+
<div class="panel">
<div class="inner-panel">
- <span class="center">Ventilation</span>
-
<div class="container">
<div class="container-column">
<iron-icon class="normal" src="../images/panel/ventilation.png"></iron-icon>
</div>
- <div class="container-column col_2">Air flow speed</div>
+ <div class="container-column col_2">Ventilation</div>
<div class="container-column">
<input-dropdown data="{{ventilation_options}}" active="{{data.current_scene.ventilation}}"></input-dropdown>
</div>
- </div>
+ </div>
</div>
</div>
</div>
<div name="Settings" class="page-overlay" route="{{subroute}}">
<div class="page-overlay-inner">
- <app-toolbar>
+ <app-toolbar class="app-toolbar-custom">
<paper-icon-button class="back-btn" icon="arrow-back" drawer-toggle=""></paper-icon-button>
- <div main-title="">Smart 61</div>
+ <div main-title="">Settings</div>
<a href="#/Login" on-click="logOut" class="right">Log out</a>
</app-toolbar>
<div class="panel">
- <div class="inner-panel" on-click="toggleVacation">
- <span class="center">Vacation Settings</span>
+ <div class="inner-panel-10">
+ <span class="center" on-click="toggleVacation">Vacation</span>
<iron-collapse id="collapseVacation">
- <p>Vacation</p>
+ <div class="container">
+ <div class="container-column col_2">On vacation until</div>
+ <div class="container-column col_2">
+ <input id="vacation_date" type="date" class="bg-darkgreen"/>
+ </div>
+
+ </div>
</iron-collapse>
</div>
</div>
<div class="panel">
- <div class="inner-panel" on-click="toggleWeek">
- <span class="center">Predicted Week Schedule:</span>
+ <div class="inner-panel-10">
+ <span class="center" on-click="toggleWeek">Presence schedule</span>
<iron-collapse id="collapseWeek">
- <table-schedule data="{{data.predicted_schedule.data}}" header="{{data.predicted_schedule.header}}"></table-schedule>
- <a class=""><paper-button class="bg-darkgreen" onclick="actions.open()">EDIT</paper-button></a>
+ <div class="container"><span>Self Learning</span><paper-toggle-button data-target="" style="margin-left:auto;" class="green"></paper-toggle-button></div>
+
+ <table-schedule-edit data="{{data.predicted_schedule.data}}" header="{{data.predicted_schedule.header}}"></table-schedule-edit>
+ <div class="row">
+ <div style="width: 178px; display: flex; margin-left: auto;" >
+ <paper-button class="paper-button-default" onclick="">CANCEL</paper-button>
+ <paper-button class="bg-darkgreen t-white paper-button-default" onclick="">SAVE</paper-button>
+ </div>
+ </div>
</iron-collapse>
</div>
</div>
<div class="panel">
- <div class="inner-panel" on-click="toggleScenes">
- <span class="center">Scene settings</span>
+ <div class="inner-panel-10">
+ <span class="center" on-click="toggleScenes">Scenes</span>
<iron-collapse id="collapseScenes">
- <div class="row">
- <a href="#/Intro"><paper-button class="full_width bg-darkgreen">Scene Wizard</paper-button></a>
- </div>
<div class="row">
- <table-toggles data="{{data.alarms.data}}" header="{{data.alarms.header}}"></table-toggles>
+ <table-schedule data="{{data.alarms.data}}" header="{{data.alarms.header}}"></table-toggles>
</div>
<div class="row">
<table-schedule data="{{data.scenes.data}}" header="{{data.scenes.header}}"></table-schedule>
</div>
+ <div class="row">
+ <a href="#/Wizard"><paper-button style="margin:0;" class="full_width bg-darkgreen paper-button-default">Scene Wizard</paper-button></a>
+ </div>
</div>
</iron-collapse>
</div>
- </div>
- <paper-dialog id="scrolling">
-
- <table-schedule data="{{data.predicted_schedule.data}}" header="{{data.predicted_schedule.header}}"></table-schedule>
- <div class="buttons">
- <paper-button dialog-dismiss>Cancel</paper-button>
- <paper-button dialog-confirm autofocus>OK</paper-button>
- </div>
- </paper-dialog>
-
- <paper-dialog id="actions" withBackdrop>
- <table-schedule-edit data="{{data.predicted_schedule.data}}" header="{{data.predicted_schedule.header}}"></table-schedule-edit>
- <div class="buttons">
- <paper-button dialog-dismiss>Cancel</paper-button>
- <paper-button dialog-confirm autofocus>Save</paper-button>
+ <div class="panel" style="background-color:transparent;">
+ <div class="inner-panel">
+ <p class="center" style="color:rgba(0,0,0,0.57);font-weight:100;font-size:13px;">Blok 61 - Appartement 235</p>
</div>
- </paper-dialog>
+ </div>
+ </div>
</div>
</iron-pages>
-
+ <paper-dialog id="dialog_date" class="paper-date-picker-dialog" with-backdrop
+ on-iron-overlay-closed="dismissDialog">
+ <paper-date-picker id="picker" date="[[date]]"></paper-date-picker>
+ <div class="buttons">
+ <paper-button class="paper-button-default t-black" dialog-dismiss>Cancel</paper-button>
+ <paper-button class="paper-button-default bg-darkgreen t-white" dialog-confirm>SAVE</paper-button>
+ </div>
+ </paper-dialog>
+ <paper-dialog id="scrolling">
+
+ <table-schedule data="{{data.predicted_schedule.data}}" header="{{data.predicted_schedule.header}}"></table-schedule>
+ <div class="buttons">
+ <paper-button dialog-dismiss>Cancel</paper-button>
+ <paper-button dialog-confirm autofocus>OK</paper-button>
+ </div>
+ </paper-dialog>
+
+ <paper-dialog id="actions" withBackdrop>
+ <table-schedule-edit data="{{data.predicted_schedule.data}}" header="{{data.predicted_schedule.header}}"></table-schedule-edit>
+ <div class="buttons">
+ <paper-button class="paper-button-default" dialog-dismiss>Cancel</paper-button>
+ <paper-button class="paper-button-default bg-darkgreen" dialog-confirm autofocus>SAVE</paper-button>
+ </div>
+ </paper-dialog>
</template>
<script>
@@ -566,6 +441,17 @@
Polymer.IronOverlayBehavior,
],
},
+ dismissDialog: function(e,r){
+ if(r.confirmed){
+ var picker = document.getElementById("picker");
+ console.log();
+ var d = picker.date;
+
+ var date_string = d.getFullYear().toString()+ '-'+ ("0" + (d.getMonth() + 1)).slice(-2)+'-'+ ("0" + d.getDate()).slice(-2);
+ var dateInput = document.getElementById("vacation_date");
+ dateInput.value = date_string;
+ }
+ },
toggleVacation: function() {
this.$.collapseVacation.toggle();
},
diff --git a/frontend/src/openremote-intro.html b/frontend/src/openremote-intro.html
index 6bb0d2582..19862eae1 100644
--- a/frontend/src/openremote-intro.html
+++ b/frontend/src/openremote-intro.html
@@ -1,79 +1,25 @@
-<html><head><link rel="import" href="../bower_components/paper-stepper/paper-stepper.html">
-<link rel="import" href="../bower_components/paper-stepper/paper-step.html">
+<html><head>
-<link rel="import" href="components/template-scenes-input.html">
-
-</head><body><dom-module id="openremote-intro">
+</head><body><dom-module id="openremote-intro" class="height-100">
<template>
- <style is="custom-style">
- #stepper {
- background-color: transparent;
- box-shadow: none;
- }
- paper-button.default-button {
- background: #c0d62e;
- color:#FFFFFF;
- float:right;
- }
- paper-step > ::content #buttonsWrapper.step-vertical > #continueButton.step-vertical{
- margin-right: 0;
- margin-left: auto;
- }
- paper-step > ::content #textWrapper.step-vertical{
- width: 100%;
- text-align: center;
- padding:12px 0;
- }
- paper-step > ::content #badge.step-vertical{
- margin:0;
- }
- paper-step > ::content #contentConnectorLine.step-vertical{
- margin-left: 0;
- background: none;
- }
- paper-step > ::content #stepWrapper{
- padding-top:10px;
- }
- paper-step > ::content #badge.step-vertical{
- background-color: transparent;
- border:2px solid #c0d62e;
- width: 20px;
- height: 20px;
- }
- paper-step > ::content #label:hover #badge.step-vertical{
- background-color: #c0d62e;
- }
- paper-step > ::content #connectedBadge{
- position: absolute;
- right:20px;
- }
- paper-step{
- background-color: #FFFFFF;
- border-radius: 5px;
- margin-bottom: 10px;
-
- box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
- }
- </style>
-
- <paper-stepper on-paper-stepper-completed="completed" id="stepper" vertical="" continue-text="Next" finish-text="Finish">
- <paper-step label="Home"><template-scenes-input></template-scenes-input></paper-step>
- <paper-step label="Away" ><template-scenes-input></template-scenes-input></paper-step>
- <paper-step label="Evening" ><template-scenes-input></template-scenes-input></paper-step>
- <paper-step label="Night" ><template-scenes-input></template-scenes-input></paper-step>
- </paper-stepper>
+ <iron-swiper id="swiper-iron" class="height-100" style="position:absolute;top:0px;z-index:1;" navigation-buttons="true" pagination="true" pagination-clickable="true">
+ <div class="height-100" style="background-image:url('../images/intro-1.jpg');background-size:cover;background-repeat:no-repeat;background-position:50% -5px;"><div style="margin:0 20px;">
+ <h2 style="width:100%;
+ margin-bottom: 0px; margin-top:72px; text-align:center;color:#374c4f;">Set scenes for every moment of the day.</h2><img style="width: 221px; height: 250px; display: block; margin: auto;" src="../images/intro-text.png" /></div></div>
+ <div class="height-100" style="background-image:url('../images/intro-2.jpg');background-size:cover;background-repeat:no-repeat;background-position:50% -5px;"><div style="margin:0 20px;">
+ <h2 style="width:100%;
+ margin-bottom: 0px; margin-top:72px;text-align:center;color:#374c4f;">The scenes automatically adapt because the house is learning from you.</h2><img style="width: 221px; height: 250px; display: block; margin: auto;" src="../images/intro-text-2.png" /></div></div>
+ <div class="height-100" style="background-image:url('../images/intro-3.jpg');background-size:cover;background-repeat:no-repeat;background-position:50% -5px;"><div style="margin:0 20px;">
+ <h2 style="width:100%;
+ margin-bottom: 0px; margin-top:72px; text-align:center;color:#374c4f;">Stay in controll, always and everywhere.<img style="width: 221px; height: 250px; display: block; margin: auto;" src="../images/intro-text-3.png" /></h2>
+ <a href="#/Wizard"><paper-button style="margin:0;" class="paper-button-default full_width bg-darkgreen">Go To Wizard</paper-button></a>
+ </div>
+ </div>
+ </iron-swiper>
</template>
<script>Polymer({
- is:"openremote-intro",
- listeners: {
- 'completed': 'completed',
- },
-
- completed: function(e) {
- localStorage.setItem("settings", "qweqweqwe");
- window.location = '#/Home'
- },
+ is:"openremote-intro"
});
</script>
</dom-module></body></html>
\ No newline at end of file
diff --git a/frontend/src/openremote-login.html b/frontend/src/openremote-login.html
index b6223542b..0be0bac9d 100644
--- a/frontend/src/openremote-login.html
+++ b/frontend/src/openremote-login.html
@@ -40,22 +40,20 @@
<paper-input name="name" label="Name" required="" auto-validate=""></paper-input>
<paper-input name="password" label="Password" type="password" required="" auto-validate=""></paper-input>
<paper-checkbox name="read" required="">You must check this box</paper-checkbox><br>
- <paper-button raised="" onclick="_delayedSubmit(event)" disabled="" id="eventsDemoSubmit">
- <paper-spinner id="spinner" hidden=""></paper-spinner>Submit</paper-button>
- <paper-button raised="" onclick="_reset(event)">Reset</paper-button>
+
+
+ <paper-button class="paper-button-default" on-tap="_delayedSubmit(event)" id="eventsDemoSubmit">
+ <paper-spinner id="spinner" hidden=""></paper-spinner><a href="#/Intro">Submit</a></paper-button>
+ <paper-button class="paper-button-default" raised="" on-tap="_reset(event)">Reset</paper-button>
<div class="output"></div>
</form>
<script> eventsDemo.addEventListener('change', function(event) {
eventsDemoSubmit.disabled = !eventsDemo.validate();
});
function _delayedSubmit(event) {
- spinner.active = true;
- spinner.hidden = false;
- eventsDemoSubmit.disabled = true;
- setTimeout(function() {
- localStorage.setItem("jwt", "WQEOqweoopiasopi293812903iopweopqweipqwei");
- window.location = '#/Intro'
- }, 1000);
+ alert('test');
+ window.location = '#/Intro'
+ localStorage.setItem("jwt", "WQEOqweoopiasopi293812903iopweopqweipqwei");
}
function _reset(event) {
var form = Polymer.dom(event).localTarget.parentElement
@@ -65,7 +63,6 @@
document.getElementById('eventsDemo').addEventListener('iron-form-submit', function(event) {
spinner.active = false;
spinner.hidden = true;
- eventsDemoSubmit.disabled = false;
this.querySelector('.output').innerHTML = JSON.stringify(event.detail);
});
</script>