Skip to content

Commit b3d31a9

Browse files
committed
bug fixes
1 parent 9e870c2 commit b3d31a9

20 files changed

Lines changed: 79 additions & 59 deletions

File tree

.snyk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ ignore:
123123
- snyk-go-plugin > graphlib > lodash:
124124
reason: None given
125125
expires: '2018-05-27T15:05:54.491Z'
126+
request-promise > request-promise-core > lodash:
127+
reason: None given
128+
expires: '2018-07-03T23:22:22.863Z'
126129
- node-ssdp > async > lodash:
127130
reason: None given
128131
expires: '2018-04-01T03:18:10.568Z'

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11

2-
# nodejs-poolController - Version 5.0.1
2+
# nodejs-poolController - Version 5.1.1
33

44

55
[![Join the chat at https://gitter.im/nodejs-poolController/Lobby](https://badges.gitter.im/nodejs-poolController/Lobby.svg)](https://gitter.im/nodejs-poolController/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/tagyoureit/nodejs-poolController.svg?branch=master)](https://travis-ci.org/tagyoureit/nodejs-poolController) [![Coverage Status](https://coveralls.io/repos/github/tagyoureit/nodejs-poolController/badge.svg?branch=master)](https://coveralls.io/github/tagyoureit/nodejs-poolController?branch=master) [![Known Vulnerabilities](https://snyk.io/test/github/tagyoureit/nodejs-poolcontroller/badge.svg)](https://snyk.io/test/github/tagyoureit/nodejs-poolcontroller)
66

7-
#### 5.0.1
8-
1. Fixed Influx error on startup #90
9-
1. Fixed bad characters in custom names
10-
7+
5.1.1
8+
1. Renamed all 'valves' items to valve to be in line with singular renaming of items
9+
1. InfluxDB - moved some items that were in tag fields to field keys; added valves
1110

1211
#### 5.1.0 Highlights
1312
1. Intellibrite support - API's, Sockets and a WebUI
@@ -21,6 +20,13 @@ See the constants.js file and the sections:
2120
strIntellibriteModes (for modes)
2221
lightColors (for setColor)
2322

23+
24+
#### 5.0.1
25+
1. Fixed Influx error on startup #90
26+
1. Fixed bad characters in custom names
27+
28+
29+
2430
#### 5.0.0 Highlights
2531

2632
Make sure to run `npm upgrade`. There are many package updates and changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@
7676
"snyk": "^1.80.1"
7777
},
7878
"snyk": true
79-
}
79+
}

specs/assets/config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@
149149
}
150150
},
151151
"integrations": {}
152-
}
152+
}

specs/helpers/initialize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ initAllAsync = function(configLocation, sysDefaultLocation) {
4040
bottle.container.intellitouch.init() // synchronous
4141
bottle.container.temperatures.init() // synchronous
4242
bottle.container.UOM.init() // synchronous
43-
bottle.container.valves.init() // synchronous
43+
bottle.container.valve.init() // synchronous
4444
bottle.container.queuePacket.init() // synchronous
4545
bottle.container.writePacket.init() // synchronous
4646
bottle.container.intellitouch.init() // synchronous

specs/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('nodejs-poolController', function () {
8585
// bottle.container.intellitouch.init()
8686
// bottle.container.temperatures.init()
8787
// bottle.container.UOM.init()
88-
// bottle.container.valves.init()
88+
// bottle.container.valve.init()
8989
// })
9090
// .then(resolve)
9191
// .catch(function (err) {

src/etc/constants.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function(container) {
3636
EQUIP2: 9,
3737
EQUIP3: 10,
3838
UOM: 15, //Celsius (4) or Farenheit (0); Also Service/Timeout. See strRunMode below.
39-
VALVES: 16,
39+
VALVE: 16,
4040
DELAY: 18, //64==??; 65-135 (for 50 circuits) is the circuit that is currently delayed.
4141
UNKNOWN: 19, //Something to do with heat.
4242
POOL_TEMP: 20,
@@ -337,7 +337,7 @@ module.exports = function(container) {
337337
10: 'SAL Light',
338338
11: 'Photon Gen',
339339
12: 'Color Wheel',
340-
13: 'Valves',
340+
13: 'Valve',
341341
14: 'Spillway',
342342
15: 'Floor Cleaner',
343343
16: 'Intellibrite',
@@ -390,7 +390,7 @@ module.exports = function(container) {
390390
25: 'IntelliChlor Status',
391391
27: 'Pump Config (Extended)',
392392
29: 'Valve Status',
393-
30: 'High Speed Circuits for Valves',
393+
30: 'High Speed Circuits for Valve',
394394
32: 'is4/is10 Settings',
395395
33: 'Intelliflo Spa Side Remote settings',
396396
34: 'Solar/Heat Pump Status',
@@ -515,7 +515,7 @@ module.exports = function(container) {
515515
}
516516

517517

518-
var strValves = {
518+
var strValve = {
519519
3: 'Pool',
520520
15: 'Spa',
521521
48: 'Heater',
@@ -661,7 +661,7 @@ module.exports = function(container) {
661661
strChlorinatorActions: strChlorinatorActions,
662662
strControllerActions: strControllerActions,
663663
strRunMode: strRunMode,
664-
strValves: strValves,
664+
strValve: strValve,
665665
heatModeStr: heatModeStr,
666666
heatMode: heatMode,
667667
ctrl: ctrl,

src/lib/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ bottle.factory('circuit', require(__dirname + '/equipment/circuit.js'))
170170
bottle.factory('temperatures', require(__dirname + '/equipment/temperatures.js'))
171171
bottle.factory('time', require(__dirname + '/equipment/time.js'))
172172
bottle.factory('UOM', require(__dirname + '/equipment/UOM.js'))
173-
bottle.factory('valves', require(__dirname + '/equipment/valves.js'))
173+
bottle.factory('valve', require(__dirname + '/equipment/valve.js'))
174174
bottle.factory('customNames', require(__dirname + '/equipment/customnames.js'))
175175
bottle.factory('schedule', require(__dirname + '/equipment/schedule.js'))
176176
bottle.factory('intellitouch', require(__dirname + '/equipment/intellitouch.js'))
@@ -220,7 +220,7 @@ var initAsync = exports.initAsync = function() {
220220
bottle.container.intellitouch.init()
221221
bottle.container.temperatures.init()
222222
bottle.container.UOM.init()
223-
bottle.container.valves.init()
223+
bottle.container.valve.init()
224224
bottle.container.intellichem.init()
225225

226226
// bottle.container.logger.info('Intro: ', bottle.container.settings.displayIntroMsg())

src/lib/comms/inbound/controller/2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = function(container) {
5050

5151
//mask the data[6] with 0011 shift right two places for 1100 mask (11xx-->11)
5252
container.heat.setHeatModeFromController(data[c.controllerStatusPacketFields.HEATER_MODE]&3, data[c.controllerStatusPacketFields.HEATER_MODE] >> 2)
53-
container.valves.setValves(data)
53+
container.valve.setValve(data)
5454

5555
status.runmode = c.strRunMode[data[c.controllerStatusPacketFields.UOM] & 129]; // more here?
5656
container.UOM.setUOM((data[c.controllerStatusPacketFields.UOM] & 4) >> 3)

src/lib/comms/inbound/controller/29.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function(container) {
3333

3434

3535
if (container.settings.get('logMessageDecoding'))
36-
container.logger.debug('Msg#: %s Valves status. Valve B --> %s (%s) Full packet: %s', counter, valveBFriendlyName, valveBName, data);
36+
container.logger.debug('Msg#: %s Valve status. Valve B --> %s (%s) Full packet: %s', counter, valveBFriendlyName, valveBName, data);
3737

3838
return true
3939
}

0 commit comments

Comments
 (0)