View airQualityHandler
/** | |
* PM2.5/PM10 Air Quality Particulate Handler for Node-Red | |
* | |
* * | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed |
View heartbeats.js
function Heartbeat(context,width,height) { | |
var h = this; | |
h.context = context; | |
h.width = width; | |
h.height = height; | |
h.baseline = Math.round(h.height / 2); | |
h.context.moveTo(h.x, h.y); | |
h.context.strokeStyle = "#668CFF"; |