@bitpoolos/edge-bacnet 1.3.1 → 1.3.2
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/bacnet_gateway.html +13 -13
- package/package.json +1 -1
package/bacnet_gateway.html
CHANGED
|
@@ -75,19 +75,19 @@
|
|
|
75
75
|
<script type="text/javascript">
|
|
76
76
|
class NodeService {
|
|
77
77
|
getNetworkData() {
|
|
78
|
-
return fetch("
|
|
78
|
+
return fetch(RED.settings.httpNodeRoot + "bitpool-bacnet-data/getNetworkTree").then((res) => res.json());
|
|
79
79
|
}
|
|
80
80
|
rebuildDataModel() {
|
|
81
|
-
return fetch("
|
|
81
|
+
return fetch(RED.settings.httpNodeRoot + "bitpool-bacnet-data/rebuildDataModel").then((res) => res.json());
|
|
82
82
|
}
|
|
83
83
|
clearBacnetServerPoints() {
|
|
84
|
-
return fetch("
|
|
84
|
+
return fetch(RED.settings.httpNodeRoot + "bitpool-bacnet-data/clearBacnetServerPoints").then((res) => res.json());
|
|
85
85
|
}
|
|
86
86
|
getBacnetServerPoints() {
|
|
87
|
-
return fetch('
|
|
87
|
+
return fetch(RED.settings.httpNodeRoot + 'bitpool-bacnet-data/getBacnetServerPoints').then(res => res.json());
|
|
88
88
|
}
|
|
89
89
|
purgeDevice(device) {
|
|
90
|
-
return fetch('
|
|
90
|
+
return fetch(RED.settings.httpNodeRoot + 'bitpool-bacnet-data/purgeDevice', {
|
|
91
91
|
method: 'POST',
|
|
92
92
|
headers: {
|
|
93
93
|
'Accept': 'application/json',
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}).then(res => res.json());
|
|
98
98
|
}
|
|
99
99
|
updatePointsForDevice(device) {
|
|
100
|
-
return fetch('
|
|
100
|
+
return fetch(RED.settings.httpNodeRoot + 'bitpool-bacnet-data/updatePointsForDevice', {
|
|
101
101
|
method: 'POST',
|
|
102
102
|
headers: {
|
|
103
103
|
'Accept': 'application/json',
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}).then(res => res.json());
|
|
108
108
|
}
|
|
109
109
|
setDeviceDisplayName(device, displayName) {
|
|
110
|
-
return fetch('
|
|
110
|
+
return fetch(RED.settings.httpNodeRoot + 'bitpool-bacnet-data/setDeviceDisplayName', {
|
|
111
111
|
method: 'POST',
|
|
112
112
|
headers: {
|
|
113
113
|
'Accept': 'application/json',
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
}).then(res => res.json());
|
|
118
118
|
}
|
|
119
119
|
setPointDisplayName(deviceKey, pointName, pointDisplayName) {
|
|
120
|
-
return fetch('
|
|
120
|
+
return fetch(RED.settings.httpNodeRoot + 'bitpool-bacnet-data/setPointDisplayName', {
|
|
121
121
|
method: 'POST',
|
|
122
122
|
headers: {
|
|
123
123
|
'Accept': 'application/json',
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
}).then(res => res.json());
|
|
128
128
|
}
|
|
129
129
|
importReadList(payload) {
|
|
130
|
-
return fetch('
|
|
130
|
+
return fetch(RED.settings.httpNodeRoot + 'bitpool-bacnet-data/importReadList', {
|
|
131
131
|
method: 'POST',
|
|
132
132
|
headers: {
|
|
133
133
|
'Accept': 'application/json',
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
function queryAdapters() {
|
|
214
214
|
let nicSelector = document.getElementById("node-input-local_device_address");
|
|
215
215
|
$.ajax({
|
|
216
|
-
url: "
|
|
216
|
+
url: RED.settings.httpNodeRoot + "bitpool-bacnet-data/getNetworkInterfaces",
|
|
217
217
|
success: function (data) {
|
|
218
218
|
let keys = Object.keys(data);
|
|
219
219
|
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
let app = this;
|
|
290
290
|
$.ajax({
|
|
291
291
|
type: "POST",
|
|
292
|
-
url: '
|
|
292
|
+
url: RED.settings.httpNodeRoot + 'bitpool-bacnet-data/clearBacnetServerPoint',
|
|
293
293
|
dataType: 'json',
|
|
294
294
|
contentType: 'application/json',
|
|
295
295
|
data: JSON.stringify(json),
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
|
|
343
343
|
$.ajax({
|
|
344
344
|
type: "POST",
|
|
345
|
-
url: "
|
|
345
|
+
url: RED.settings.httpNodeRoot + "bitpool-bacnet-data/updateDeviceList",
|
|
346
346
|
dataType: "json",
|
|
347
347
|
contentType: "application/json",
|
|
348
348
|
data: JSON.stringify(jsonPayload),
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
|
|
357
357
|
$("#file-export").click(function (params) {
|
|
358
358
|
$.ajax({
|
|
359
|
-
url: "
|
|
359
|
+
url: RED.settings.httpNodeRoot + "bitpool-bacnet-data/getDeviceList",
|
|
360
360
|
success: function (deviceList) {
|
|
361
361
|
let data = "text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(deviceList));
|
|
362
362
|
let aEle = document.getElementById("exportJSON");
|