Example #1
0
 public void refreshWindScreen() {
   try {
     Date d = new Date();
     windScreenLine1.setTextXY(lcd, Util.getTimeHuman(d) + " Wind", 1, 1);
     windScreenWindSpeed.setTextXY(
         lcd, "    Speed: " + String.valueOf(Util.roundToDecimals(windSpeed, 1)), 1, 2);
     windScreenWindDirection.setTextXY(
         lcd, "Direction: " + String.valueOf(Util.roundToDecimals(windDirection, 1)), 1, 3);
   } catch (IOException ex) {
     ex.printStackTrace();
   }
 }
Example #2
0
 public void refreshOutsideScreen() {
   try {
     Date d = new Date();
     outsideScreenLine1.setTextXY(lcd, Util.getTimeHuman(d) + " Outside", 1, 1);
     outsideScreenTemperature.setTextXY(
         lcd, "Temperature: " + String.valueOf(Util.roundToDecimals(outsideTemperature, 1)), 1, 2);
     outsideScreenHumidity.setTextXY(
         lcd, "   Humidity: " + String.valueOf(Util.roundToDecimals(outsideHumidity, 1)), 1, 3);
     outsideScreenPressure.setTextXY(
         lcd, "   Pressure: " + String.valueOf(Util.roundToDecimals(outsidePressure, 1)), 1, 4);
   } catch (IOException ex) {
     ex.printStackTrace();
   }
 }