nodejs-poolcontroller 7.6.1 → 7.7.0

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.
Files changed (91) hide show
  1. package/.eslintrc.json +44 -44
  2. package/.github/ISSUE_TEMPLATE/1-bug-report.yml +84 -0
  3. package/.github/ISSUE_TEMPLATE/2-docs.md +12 -0
  4. package/.github/ISSUE_TEMPLATE/3-proposal.md +28 -0
  5. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  6. package/CONTRIBUTING.md +74 -74
  7. package/Changelog +220 -215
  8. package/Dockerfile +17 -17
  9. package/Gruntfile.js +40 -40
  10. package/LICENSE +661 -661
  11. package/README.md +191 -191
  12. package/app.ts +1 -1
  13. package/config/Config.ts +14 -0
  14. package/config/VersionCheck.ts +2 -2
  15. package/controller/Constants.ts +2 -1
  16. package/controller/Equipment.ts +2484 -2459
  17. package/controller/Errors.ts +180 -180
  18. package/controller/Lockouts.ts +502 -436
  19. package/controller/State.ts +106 -30
  20. package/controller/boards/AquaLinkBoard.ts +1000 -0
  21. package/controller/boards/BoardFactory.ts +49 -45
  22. package/controller/boards/EasyTouchBoard.ts +2859 -2653
  23. package/controller/boards/IntelliCenterBoard.ts +4198 -4230
  24. package/controller/boards/IntelliComBoard.ts +63 -63
  25. package/controller/boards/IntelliTouchBoard.ts +273 -241
  26. package/controller/boards/NixieBoard.ts +1728 -1675
  27. package/controller/boards/SystemBoard.ts +4925 -4697
  28. package/controller/comms/Comms.ts +442 -479
  29. package/controller/comms/messages/Messages.ts +171 -25
  30. package/controller/comms/messages/config/ChlorinatorMessage.ts +5 -2
  31. package/controller/comms/messages/config/CircuitGroupMessage.ts +0 -0
  32. package/controller/comms/messages/config/CircuitMessage.ts +1 -0
  33. package/controller/comms/messages/config/ConfigMessage.ts +0 -0
  34. package/controller/comms/messages/config/CoverMessage.ts +0 -0
  35. package/controller/comms/messages/config/CustomNameMessage.ts +30 -30
  36. package/controller/comms/messages/config/EquipmentMessage.ts +0 -0
  37. package/controller/comms/messages/config/ExternalMessage.ts +0 -0
  38. package/controller/comms/messages/config/FeatureMessage.ts +0 -0
  39. package/controller/comms/messages/config/GeneralMessage.ts +0 -0
  40. package/controller/comms/messages/config/HeaterMessage.ts +142 -10
  41. package/controller/comms/messages/config/IntellichemMessage.ts +0 -0
  42. package/controller/comms/messages/config/OptionsMessage.ts +4 -21
  43. package/controller/comms/messages/config/PumpMessage.ts +53 -35
  44. package/controller/comms/messages/config/RemoteMessage.ts +0 -0
  45. package/controller/comms/messages/config/ScheduleMessage.ts +350 -347
  46. package/controller/comms/messages/config/SecurityMessage.ts +0 -0
  47. package/controller/comms/messages/config/ValveMessage.ts +1 -1
  48. package/controller/comms/messages/status/ChlorinatorStateMessage.ts +38 -86
  49. package/controller/comms/messages/status/EquipmentStateMessage.ts +58 -22
  50. package/controller/comms/messages/status/HeaterStateMessage.ts +116 -86
  51. package/controller/comms/messages/status/IntelliChemStateMessage.ts +445 -445
  52. package/controller/comms/messages/status/IntelliValveStateMessage.ts +35 -35
  53. package/controller/comms/messages/status/PumpStateMessage.ts +23 -1
  54. package/controller/comms/messages/status/VersionMessage.ts +0 -0
  55. package/controller/nixie/Nixie.ts +162 -162
  56. package/controller/nixie/NixieEquipment.ts +103 -103
  57. package/controller/nixie/bodies/Body.ts +120 -120
  58. package/controller/nixie/bodies/Filter.ts +135 -135
  59. package/controller/nixie/chemistry/ChemController.ts +2511 -2498
  60. package/controller/nixie/chemistry/Chlorinator.ts +363 -314
  61. package/controller/nixie/circuits/Circuit.ts +261 -248
  62. package/controller/nixie/heaters/Heater.ts +650 -648
  63. package/controller/nixie/pumps/Pump.ts +906 -661
  64. package/controller/nixie/schedules/Schedule.ts +313 -257
  65. package/controller/nixie/valves/Valve.ts +170 -170
  66. package/defaultConfig.json +306 -286
  67. package/logger/DataLogger.ts +448 -448
  68. package/logger/Logger.ts +0 -0
  69. package/package.json +56 -56
  70. package/tsconfig.json +25 -25
  71. package/web/Server.ts +92 -47
  72. package/web/bindings/aqualinkD.json +505 -0
  73. package/web/bindings/influxDB.json +1051 -1021
  74. package/web/bindings/mqtt.json +702 -654
  75. package/web/bindings/mqttAlt.json +731 -684
  76. package/web/bindings/rulesManager.json +54 -54
  77. package/web/bindings/smartThings-Hubitat.json +31 -31
  78. package/web/bindings/valveRelays.json +20 -20
  79. package/web/bindings/vera.json +25 -25
  80. package/web/interfaces/baseInterface.ts +137 -136
  81. package/web/interfaces/httpInterface.ts +145 -124
  82. package/web/interfaces/influxInterface.ts +276 -245
  83. package/web/interfaces/mqttInterface.ts +535 -475
  84. package/web/services/config/Config.ts +39 -18
  85. package/web/services/config/ConfigSocket.ts +0 -0
  86. package/web/services/state/State.ts +10 -0
  87. package/web/services/state/StateSocket.ts +4 -4
  88. package/web/services/utilities/Utilities.ts +44 -42
  89. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -52
  90. package/config copy.json +0 -300
  91. package/issue_template.md +0 -52
package/Changelog CHANGED
@@ -1,216 +1,221 @@
1
- # Changelog
2
- ## 7.6
3
- 1. MasterTemp RS485 support for Nixie and IntelliCenter
4
- 2. Nixie Valve Rotation delay
5
- 3. Nixie Heater Cooldown delay
6
- 4. Nixie Cleaner Start delay
7
- 5. Nixie Cleaner Shutdown on Solar
8
- 6. Nixie Delay Cancel
9
-
10
- ## 7.5.1
11
- 1. Backup/restore fixes
12
- 2. Egg timer expiration
13
- 3. Bug Fixes
14
- 4. dashPanel/messageManager Filter
15
- 5. RS485 refactor
16
-
17
- ## 7.5
18
- 1. Backup/restore
19
- 2. Intellitouch add expansion modules
20
- ## 7.4
21
- 1. Filter object, emit, monitoring
22
-
23
- ## 7.3.1
24
- 1. Influx 2.0 support
25
-
26
- ## 7.3
27
- 1. Dynamic chlorinating % based on ORP demand for Nixie
28
- 2. Docker creation updates
29
-
30
- ## 7.2
31
- 1. Refactor Intellichem and Chem Controllers
32
-
33
- ## 7.1.1
34
- 1. Added end time for circuits to show eggtimer/schedule off times
35
- 2. Ultratemp updates
36
- 3. Heater logic refactored
37
- 4. Message response logic refactored
38
- 5. Intellichem updates
39
-
40
-
41
- ## 7.1.0
42
- 1. Moved virtual chlorinator code and control to Nixie
43
- 2. Moved virtual pump code and control to Nixie; Nixie supports SS, DS, SuperFlo, VS, VF, VSF
44
- 3. MQTT changes
45
- 4. Outbound processing for packets now has a scope. Previously if an outbound packet would receive a response we would clear all of the similar packets off the queue. EG if a user requests circuit 2 and 3 to be turned on, we would clear out the outbound message for 3. Now the code is more selective about what "scope" is considered for a successful response.
46
-
47
- ## 7.0.0
48
- 1. Upgrades to setup/sync between njsPC and REM
49
- 2. Significant steps to njsPC (Nixie) acting as a standalone pool controller (virtual controller heaters, move virtual controller code, etc.)
50
- 3. Dependency updates (Typescript 4, Socket.io 4, etc)
51
-
52
- ## 6.5.2
53
- 1. Bug Fixes
54
- 2. Schedule updates
55
- 3. MQTT Binding updates
56
- 4. LSI calcs for REM (in addition to CSI)
57
-
58
- ## 6.5.1
59
- 1. Init Touch bodies upon startup
60
- 2. *Touch chlorinator fixes
61
- 3. MQTT updates
62
-
63
- ## 6.5.0
64
- 1. Full compatibility with REM (Relay Equipment Manager) for hardware control (ph sensors, orp sensors, pumps, relays, flow sensors)
65
- 1. Upgrades to Influx binding
66
- 1. MQTT alternate bindings
67
- 1. Many, many bug fixes
68
-
69
- ## 6.1.0
70
- 1. Chem controller
71
- 1. MQTT native support
72
- 1. Server based time for *Touch and other non-internet based OCP
73
- 1. Version notifications
74
- 1. IntelliCenter updates for dual bodies, 1.045/1.047 (partial) support
75
- 1. Many bug fixes
76
-
77
- ## 6.0.1
78
- 1. Implement https (no basic auth yet)
79
- 1. API documentation @ https://tagyoureit.github.io/nodejs-poolcontroller-api/
80
- 1. Add timestamp to logs for API calls
81
- 1. #200, #202
82
-
83
- ## 6.0
84
- What's new in 6.0?s
85
-
86
- In short, everything! 6.0 is a complete re-write of the application. Huge props to @rstrouse for his wisdom and guidance in refactoring the code.
87
-
88
- 1. IntelliCenter - now supported
89
- 1. Configuring and running the app - all new. Start over with the Installation instructions.
90
- 1. Automatic detection of your pool equipment. Previous versions of the app would detect the configuration of your pool but you still had to tell the app if you had IntelliTouch/EasyTouch/IntelliCom. This is now done automatically.
91
- 1. Configuration and state information. Config.json now only stores information related to the configuration of the app. There are separate files in the /data directory that store (and persist) pool configuration and state information.
92
- 1. API's - completely changed. See separate API documentation (*link here)
93
- 1. Outbound Sockets - Now more granular to make the web app more responsive
94
- 1. Web app - Now a separate installion for a true client/server metaphore.
95
- 1. Node v12+
96
- 1. `Integrations` are now called `Bindings`. Any integration built on 5.3 need to be upgraded to the binding format. See Readme for a list of currently upgraded bindings.
97
-
98
- ## 5.3.3
99
- #134
100
-
101
- ## 5.3.1
102
- #132
103
-
104
- ## 5.3.0
105
- Fix for #106
106
- Fix for "Error 60" messages
107
- Improved caching of files on browsers. Thanks @arrmo! Now files will be loaded once in the browser and kept in cache instead of reloaded each time.
108
- Improved handling of sessions and graceful closing of the HTTP(s) servers.
109
-
110
- ## 5.2.0
111
- 1. Node 6+ is supported. This app no longer supports Node 4.
112
- 1. Update of modules. Make sure to run `npm i` or `npm upgrade` to get the latest.
113
- 1. Much better support of multiple Intellibrite controllers. We can read both controllers now. There are still some issues with sending changes and help is needed to debug these.
114
- 1. Chlorinator API calls (and UI) will now make changes through Intellitouch when available, or directly to the Intellichlor if it is standalone (aka using the virtual controller)
115
- 1. Decoupled serial port and processing of packets. Should help recovery upon packet errors.
116
- 1. Implementation of #89. Expansion boards are now (better) supported by setting variables in your config.json. See the [config.json](#module_nodejs-poolController--config) section below.
117
- 1. Fix for #95
118
- 1. Fix for #99
119
- 1. Fix for #100
120
-
121
- ## 5.1.1 -
122
- 1. Renamed all 'valves' items to valve to be in line with singular renaming of items
123
- 1. InfluxDB - moved some items that were in tag fields to field keys; added valves
124
- 1. Added days of week (with editing) back to the schedules. Not sure when they disappeared, but they are back now. #92
125
- 1. Added MySQL integration to log all packets to a DB
126
- 1. Fixed PR #95 to allow sub-hour egg timers
127
- 1. Fixed Intellibrite bugs
128
- 1. Started to move some of the inter-communications to emitter events for better micro-services and shorter call stacks (easier debugging; loosely coupled code).
129
- 1. Changed some Influx tags/queries.
130
-
131
- ## 5.1.0 -
132
- 1. Intellibrite support - API's, Sockets and a WebUI. Lights should have the 'Intellbrite' an their circuit function (set this up at the controller) to show up in this section.
133
- Will document more later, but...
134
- /light/mode/:mode
135
- /light/circuit/:circuit/setColor/:color
136
- /light/circuit/:circuit/setSwimDelay/:delay
137
- /light/circuit/:circuit/setPosition/:position
138
-
139
- See the constants.js file and the sections:
140
- strIntellibriteModes (for modes)
141
- lightColors (for setColor)
142
-
143
- ## 5.0.1 -
144
- 1. Fixed Influx error on startup #90
145
- 1. Fixed bad characters in custom names
146
-
147
- ## 5.0.0 -
148
- Make sure to run `npm upgrade`. There are many package updates and changes.
149
-
150
- * Added add/delete/edit schedule
151
- * All sockets/API now singular (`circuits`->`circuit`)
152
- * All sockets/API data now returned with a JSON qualifier. EG `{pump:...}`, `{circuit:...}`
153
- * Intellichem decoding and display
154
- * Changes to `/config` endpoint. It's now included with the `/all` end point since there would be quite a bit of duplication. It still exists standalone (for now) but has much less information in it.
155
- * Moved `hideAux` setting from `configClient.json` (web UI settings) to `config.json` template. In `config.json` template, moved
156
- ```
157
- {equipment: {controller: {circuitFriendlyNames:{1..20}}}}
158
-
159
- // to
160
-
161
- {equipment: {circuit: friendlyName:{1..20},
162
- hideAux: boolean
163
- },
164
- }
165
- ```
166
- to be in line with the other equipment in the pool setup and accomodate the `hideAux` setting.
167
-
168
- * Fixed issue #82
169
- * Extra info from `/config` was being added to the circuit section in `config.json`
170
- * This release includes a new mechanism for updating config.json files. See notes in [config.json](#module_nodejs-poolController--config) section.
171
- * mDNS server. Currently included for SmartThings integration, but in the future can be used for autodiscovery by other applications/devices.
172
- * New `/config` endpoint (beta) to allow applications to get a high level summary of the system.
173
- * Support for two separate (http/https) web servers, each/both with Auth, and also the option to redirect all http to https traffic. Thanks to @arrmo for driving this with #65 and #68.
174
- * A UI for standalone pumps
175
- * All sockets and API's renamed to be SINGULAR. Circuits -> circuit, Schedules->schedule, etc.
176
- * All returned JSON data (API/socket) now has the type qualifier per [#57](https://github.com/tagyoureit/nodejs-poolController/issues/57)
177
- * Make sure to run `npm upgrade`. There are many package updates and changes.
178
- * Intellichem initial support.
179
- * Inactivity timer for both internal connections and web page connections. If a connection is broken, it should re-establish itself automatically now.
180
- * SSDP for auto-discovery by SmartThings or other services
181
-
182
- ## 4.0.0 -
183
- * Changed much in the config.json file
184
- * Save pump programs and chlorinator level to config.json
185
- * Added support for GPM with pumps
186
- * Check for newer versions of the app on github, and dismiss notifications until next release
187
- * Bootstrap configuration is automatically saved in clientConfig.json via UI actions
188
- * Started to introduce some promises into the workflow (mostly with read/write operations)
189
- * Added log-to-file option
190
- * Added capture for Ctrl-C/SIGINT to have a clean exit
191
- * Added InfluxDB database capabilities
192
- * Added support for reading the data from up to 16 pumps. (You can still only control two.)
193
- * Support for up to 50 circuits, 8 pumps
194
- * Delay and Cancel Delay for circuits
195
-
196
- ## 3.1.x -
197
- * Added unit testing for certain areas
198
- * Added setDateTime API/Socket
199
- * Bootstrap panel states are now persistent
200
-
201
- ## 3.0.0 -
202
- * Upgraded pump logic
203
-
204
- ## 2.0.0 -
205
- * https, Authentication
206
- * Completely refactored code. Integrated BottleJS (https://github.com/young-steveo/bottlejs) for dependency injection and service locator functions
207
- * Integrations to loosely couple add-ons
208
-
209
- ## 1.0.0 -
210
- * Much of the code reworked and refactored
211
- * Added Bootstrap UI by @arrmo
212
- * Better standalone pump control (@bluemantwo was super-helpful here, too!)
213
- * More accurate recognition of packets
214
- * Super fast speed improvements
215
- * Outgoing packets are now sent based on a timer (previously number of incoming packets)
1
+ # Changelog
2
+
3
+ ## 7.6.1
4
+ 1. Many bugfixes: Intellichem, Touch body capacities, Ultratemp heaters, Nixie, more...
5
+ 2. Add env variables for Docker setup: POOL_RS485_PORT, POOL_NET_CONNECT, POOL_NET_HOST, POOL_NET_PORT, SOURCE_COMMIT, SOURCE_BRANCH
6
+ 3. Update dependencies
7
+ ## 7.6
8
+ 1. MasterTemp RS485 support for Nixie and IntelliCenter
9
+ 2. Nixie Valve Rotation delay
10
+ 3. Nixie Heater Cooldown delay
11
+ 4. Nixie Cleaner Start delay
12
+ 5. Nixie Cleaner Shutdown on Solar
13
+ 6. Nixie Delay Cancel
14
+
15
+ ## 7.5.1
16
+ 1. Backup/restore fixes
17
+ 2. Egg timer expiration
18
+ 3. Bug Fixes
19
+ 4. dashPanel/messageManager Filter
20
+ 5. RS485 refactor
21
+
22
+ ## 7.5
23
+ 1. Backup/restore
24
+ 2. Intellitouch add expansion modules
25
+ ## 7.4
26
+ 1. Filter object, emit, monitoring
27
+
28
+ ## 7.3.1
29
+ 1. Influx 2.0 support
30
+
31
+ ## 7.3
32
+ 1. Dynamic chlorinating % based on ORP demand for Nixie
33
+ 2. Docker creation updates
34
+
35
+ ## 7.2
36
+ 1. Refactor Intellichem and Chem Controllers
37
+
38
+ ## 7.1.1
39
+ 1. Added end time for circuits to show eggtimer/schedule off times
40
+ 2. Ultratemp updates
41
+ 3. Heater logic refactored
42
+ 4. Message response logic refactored
43
+ 5. Intellichem updates
44
+
45
+
46
+ ## 7.1.0
47
+ 1. Moved virtual chlorinator code and control to Nixie
48
+ 2. Moved virtual pump code and control to Nixie; Nixie supports SS, DS, SuperFlo, VS, VF, VSF
49
+ 3. MQTT changes
50
+ 4. Outbound processing for packets now has a scope. Previously if an outbound packet would receive a response we would clear all of the similar packets off the queue. EG if a user requests circuit 2 and 3 to be turned on, we would clear out the outbound message for 3. Now the code is more selective about what "scope" is considered for a successful response.
51
+
52
+ ## 7.0.0
53
+ 1. Upgrades to setup/sync between njsPC and REM
54
+ 2. Significant steps to njsPC (Nixie) acting as a standalone pool controller (virtual controller heaters, move virtual controller code, etc.)
55
+ 3. Dependency updates (Typescript 4, Socket.io 4, etc)
56
+
57
+ ## 6.5.2
58
+ 1. Bug Fixes
59
+ 2. Schedule updates
60
+ 3. MQTT Binding updates
61
+ 4. LSI calcs for REM (in addition to CSI)
62
+
63
+ ## 6.5.1
64
+ 1. Init Touch bodies upon startup
65
+ 2. *Touch chlorinator fixes
66
+ 3. MQTT updates
67
+
68
+ ## 6.5.0
69
+ 1. Full compatibility with REM (Relay Equipment Manager) for hardware control (ph sensors, orp sensors, pumps, relays, flow sensors)
70
+ 1. Upgrades to Influx binding
71
+ 1. MQTT alternate bindings
72
+ 1. Many, many bug fixes
73
+
74
+ ## 6.1.0
75
+ 1. Chem controller
76
+ 1. MQTT native support
77
+ 1. Server based time for *Touch and other non-internet based OCP
78
+ 1. Version notifications
79
+ 1. IntelliCenter updates for dual bodies, 1.045/1.047 (partial) support
80
+ 1. Many bug fixes
81
+
82
+ ## 6.0.1
83
+ 1. Implement https (no basic auth yet)
84
+ 1. API documentation @ https://tagyoureit.github.io/nodejs-poolcontroller-api/
85
+ 1. Add timestamp to logs for API calls
86
+ 1. #200, #202
87
+
88
+ ## 6.0
89
+ What's new in 6.0?s
90
+
91
+ In short, everything! 6.0 is a complete re-write of the application. Huge props to @rstrouse for his wisdom and guidance in refactoring the code.
92
+
93
+ 1. IntelliCenter - now supported
94
+ 1. Configuring and running the app - all new. Start over with the Installation instructions.
95
+ 1. Automatic detection of your pool equipment. Previous versions of the app would detect the configuration of your pool but you still had to tell the app if you had IntelliTouch/EasyTouch/IntelliCom. This is now done automatically.
96
+ 1. Configuration and state information. Config.json now only stores information related to the configuration of the app. There are separate files in the /data directory that store (and persist) pool configuration and state information.
97
+ 1. API's - completely changed. See separate API documentation (*link here)
98
+ 1. Outbound Sockets - Now more granular to make the web app more responsive
99
+ 1. Web app - Now a separate installion for a true client/server metaphore.
100
+ 1. Node v12+
101
+ 1. `Integrations` are now called `Bindings`. Any integration built on 5.3 need to be upgraded to the binding format. See Readme for a list of currently upgraded bindings.
102
+
103
+ ## 5.3.3
104
+ #134
105
+
106
+ ## 5.3.1
107
+ #132
108
+
109
+ ## 5.3.0
110
+ Fix for #106
111
+ Fix for "Error 60" messages
112
+ Improved caching of files on browsers. Thanks @arrmo! Now files will be loaded once in the browser and kept in cache instead of reloaded each time.
113
+ Improved handling of sessions and graceful closing of the HTTP(s) servers.
114
+
115
+ ## 5.2.0
116
+ 1. Node 6+ is supported. This app no longer supports Node 4.
117
+ 1. Update of modules. Make sure to run `npm i` or `npm upgrade` to get the latest.
118
+ 1. Much better support of multiple Intellibrite controllers. We can read both controllers now. There are still some issues with sending changes and help is needed to debug these.
119
+ 1. Chlorinator API calls (and UI) will now make changes through Intellitouch when available, or directly to the Intellichlor if it is standalone (aka using the virtual controller)
120
+ 1. Decoupled serial port and processing of packets. Should help recovery upon packet errors.
121
+ 1. Implementation of #89. Expansion boards are now (better) supported by setting variables in your config.json. See the [config.json](#module_nodejs-poolController--config) section below.
122
+ 1. Fix for #95
123
+ 1. Fix for #99
124
+ 1. Fix for #100
125
+
126
+ ## 5.1.1 -
127
+ 1. Renamed all 'valves' items to valve to be in line with singular renaming of items
128
+ 1. InfluxDB - moved some items that were in tag fields to field keys; added valves
129
+ 1. Added days of week (with editing) back to the schedules. Not sure when they disappeared, but they are back now. #92
130
+ 1. Added MySQL integration to log all packets to a DB
131
+ 1. Fixed PR #95 to allow sub-hour egg timers
132
+ 1. Fixed Intellibrite bugs
133
+ 1. Started to move some of the inter-communications to emitter events for better micro-services and shorter call stacks (easier debugging; loosely coupled code).
134
+ 1. Changed some Influx tags/queries.
135
+
136
+ ## 5.1.0 -
137
+ 1. Intellibrite support - API's, Sockets and a WebUI. Lights should have the 'Intellbrite' an their circuit function (set this up at the controller) to show up in this section.
138
+ Will document more later, but...
139
+ /light/mode/:mode
140
+ /light/circuit/:circuit/setColor/:color
141
+ /light/circuit/:circuit/setSwimDelay/:delay
142
+ /light/circuit/:circuit/setPosition/:position
143
+
144
+ See the constants.js file and the sections:
145
+ strIntellibriteModes (for modes)
146
+ lightColors (for setColor)
147
+
148
+ ## 5.0.1 -
149
+ 1. Fixed Influx error on startup #90
150
+ 1. Fixed bad characters in custom names
151
+
152
+ ## 5.0.0 -
153
+ Make sure to run `npm upgrade`. There are many package updates and changes.
154
+
155
+ * Added add/delete/edit schedule
156
+ * All sockets/API now singular (`circuits`->`circuit`)
157
+ * All sockets/API data now returned with a JSON qualifier. EG `{pump:...}`, `{circuit:...}`
158
+ * Intellichem decoding and display
159
+ * Changes to `/config` endpoint. It's now included with the `/all` end point since there would be quite a bit of duplication. It still exists standalone (for now) but has much less information in it.
160
+ * Moved `hideAux` setting from `configClient.json` (web UI settings) to `config.json` template. In `config.json` template, moved
161
+ ```
162
+ {equipment: {controller: {circuitFriendlyNames:{1..20}}}}
163
+
164
+ // to
165
+
166
+ {equipment: {circuit: friendlyName:{1..20},
167
+ hideAux: boolean
168
+ },
169
+ }
170
+ ```
171
+ to be in line with the other equipment in the pool setup and accomodate the `hideAux` setting.
172
+
173
+ * Fixed issue #82
174
+ * Extra info from `/config` was being added to the circuit section in `config.json`
175
+ * This release includes a new mechanism for updating config.json files. See notes in [config.json](#module_nodejs-poolController--config) section.
176
+ * mDNS server. Currently included for SmartThings integration, but in the future can be used for autodiscovery by other applications/devices.
177
+ * New `/config` endpoint (beta) to allow applications to get a high level summary of the system.
178
+ * Support for two separate (http/https) web servers, each/both with Auth, and also the option to redirect all http to https traffic. Thanks to @arrmo for driving this with #65 and #68.
179
+ * A UI for standalone pumps
180
+ * All sockets and API's renamed to be SINGULAR. Circuits -> circuit, Schedules->schedule, etc.
181
+ * All returned JSON data (API/socket) now has the type qualifier per [#57](https://github.com/tagyoureit/nodejs-poolController/issues/57)
182
+ * Make sure to run `npm upgrade`. There are many package updates and changes.
183
+ * Intellichem initial support.
184
+ * Inactivity timer for both internal connections and web page connections. If a connection is broken, it should re-establish itself automatically now.
185
+ * SSDP for auto-discovery by SmartThings or other services
186
+
187
+ ## 4.0.0 -
188
+ * Changed much in the config.json file
189
+ * Save pump programs and chlorinator level to config.json
190
+ * Added support for GPM with pumps
191
+ * Check for newer versions of the app on github, and dismiss notifications until next release
192
+ * Bootstrap configuration is automatically saved in clientConfig.json via UI actions
193
+ * Started to introduce some promises into the workflow (mostly with read/write operations)
194
+ * Added log-to-file option
195
+ * Added capture for Ctrl-C/SIGINT to have a clean exit
196
+ * Added InfluxDB database capabilities
197
+ * Added support for reading the data from up to 16 pumps. (You can still only control two.)
198
+ * Support for up to 50 circuits, 8 pumps
199
+ * Delay and Cancel Delay for circuits
200
+
201
+ ## 3.1.x -
202
+ * Added unit testing for certain areas
203
+ * Added setDateTime API/Socket
204
+ * Bootstrap panel states are now persistent
205
+
206
+ ## 3.0.0 -
207
+ * Upgraded pump logic
208
+
209
+ ## 2.0.0 -
210
+ * https, Authentication
211
+ * Completely refactored code. Integrated BottleJS (https://github.com/young-steveo/bottlejs) for dependency injection and service locator functions
212
+ * Integrations to loosely couple add-ons
213
+
214
+ ## 1.0.0 -
215
+ * Much of the code reworked and refactored
216
+ * Added Bootstrap UI by @arrmo
217
+ * Better standalone pump control (@bluemantwo was super-helpful here, too!)
218
+ * More accurate recognition of packets
219
+ * Super fast speed improvements
220
+ * Outgoing packets are now sent based on a timer (previously number of incoming packets)
216
221
  * Added ISY support (@bluemantwo was super-helpful here, too!)
package/Dockerfile CHANGED
@@ -1,17 +1,17 @@
1
- FROM node:lts-alpine3.12 AS build
2
- RUN apk add --no-cache make gcc g++ python3 linux-headers udev tzdata
3
- WORKDIR /app
4
- COPY package*.json ./
5
- RUN npm ci
6
- COPY . .
7
- RUN npm run build
8
- RUN npm ci --production
9
-
10
- FROM node:lts-alpine3.12 as prod
11
- RUN apk add git
12
- RUN mkdir /app && chown node:node /app
13
- WORKDIR /app
14
- COPY --chown=node:node --from=build /app .
15
- USER node
16
- ENV NODE_ENV=production
17
- ENTRYPOINT ["node", "dist/app.js"]
1
+ FROM node:lts-alpine3.12 AS build
2
+ RUN apk add --no-cache make gcc g++ python3 linux-headers udev tzdata
3
+ WORKDIR /app
4
+ COPY package*.json ./
5
+ RUN npm ci
6
+ COPY . .
7
+ RUN npm run build
8
+ RUN npm ci --production
9
+
10
+ FROM node:lts-alpine3.12 as prod
11
+ RUN apk add git
12
+ RUN mkdir /app && chown node:node /app
13
+ WORKDIR /app
14
+ COPY --chown=node:node --from=build /app .
15
+ USER node
16
+ ENV NODE_ENV=production
17
+ ENTRYPOINT ["node", "dist/app.js"]
package/Gruntfile.js CHANGED
@@ -1,41 +1,41 @@
1
- module.exports = function(grunt) {
2
-
3
- grunt.initConfig({
4
- usebanner: {
5
- taskName: {
6
- options: {
7
- position: 'top',
8
- banner: `/* nodejs-poolController. An application to control pool equipment.
9
- Copyright (C) 2016, 2017. Russell Goldin, tagyoureit. russ.goldin@gmail.com
10
-
11
- This program is free software: you can redistribute it and/or modify
12
- it under the terms of the GNU Affero General Public License as
13
- published by the Free Software Foundation, either version 3 of the
14
- License, or (at your option) any later version.
15
-
16
- This program is distributed in the hope that it will be useful,
17
- but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- GNU Affero General Public License for more details.
20
-
21
- You should have received a copy of the GNU Affero General Public License
22
- along with this program. If not, see <http://www.gnu.org/licenses/>.
23
- */`,
24
- linebreak: true,
25
- replace: false
26
- },
27
- files: {
28
- src: [ 'config/*.ts', 'controller/**/*.ts', 'logger/*.ts', 'web/**/*.ts', 'app.ts' ]
29
- }
30
- }
31
- }
32
- })
33
-
34
- grunt.loadNpmTasks('grunt-banner');
35
-
36
- }
37
-
38
-
39
-
40
-
1
+ module.exports = function(grunt) {
2
+
3
+ grunt.initConfig({
4
+ usebanner: {
5
+ taskName: {
6
+ options: {
7
+ position: 'top',
8
+ banner: `/* nodejs-poolController. An application to control pool equipment.
9
+ Copyright (C) 2016, 2017. Russell Goldin, tagyoureit. russ.goldin@gmail.com
10
+
11
+ This program is free software: you can redistribute it and/or modify
12
+ it under the terms of the GNU Affero General Public License as
13
+ published by the Free Software Foundation, either version 3 of the
14
+ License, or (at your option) any later version.
15
+
16
+ This program is distributed in the hope that it will be useful,
17
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ GNU Affero General Public License for more details.
20
+
21
+ You should have received a copy of the GNU Affero General Public License
22
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
23
+ */`,
24
+ linebreak: true,
25
+ replace: false
26
+ },
27
+ files: {
28
+ src: [ 'config/*.ts', 'controller/**/*.ts', 'logger/*.ts', 'web/**/*.ts', 'app.ts' ]
29
+ }
30
+ }
31
+ }
32
+ })
33
+
34
+ grunt.loadNpmTasks('grunt-banner');
35
+
36
+ }
37
+
38
+
39
+
40
+
41
41