node-red-contrib-eskomsepush 0.0.15 → 0.0.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-eskomsepush",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "Node-RED interface for the Eskomsepush API",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -140,16 +140,16 @@ module.exports = function (RED) {
140
140
  node.warn('API allowance count: ' + EskomSePushInfo.api.info.allowance.count)
141
141
  node.warn('Calculated sleeptime: ' + EskomSePushInfo.calc.sleeptime)
142
142
  }
143
- if (EskomSePushInfo.calc.sleeptime < 60) {
144
- EskomSePushInfo.calc.sleeptime = 60
143
+ if (EskomSePushInfo.calc.sleeptime < 10) {
144
+ EskomSePushInfo.calc.sleeptime = 10
145
145
  if (node.config.verbose === true) {
146
- node.warn('Calculated sleeptime was less than 60. Set it to 60: ' + EskomSePushInfo.calc.sleeptime)
146
+ node.warn('Calculated sleeptime was less than 10. Set it to 10: ' + EskomSePushInfo.calc.sleeptime)
147
147
  }
148
148
  }
149
149
  } else {
150
- EskomSePushInfo.calc.sleeptime = 120
150
+ EskomSePushInfo.calc.sleeptime = 60
151
151
  if (node.config.verbose === true) {
152
- node.warn('Set sleeptime to 120 since allowance count is low: ' + EskomSePushInfo.calc.sleeptime)
152
+ node.warn('Set sleeptime to 60 since allowance count is low: ' + EskomSePushInfo.calc.sleeptime)
153
153
  }
154
154
  }
155
155