weatherstation/firmware/influxdb.ino

8 lines
576 B
Arduino
Raw Normal View History

void pushToInfluxDB(String device, float sensorValues[]) {
influxdb.write("weather,device=" + device + " temperature=" + String(sensorValues[SENSOR_TEMPERATURE]));
2017-12-09 18:07:46 +01:00
//influxdb.write("weather,device=" + device + " humidity=" + String(sensorValues[SENSOR_HUMIDITY]));
//influxdb.write("weather,device=" + device + " light=" + String(sensorValues[SENSOR_LIGHT]));
//influxdb.write("weather,device=" + device + " windspeed=" + String(sensorValues[SENSOR_WINDSPEED]));
//influxdb.write("weather,device=" + device + " pressure=" + String(sensorValues[SENSOR_PRESSURE]));
2017-11-07 22:20:14 +01:00
}