示例#1
0
], err => {
  if(err) {
    logError(err);
    throw err;
  }

  logInfo(`rrd file ${rrdFile} created`);

  rrdtool.info(rrdFile, rrdInfo => {
    logInfo(rrdInfo);
  });

  rrdtool.update(rrdFile, 'windThreshold:sunThreshold:temperatureKty:' +
    'temperatureDht:humidity:temperatureOutside:weatherCode:flagSun:' +
    'flagWindalarm:flagNight',
    [[rrdNow, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].join(':')],
    errUpdate => {
      if(errUpdate) {
        logError(errUpdate);
      }

      logInfo('ok');

      rrdtool.info(rrdFile, rrdInfo => {
        logInfo(rrdInfo);
      });
    });
});
示例#2
0
    errUpdate => {
      if(errUpdate) {
        logError(errUpdate);
      }

      logInfo('ok');

      rrdtool.info(rrdFile, rrdInfo => {
        logInfo(rrdInfo);
      });
    });