Add rudimentary support for DS18B120 Thermometers, MH-Z19B CO2 Sensors, and ZWave.me controllers.

This commit is contained in:
MarkBryanMilligan
2021-10-26 15:45:13 -05:00
parent 883cf7865d
commit 88933a2286
19 changed files with 334 additions and 67 deletions

View File

@@ -1,16 +1,14 @@
package com.lanternsoftware.thermometer;
import com.lanternsoftware.thermometer.context.ThermometerApp;
import com.lanternsoftware.util.concurrency.ConcurrencyUtils;
public class TestStartup {
public static void main(String[] args) {
ThermometerApp app = new ThermometerApp();
app.start();
try {
Thread.sleep(20000);
} catch (InterruptedException _e) {
_e.printStackTrace();
IThermometer thermometer = new DS18B20Thermometer();
for (int i=0; i<200; i++) {
System.out.println(String.format("%.2f", thermometer.getTemperatureCelsius()));
ConcurrencyUtils.sleep(1000);
}
app.stop();
thermometer.shutdown();
}
}