Skip to content

Releases: dirkjanfaber/node-red-contrib-eskomsepush

v0.0.18

23 May 11:23
Compare
Choose a tag to compare
  • Fixes a crash of the node when there is no loadshedding going on (issue #12)

Full Changelog: v0.0.17...v0.0.18

v0.0.17

19 Sep 09:26
Compare
Choose a tag to compare
  • Fix in brackets (issue #11) Thanks again @nicopret1
  • Reduce the sleeptime (minimum 10 minutes, maximum 60 minutes)

v0.0.15

18 Sep 18:08
Compare
Choose a tag to compare
  • Fixes issue #10 ("TypeError: dates.stages[(EskomSePushInfo.calc.stage - 1)] is not iterable")
  • Adds API allowance limit to keep API calls from being used by the node

Thanks @nicopret1 for the fixes and suggestions.

v0.0.14

11 Sep 14:18
Compare
Choose a tag to compare
  • Add calc.next.isHigherStage (issue #7 )

v0.0.13

12 Jul 07:17
Compare
Choose a tag to compare

Fixing an issue:

  • "TypeError: dates.stages[EskomSePushInfo.calc.stage] is not iterable" (issue #5)

v0.0.12

16 Jun 09:14
Compare
Choose a tag to compare

Fixing some issues:

  • When a schedule end time is on the next day, it was ignored. That is no longer the case.
  • As the API resets at 2AM instead of midnight, the calculation until then is used instead for determining the sleep time between calls. Also added a check that the sleep time cannot be smaller than 10 minutes.

New feature

  • Added an input to overrule some of the current behavior. Inserting a timestamp will output the data directly. Inserting of of the strings allowance, area or stage will cause the node to fetch the requested part.

v0.0.11

14 Jun 10:01
Compare
Choose a tag to compare

Quite a big rewrite of a lot of the main functions, allowing for easier debugging of the code.

Also some new functionality added:

  • Depending on the amount of API calls left for the day, the sleep time between calls is either increased or decreased.
  • There now is a msg.payload.calc field, containing extra information like the seconds to the next state change and the start and end time (as javascript new Date(), so in milliseconds after the epoch), duration in seconds and more.

v0.0.8

10 May 08:55
Compare
Choose a tag to compare
  • Fix in checking when events are active or not.
  • Moved updating status to own function
  • More typError checking
  • Improved documentation