Demo entry 6354605

t

   

Submitted by anonymous on Apr 09, 2017 at 13:30
Language: JavaScript. Code size: 429 Bytes.

router.get('/data', function(req,res) {

  var data = {
    temp: req.query.t,
    humi: req.query.h,
    dust: { Analog: req.query.da, Voltage: req.query.dv, Density: req.query.d },
    grayscale: req.query.g,
    temt6000: req.query.t6000,
    // pt550: req.query.l1,
    // gl5516: req.query.l2,
    // gas_cm: req.query.cm
  };

  db.saveRoomdata(req.query.b, req.query.f, req.query.r, req.query.opt, data);
});

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).