Added user specific humidity/light calculation factor constants.
This commit is contained in:
parent
b850263675
commit
b4284ccb3c
2 changed files with 7 additions and 3 deletions
|
@ -11,6 +11,9 @@
|
||||||
//#define WEBUPDATER_FEATURE
|
//#define WEBUPDATER_FEATURE
|
||||||
#define BATTERY_POWERED
|
#define BATTERY_POWERED
|
||||||
|
|
||||||
|
const float HUMIDITY_FACTOR = 1.0
|
||||||
|
const float LIGHT_FACTOR = 1.0
|
||||||
|
|
||||||
// InfluxDB credentials
|
// InfluxDB credentials
|
||||||
const char *INFLUXDB_HOST = "hostname";
|
const char *INFLUXDB_HOST = "hostname";
|
||||||
const uint16_t INFLUXDB_PORT = 80;
|
const uint16_t INFLUXDB_PORT = 80;
|
||||||
|
|
|
@ -14,7 +14,7 @@ float fetchPressure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
float fetchHumidity() {
|
float fetchHumidity() {
|
||||||
return bme.readHumidity();
|
return bme.readHumidity() * HUMIDITY_FACTOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
float fetchLight() {
|
float fetchLight() {
|
||||||
|
@ -28,7 +28,7 @@ float fetchLight() {
|
||||||
apds.getColorData(&red, &green, &blue, &white);
|
apds.getColorData(&red, &green, &blue, &white);
|
||||||
//calculate lux
|
//calculate lux
|
||||||
lux = apds.calculateLux(red, green, blue);
|
lux = apds.calculateLux(red, green, blue);
|
||||||
return lux;
|
return lux * LIGHT_FACTOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _anemometerInterrupt() {
|
void _anemometerInterrupt() {
|
||||||
|
@ -75,3 +75,4 @@ float isBatCharging() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue