Commit 154662f5 authored by Jan Wagemakers's avatar Jan Wagemakers

lower SP is Pressure > 1020

parent 69959877
......@@ -189,6 +189,12 @@ public class StartupRunner implements CommandLineRunner {
if (outsideTemp > config.getLowTemp()) {
sp = sp + config.getLowTemp() - outsideTemp;
}
// Lower SP if Pressure > 1020 (high pressure = nice weather)
if (outsidePressure > 1020 ) {
float p = outsidePressure - 1000;
p = p /100;
sp = sp - p;
}
// No negative SP
if (sp < 0) {
sp = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment