Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
goedh452 authored Jun 22, 2019
1 parent 3c704eb commit c3bf9ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ HttpSprinkler.prototype = {
this.valveService.getCharacteristic(Characteristic.RemainingDuration)
.updateValue(timer);

this.console("Turning Valve " + this.name + " on with Timer set to: " + timer + " seconds");
console.log("Turning Valve " + this.name + " on with Timer set to: " + timer + " seconds");

this.valveService.timer = setTimeout(() => {
this.console("Valve Timer Expired. Shutting off Valve");
console.log("Valve Timer Expired. Shutting off Valve");

// use 'setvalue' when the timer ends so it triggers the .on('set'...) event
this.valveService.getCharacteristic(Characteristic.Active).setValue(0);
Expand Down

0 comments on commit c3bf9ac

Please sign in to comment.