UNPKG

co2monitor

Version:

Node for the Dostmann CO2 Monitor mini. If there are permission errors on LIBUSB, you have to add a new file to '/etc/udev/rules.d' with the following record SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev"

72 lines (68 loc) 2.62 kB
<script type="text/javascript"> RED.nodes.registerType('co2Monitor',{ category: 'Sensor', color: '#a6bbcf', defaults: { sensorid: {value:"", require:false}, room: {value:"", require:false}, desc: {value:"", require:false} }, inputs:0, outputs:5, icon: "serial.png", label: function() { return this.name||"co2Monitor"; } }); </script> <script type="text/x-red" data-template-name="co2Monitor"> <div class="form-row"> <h6>Information Prefix</h6> <hr> </div> <div class="form-row"> <label for="node-input-sensorid"><i class="fa fa-bookmark"></i> Sensor-ID:</label> <input type="text" id="node-input-sensorid"> </div> <div class="form-row"> <label for="node-input-room"><i class="fa fa-bookmark"></i> Room:</label> <input type="text" id="node-input-room"> </div> <div class="form-row"> <label for="node-input-desc"><i class="fa fa-bookmark"></i> Description:</label> <input type="text" id="node-input-desc"> </div> </script> <script type="text/x-red" data-help-name="co2Monitor"> <div id="Info"> <h6>Informations</h6> <p>this is a node for the <br><strong>DOSTMANN AirCO2ntrol Mini</strong><br> based on code by <a href="https://hackaday.io/project/5301-reverse-engineering-a-low-cost-usb-co-monitor/log/17909-all-your-base-are-belong-to-us" target="_blank">henryk ploetz</a>, who has reverse engineered the protocol.</p> <h6>Measuring range</h6> <table class="table table-condensed"> <tr><td>CO2</td><td>0 - 3000 ppm</td></tr> <tr><td>Temperature</td><td>0 - 50 °C</td></tr> </table> </div> <hr> <div id="output"> <h6>Output Options</h6> <table class="table table-condensed"> <tr><td>Output1:</td><td>CO2 value in "ppm"</td></tr> <tr><td>Output2:</td><td>Temperature value in "celsius"</td></tr> <tr><td>Output3:</td><td>Temperature value in "fahrenheit"</td></tr> <tr><td>Output4:</td><td>Humidity value in "percent" (only avail on coach, on mini its always 0</td></tr> <tr><td>Output5:</td><td>Message payload object of all values</td></tr> </table> </div> <hr> <div id="output"> <h6>Information Prefix</h6> <p>These informations will be sent within the payload.</p> <table class="table table-condensed"> <tr><td>sensorid</td><td>add a Sensor-ID</td></tr> <tr><td>room</td><td>add the room name</td></tr> <tr><td>description</td><td>add a description</td></tr> </table> </div> </script>