node-red-contrib-dashboard-bar-chart-data
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -100,3 +100,5 @@ module.exports = function(RED) { | ||
var reading = Number(msg.payload); | ||
var curDate = new Date(); | ||
var ts = msg.ts || msg.timestamp || (+ new Date()); | ||
if (ts <= 9999999999) { ts *= 1000 } //sec ts to millis ts, only works until 2286-11-20 :( | ||
var curDate = new Date(ts); | ||
saveTopic(msg.topic, store); //save topic to store (for cleaning and handling of multiple topics) | ||
@@ -103,0 +105,0 @@ var topics = store.get('topics'); |
{ | ||
"name": "node-red-contrib-dashboard-bar-chart-data", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "Transforms sensor measurements or meter readings to be displayed in dashboard-chart as bar-chart", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/arneman/node-red-contrib-dashboard-bar-chart-data", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68857
302