homebridge-smartsystem 6.0.3 → 6.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/smartapp.js +15 -15
- package/server/smartapp.ts +15 -15
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-smartsystem",
|
|
3
3
|
"displayname": "Duotecno Bridge",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.4",
|
|
5
5
|
"description": "SmartServer (Proxy Websockets to TCP sockets, Smappee MQTT, Duotecno IP Nodes, Homekit interface)",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": "Johan Coppieters",
|
package/server/smartapp.js
CHANGED
|
@@ -76,21 +76,21 @@ class SmartApp extends webapp_1.WebApp {
|
|
|
76
76
|
this.platform = platform;
|
|
77
77
|
// when all masters are loaded -> attach units to the switches
|
|
78
78
|
this.system.emitter.on('ready', this.initSwitchUnits.bind(this));
|
|
79
|
-
this.addFile("unitList", __dirname + "
|
|
80
|
-
this.addFile("masterList", __dirname + "
|
|
81
|
-
this.addFile("masterDetail", __dirname + "
|
|
82
|
-
this.addFile("nodeDetail", __dirname + "
|
|
83
|
-
this.addFile("serviceList", __dirname + "
|
|
84
|
-
this.addFile("smappee", __dirname + "
|
|
85
|
-
this.addFile("homekit", __dirname + "
|
|
86
|
-
this.addFile("settings", __dirname + "
|
|
87
|
-
this.addFile("switchDetail", __dirname + "
|
|
88
|
-
this.addFile("switchList", __dirname + "
|
|
89
|
-
this.addFile("smappeeRule", __dirname + "
|
|
90
|
-
this.addFile("smappeeBinding", __dirname + "
|
|
91
|
-
this.addFile("materializeCSS", __dirname + "
|
|
92
|
-
this.addFile("materializeJS", __dirname + "
|
|
93
|
-
this.addFile("favicon", __dirname + "
|
|
79
|
+
this.addFile("unitList", __dirname + "/views/unit-list.ejs", "application/json");
|
|
80
|
+
this.addFile("masterList", __dirname + "/views/master-list.ejs", "text/html");
|
|
81
|
+
this.addFile("masterDetail", __dirname + "/views/master-detail.ejs", "text/html");
|
|
82
|
+
this.addFile("nodeDetail", __dirname + "/views/node-details.ejs", "text/html");
|
|
83
|
+
this.addFile("serviceList", __dirname + "/views/service-list.ejs", "text/html");
|
|
84
|
+
this.addFile("smappee", __dirname + "/views/smappee.ejs", "text/html");
|
|
85
|
+
this.addFile("homekit", __dirname + "/views/homekit.ejs", "text/html");
|
|
86
|
+
this.addFile("settings", __dirname + "/views/settings.ejs", "text/html");
|
|
87
|
+
this.addFile("switchDetail", __dirname + "/views/switch-details.ejs", "text/html");
|
|
88
|
+
this.addFile("switchList", __dirname + "/views/switch-list.ejs", "text/html");
|
|
89
|
+
this.addFile("smappeeRule", __dirname + "/views/smappee-rule.ejs", "text/html");
|
|
90
|
+
this.addFile("smappeeBinding", __dirname + "/views/smappee-binding.ejs", "text/html");
|
|
91
|
+
this.addFile("materializeCSS", __dirname + "/views/assets/materialize.min.css", "text/css");
|
|
92
|
+
this.addFile("materializeJS", __dirname + "/views/assets/materialize.min.js", "text/javascript");
|
|
93
|
+
this.addFile("favicon", __dirname + "/views/assets/favicon.ico", "image/x-icon");
|
|
94
94
|
}
|
|
95
95
|
writeConfig() {
|
|
96
96
|
// copy switches into config, eliminate the runtime stuff (like unit)
|
package/server/smartapp.ts
CHANGED
|
@@ -85,21 +85,21 @@ export class SmartApp extends WebApp {
|
|
|
85
85
|
// when all masters are loaded -> attach units to the switches
|
|
86
86
|
this.system.emitter.on('ready', this.initSwitchUnits.bind(this));
|
|
87
87
|
|
|
88
|
-
this.addFile("unitList", __dirname + "
|
|
89
|
-
this.addFile("masterList", __dirname + "
|
|
90
|
-
this.addFile("masterDetail", __dirname + "
|
|
91
|
-
this.addFile("nodeDetail", __dirname + "
|
|
92
|
-
this.addFile("serviceList", __dirname + "
|
|
93
|
-
this.addFile("smappee", __dirname + "
|
|
94
|
-
this.addFile("homekit", __dirname + "
|
|
95
|
-
this.addFile("settings", __dirname + "
|
|
96
|
-
this.addFile("switchDetail", __dirname + "
|
|
97
|
-
this.addFile("switchList", __dirname + "
|
|
98
|
-
this.addFile("smappeeRule", __dirname + "
|
|
99
|
-
this.addFile("smappeeBinding", __dirname + "
|
|
100
|
-
this.addFile("materializeCSS", __dirname + "
|
|
101
|
-
this.addFile("materializeJS", __dirname + "
|
|
102
|
-
this.addFile("favicon", __dirname + "
|
|
88
|
+
this.addFile("unitList", __dirname + "/views/unit-list.ejs", "application/json");
|
|
89
|
+
this.addFile("masterList", __dirname + "/views/master-list.ejs", "text/html");
|
|
90
|
+
this.addFile("masterDetail", __dirname + "/views/master-detail.ejs", "text/html");
|
|
91
|
+
this.addFile("nodeDetail", __dirname + "/views/node-details.ejs", "text/html");
|
|
92
|
+
this.addFile("serviceList", __dirname + "/views/service-list.ejs", "text/html");
|
|
93
|
+
this.addFile("smappee", __dirname + "/views/smappee.ejs", "text/html");
|
|
94
|
+
this.addFile("homekit", __dirname + "/views/homekit.ejs", "text/html");
|
|
95
|
+
this.addFile("settings", __dirname + "/views/settings.ejs", "text/html");
|
|
96
|
+
this.addFile("switchDetail", __dirname + "/views/switch-details.ejs", "text/html");
|
|
97
|
+
this.addFile("switchList", __dirname + "/views/switch-list.ejs", "text/html");
|
|
98
|
+
this.addFile("smappeeRule", __dirname + "/views/smappee-rule.ejs", "text/html");
|
|
99
|
+
this.addFile("smappeeBinding", __dirname + "/views/smappee-binding.ejs", "text/html");
|
|
100
|
+
this.addFile("materializeCSS", __dirname + "/views/assets/materialize.min.css", "text/css");
|
|
101
|
+
this.addFile("materializeJS", __dirname + "/views/assets/materialize.min.js", "text/javascript");
|
|
102
|
+
this.addFile("favicon", __dirname + "/views/assets/favicon.ico", "image/x-icon");
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
writeConfig() {
|