@bitpoolos/edge-bacnet 1.5.0 → 1.5.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/CHANGELOG.md +93 -81
- package/bacnet_client.js +141 -60
- package/bacnet_gateway.html +24 -38
- package/bacnet_gateway.js +2 -0
- package/bacnet_read.html +1032 -1021
- package/package.json +2 -2
- package/resources/style.css +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.2] - 10-01-2025
|
|
4
|
+
|
|
5
|
+
Mismatched network request hot fix
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## [1.5.1] - 13-11-2024
|
|
9
|
+
|
|
10
|
+
### Summary
|
|
11
|
+
|
|
12
|
+
Npm package update - iconv-lite. Fix for incorrect character string decoding bug
|
|
13
|
+
|
|
14
|
+
Added dialog confirmation to rebuild data model. Fixed modal duplication bug in confirmation service implementation.
|
|
15
|
+
|
|
3
16
|
## [1.5.0] - 31-10-2024
|
|
17
|
+
|
|
4
18
|
### Summary
|
|
5
19
|
|
|
6
|
-
Major feature release - Port range binding
|
|
20
|
+
Major feature release - Port range binding
|
|
7
21
|
|
|
8
22
|
Large amount of bug fixes
|
|
9
23
|
|
|
10
24
|
Added error string to Full Object payload. Contains a BACnet string where an error is found for point, otherwise contains "none".
|
|
11
25
|
|
|
12
|
-
Proceed with caution as a correct port range has to be established in data model in order to continue uptime on existing sites. Doing a device discovery will update device model with port number.
|
|
26
|
+
Proceed with caution as a correct port range has to be established in data model in order to continue uptime on existing sites. Doing a device discovery will update device model with port number.
|
|
13
27
|
|
|
14
|
-
Best method to update this version on existing installs:
|
|
28
|
+
Best method to update this version on existing installs:
|
|
15
29
|
|
|
16
30
|
- Install v1.5.0
|
|
17
31
|
- Restart node-red / docker container
|
|
@@ -20,141 +34,140 @@ Best method to update this version on existing installs:
|
|
|
20
34
|
- Restart node-red / docker container again.
|
|
21
35
|
- Inject manual discovery to gateway node a couple times
|
|
22
36
|
|
|
23
|
-
It is recommended you back up: your node-red flows and gateway Discovery tab device list, incase something goes wrong.
|
|
37
|
+
It is recommended you back up: your node-red flows and gateway Discovery tab device list, incase something goes wrong.
|
|
24
38
|
|
|
25
39
|
## [1.4.6] - 17-09-2024
|
|
40
|
+
|
|
26
41
|
### Summary
|
|
27
42
|
|
|
28
43
|
Minor fixes.
|
|
29
44
|
|
|
30
|
-
Wrapped updateDeviceName function with promise to avoid network conflict for clients.
|
|
45
|
+
Wrapped updateDeviceName function with promise to avoid network conflict for clients.
|
|
31
46
|
|
|
32
47
|
Fixed UI styling bugs, primarily with long names and numbers wrapping.
|
|
33
48
|
|
|
34
|
-
Added ability to set device name of dummy MSTP routers.
|
|
49
|
+
Added ability to set device name of dummy MSTP routers.
|
|
35
50
|
|
|
36
51
|
Improved error handling for querying devices and building point json structures.
|
|
37
52
|
|
|
38
53
|
Fixed read node point export bug.
|
|
39
54
|
|
|
40
|
-
Excluded commas via point name conditioning
|
|
55
|
+
Excluded commas via point name conditioning
|
|
41
56
|
|
|
42
57
|
Fixed gateway port assignment bug - ability to communicate on different ports working now.
|
|
43
58
|
|
|
44
59
|
More async / await refactoring.
|
|
45
60
|
|
|
46
|
-
|
|
47
61
|
## [1.4.5] - 16-08-2024
|
|
62
|
+
|
|
48
63
|
### Summary
|
|
49
64
|
|
|
50
65
|
User interface redesign and restyle. Predominantly colors, buttons, fonts, and placement of UI components.
|
|
51
66
|
|
|
52
|
-
Added timestamp update, and online/offline status update for points when an error has occured during the network request for present value. Use in Simple with status and Full Object payload types.
|
|
53
|
-
|
|
67
|
+
Added timestamp update, and online/offline status update for points when an error has occured during the network request for present value. Use in Simple with status and Full Object payload types.
|
|
54
68
|
|
|
55
69
|
## [1.4.4] - 08-08-2024
|
|
56
|
-
|
|
70
|
+
|
|
71
|
+
### Summary
|
|
57
72
|
|
|
58
73
|
Minor updates.
|
|
59
74
|
|
|
60
|
-
Added device details to meta property when full object property type is selected.
|
|
75
|
+
Added device details to meta property when full object property type is selected.
|
|
61
76
|
|
|
62
77
|
Implemented applyDisplayName feature. Triggered via:
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
|
|
79
|
+
```javascript
|
|
80
|
+
applyDisplayNames = true;
|
|
65
81
|
```
|
|
66
|
-
property in an inject node, directly linked to a read node. Function flow: inject applyDisplayNames = true to read node -> read node passes msg to gateway node -> gateway node updates bacnet model for device and point display names.
|
|
67
82
|
|
|
68
|
-
|
|
83
|
+
property in an inject node, directly linked to a read node. Function flow: inject applyDisplayNames = true to read node -> read node passes msg to gateway node -> gateway node updates bacnet model for device and point display names.
|
|
69
84
|
|
|
85
|
+
This feature is for use in scenarios where the flows.json or node json structure is programattically generated with a prefilled pointsToRead property. Some devices and points may need displayNames updating.
|
|
70
86
|
|
|
71
87
|
## [1.4.3] - 01-08-2024
|
|
72
|
-
|
|
88
|
+
|
|
89
|
+
### Summary
|
|
73
90
|
|
|
74
91
|
Minor updates.
|
|
75
92
|
|
|
76
|
-
Added refresh button to readList tab on read node, to handle scenarios where read node jsons may be programatically created.
|
|
93
|
+
Added refresh button to readList tab on read node, to handle scenarios where read node jsons may be programatically created.
|
|
77
94
|
|
|
78
|
-
Added "Use device name in topic" topic property in inject and read nodes. This option toggles whether or not the device name is included in the msg.topic.
|
|
95
|
+
Added "Use device name in topic" topic property in inject and read nodes. This option toggles whether or not the device name is included in the msg.topic.
|
|
79
96
|
|
|
80
97
|
Merge github PR 19. Added ability to configure the creation of a BacnetServer object:
|
|
98
|
+
|
|
81
99
|
```javascript
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
100
|
+
payload = {
|
|
101
|
+
value: 12,
|
|
102
|
+
resolution: 0,
|
|
103
|
+
priorityArray: 0,
|
|
104
|
+
units: 0,
|
|
105
|
+
};
|
|
88
106
|
```
|
|
89
107
|
|
|
90
108
|
Inject nodes may need to be deleted and replaced. Try deploying node-red 2 times to instantiate the new deviceName property.
|
|
91
109
|
|
|
92
|
-
|
|
93
110
|
## [1.4.2] - 23-07-2024
|
|
94
|
-
### Summary
|
|
95
111
|
|
|
96
|
-
|
|
112
|
+
### Summary
|
|
113
|
+
|
|
114
|
+
Improved UI tree generation, fixing some unique scenarios where devices were not being correctly added.
|
|
97
115
|
|
|
98
|
-
Added new payload type: Individual JSON. This publishes JSON payloads to a point level, rather than to a device or property level.
|
|
116
|
+
Added new payload type: Individual JSON. This publishes JSON payloads to a point level, rather than to a device or property level.
|
|
99
117
|
|
|
100
118
|
Added payload and output types to be configured via Inject node. Any checked options in the inject node will take priority over read node options. Note - to use read node output types only, please deselect all inject node output options.
|
|
101
119
|
|
|
102
|
-
Added dumb BACnet parent devices to UI tree, for unique situations where MSTP devices are on a network without a parent IP device.
|
|
120
|
+
Added dumb BACnet parent devices to UI tree, for unique situations where MSTP devices are on a network without a parent IP device.
|
|
103
121
|
|
|
104
122
|
Bug fixes:
|
|
105
|
-
- Importing read list was incorrectly generating UI
|
|
106
|
-
- Block per device JSON payloads were not using DisplayName and JSON key
|
|
107
|
-
- Added node-red context variable to monitor if writeProperty event has been subscribed to, avoiding a new subscription for every node-red deploy.
|
|
108
|
-
- Fixed issue requiring Bacnet server to be constantly enabled in order for the node to function.
|
|
109
123
|
|
|
124
|
+
- Importing read list was incorrectly generating UI
|
|
125
|
+
- Block per device JSON payloads were not using DisplayName and JSON key
|
|
126
|
+
- Added node-red context variable to monitor if writeProperty event has been subscribed to, avoiding a new subscription for every node-red deploy.
|
|
127
|
+
- Fixed issue requiring Bacnet server to be constantly enabled in order for the node to function.
|
|
110
128
|
|
|
111
|
-
No nodes need to be deleted and replaced for this update.
|
|
129
|
+
No nodes need to be deleted and replaced for this update.
|
|
112
130
|
|
|
113
131
|
## [1.4.1] - 09-07-2024
|
|
114
132
|
|
|
115
133
|
### Summary
|
|
116
134
|
|
|
117
135
|
Bug fixes
|
|
118
|
-
- incorrect variable used in doRead try catch
|
|
119
|
-
- setmaxlisteners on bacnet server event parent class
|
|
120
136
|
|
|
137
|
+
- incorrect variable used in doRead try catch
|
|
138
|
+
- setmaxlisteners on bacnet server event parent class
|
|
121
139
|
|
|
122
140
|
## [1.4.0] - 05-07-2024
|
|
123
141
|
|
|
124
142
|
### Summary
|
|
125
143
|
|
|
126
|
-
Fixed read list export for sites with large point counts.
|
|
144
|
+
Fixed read list export for sites with large point counts.
|
|
127
145
|
|
|
128
|
-
Removed auto tree reload on read node UI. UI tree must be manually reloaded now.
|
|
146
|
+
Removed auto tree reload on read node UI. UI tree must be manually reloaded now.
|
|
129
147
|
|
|
130
|
-
Fixed export to CSV bug.
|
|
148
|
+
Fixed export to CSV bug.
|
|
131
149
|
|
|
132
150
|
Fixed state array text not found bug
|
|
133
151
|
|
|
134
|
-
Removed unecessary debug.
|
|
152
|
+
Removed unecessary debug.
|
|
135
153
|
|
|
136
|
-
Updated required json saved to node JSON file.
|
|
154
|
+
Updated required json saved to node JSON file.
|
|
137
155
|
|
|
138
|
-
Added github pull requests
|
|
139
|
-
- Added create object and delete object to bacnet server
|
|
140
|
-
- Added write property to bacnet server
|
|
156
|
+
Added github pull requests - Added create object and delete object to bacnet server - Added write property to bacnet server
|
|
141
157
|
|
|
142
|
-
Added Simple With Status read property type.
|
|
143
|
-
- This type sends a msg.payload that consists of {presentValue, timestamp, status}
|
|
144
|
-
- Status is currently online and offline
|
|
158
|
+
Added Simple With Status read property type. - This type sends a msg.payload that consists of {presentValue, timestamp, status} - Status is currently online and offline
|
|
145
159
|
|
|
146
160
|
Changed inject node to only 1 selectable type of inject (Discover or Poll)
|
|
147
161
|
|
|
148
|
-
|
|
149
162
|
## [1.3.2] - 18-06-2024
|
|
150
163
|
|
|
151
|
-
### Summary
|
|
164
|
+
### Summary
|
|
152
165
|
|
|
153
166
|
Bug fix for API request URL paths. Updated for using node-red host setting.
|
|
154
167
|
|
|
155
168
|
## [1.3.1] - 06-06-2024
|
|
156
169
|
|
|
157
|
-
### Summary
|
|
170
|
+
### Summary
|
|
158
171
|
|
|
159
172
|
Primarily bug fixes and performance improvements
|
|
160
173
|
|
|
@@ -176,11 +189,10 @@ Primarily bug fixes and performance improvements
|
|
|
176
189
|
|
|
177
190
|
- Devices are immediately added to the UI tree with a device placeholder on a whoIs/iAm response. The devices are then back populated with Names and BACnet Objects. This gives the user a fast understanding of the size and relationships of the BACnet network.
|
|
178
191
|
|
|
179
|
-
- Added docstrings to bacnet_server.js and code clean up.
|
|
192
|
+
- Added docstrings to bacnet_server.js and code clean up.
|
|
180
193
|
|
|
181
194
|
- Set Server enable to default on True
|
|
182
195
|
|
|
183
|
-
|
|
184
196
|
## [1.3.0] - 16-05-2024
|
|
185
197
|
|
|
186
198
|
### Summary
|
|
@@ -198,34 +210,35 @@ This release includes several new features, bug fixes, and performance improveme
|
|
|
198
210
|
- Updated Add All button to add all sub MSTP devices if parent IP device button is selected
|
|
199
211
|
|
|
200
212
|
- Introduced Right click context menu for all device types present in Device List:
|
|
201
|
-
- Purge Device
|
|
202
|
-
- Purges device from active model, removing it from the device list
|
|
203
|
-
- Update Points
|
|
204
|
-
- Triggers point updating function for selected device, beneficial for large bacnet networks
|
|
205
|
-
- Add All Points
|
|
206
|
-
- Same as Add All button
|
|
207
|
-
- Remove All Points
|
|
208
|
-
- Same as Remove All button
|
|
209
|
-
- Set device name
|
|
210
|
-
- Sets device Display Name, which is used in the output of read operations
|
|
211
|
-
|
|
212
|
-
- Introduced Right click context menu for all points present in the Device List:
|
|
213
|
-
- Set point Name
|
|
214
|
-
- Sets point display name, used in the output of read operations
|
|
215
|
-
- Update point
|
|
216
|
-
- Triggers point update function, forces latest present value
|
|
217
|
-
|
|
218
|
-
- Introduced Export and Import of ReadList in the read node.
|
|
219
|
-
- This feature Exports a light weight JSON file with all devices and points added to the Read List. This allows the user to rename all of the devices and points in the Read List via a plain text editor, then Import the modified file. The process of importing will update the Display Names of desired points and device. This feature was introduced with the intention of streamlinibg the naming convetions and processes used for site deployment.
|
|
220
|
-
|
|
221
|
-
- Added support for debian systems, displays All Interfaces (0.0.0.0) in network adapter property
|
|
222
213
|
|
|
223
|
-
-
|
|
214
|
+
- Purge Device
|
|
215
|
+
- Purges device from active model, removing it from the device list
|
|
216
|
+
- Update Points
|
|
217
|
+
- Triggers point updating function for selected device, beneficial for large bacnet networks
|
|
218
|
+
- Add All Points
|
|
219
|
+
- Same as Add All button
|
|
220
|
+
- Remove All Points
|
|
221
|
+
- Same as Remove All button
|
|
222
|
+
- Set device name
|
|
223
|
+
- Sets device Display Name, which is used in the output of read operations
|
|
224
224
|
|
|
225
|
-
-
|
|
226
|
-
|
|
225
|
+
- Introduced Right click context menu for all points present in the Device List:
|
|
226
|
+
|
|
227
|
+
- Set point Name
|
|
228
|
+
- Sets point display name, used in the output of read operations
|
|
229
|
+
- Update point
|
|
230
|
+
- Triggers point update function, forces latest present value
|
|
227
231
|
|
|
232
|
+
- Introduced Export and Import of ReadList in the read node.
|
|
228
233
|
|
|
234
|
+
- This feature Exports a light weight JSON file with all devices and points added to the Read List. This allows the user to rename all of the devices and points in the Read List via a plain text editor, then Import the modified file. The process of importing will update the Display Names of desired points and device. This feature was introduced with the intention of streamlinibg the naming convetions and processes used for site deployment.
|
|
235
|
+
|
|
236
|
+
- Added support for debian systems, displays All Interfaces (0.0.0.0) in network adapter property
|
|
237
|
+
|
|
238
|
+
- Added publish status under gateway node
|
|
239
|
+
|
|
240
|
+
- Implemented usage of gateway and read node names in MQTT topics
|
|
241
|
+
- {gateway node name}/{read node name}/pointName
|
|
229
242
|
|
|
230
243
|
### Bug Fixes
|
|
231
244
|
|
|
@@ -233,16 +246,15 @@ This release includes several new features, bug fixes, and performance improveme
|
|
|
233
246
|
|
|
234
247
|
- Write to MSTP devices bug fix
|
|
235
248
|
|
|
236
|
-
|
|
237
249
|
### Performance Improvements
|
|
238
250
|
|
|
239
|
-
- Added support for a wider range of devices.
|
|
251
|
+
- Added support for a wider range of devices.
|
|
240
252
|
|
|
241
253
|
- Added getProtocolsSupported request to identify bacnet service support for each device
|
|
242
254
|
|
|
243
255
|
- Added apduSize based readPropertyMultiple packaging for reduced network requests
|
|
244
256
|
|
|
245
|
-
- Refactored device tree function and implemented treeBuilder.
|
|
257
|
+
- Refactored device tree function and implemented treeBuilder.
|
|
246
258
|
|
|
247
259
|
- Refactored device object building / querying process
|
|
248
260
|
|
|
@@ -250,7 +262,7 @@ This release includes several new features, bug fixes, and performance improveme
|
|
|
250
262
|
|
|
251
263
|
### Other Changes
|
|
252
264
|
|
|
253
|
-
- Added Changelog
|
|
265
|
+
- Added Changelog
|
|
254
266
|
|
|
255
267
|
- Updated Readme for better node updating.
|
|
256
268
|
|