Fixed bug rain meter and luminosity meter
This commit is contained in:
@@ -42,6 +42,9 @@
|
||||
* the circuitry and is therefore about 1.5 degrees above ambient temperature. The BMP280 does not heat up.
|
||||
* - Added SEN0562 luminosity sensor
|
||||
*
|
||||
* 2025-01-26: - Bug rainmeter fixed
|
||||
* - Bug luminosity sensor fixed
|
||||
*
|
||||
* See CHANGELOG.md
|
||||
*
|
||||
**********************************************************************************/
|
||||
@@ -241,11 +244,11 @@ void ReadSEN0562()
|
||||
|
||||
ReadSEN0562_register(0x10, buf); //Register address 0x10
|
||||
data = buf[0] << 8 | buf[1];
|
||||
MeasuredData.Luminosity = (((float)data )/1.2)*100;
|
||||
MeasuredData.Luminosity = ((float)data )/1.2;
|
||||
|
||||
if (_DEBUG_) {
|
||||
Serial.print("SEN0562 light intensity: ");
|
||||
Serial.print(MeasuredData.Luminosity/100);
|
||||
Serial.print(MeasuredData.Luminosity);
|
||||
Serial.println(" Lux");
|
||||
}
|
||||
}
|
||||
@@ -439,7 +442,7 @@ void setup() {
|
||||
mb.Ireg (SensorRainSinceMidnightIreg, 0);
|
||||
mb.Ireg (SensorSnowFallIreg, 0);
|
||||
|
||||
Serial.println(F("Weather station v0.3.1"));
|
||||
Serial.println(F("Weather station v0.3.2"));
|
||||
Serial.println(F("(C)2024-2025 M.T. Konstapel"));
|
||||
Serial.println(F("This project is free and open source"));
|
||||
Serial.println(F("More details: https://meezenest.nl/mees/"));
|
||||
@@ -534,7 +537,7 @@ void setup() {
|
||||
weatherMeterKit.begin();
|
||||
|
||||
ts = millis();
|
||||
RainPerHourCounter = ts;
|
||||
HourTimer = ts;
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
Reference in New Issue
Block a user