homebridge-website-to-camera
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -69,4 +69,6 @@ "use strict"; | ||
if (this.conf.cacheTime > 0 & !!this.cachedImage && this.conf.cacheTime < new Date().getTime() - this.lastSnapshotTime) { | ||
if (this.conf.cacheTime > 0 & !!this.cachedImage && (new Date().getTime() - this.lastSnapshotTime) < (this.conf.cacheTime * 1000)) { | ||
this.log("Returning cached image"); | ||
this.log.debug("Cached Time:", this.conf.cacheTime); | ||
this.log.debug("lastSnapshotTime:", this.lastSnapshotTime); | ||
callback(null, this.cachedImage); | ||
@@ -73,0 +75,0 @@ return; |
{ | ||
"name": "homebridge-website-to-camera", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "shows the screenshot of a website as camera (image)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1815121
362