}
System.out.println("DEBUG: Waiting for phone to send weather information");
- while (waitingForInterface.get()) {
- try {
- Thread.sleep(1000);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
+ //while (waitingForInterface.get()) {
+ // try {
+ // Thread.sleep(1000);
+ // } catch (Exception e) {
+ // e.printStackTrace();
+ // }
+ //}
// TODO: Use a phone input interface later
- //inchesPerWeek = 20.00;
- //weatherZipCode = 92612;
- //daysToWaterOn = 255;
- //inchesPerMinute.add(1.50);
+ inchesPerWeek = 20.00;
+ weatherZipCode = 92612;
+ daysToWaterOn = 255;
+ inchesPerMinute.add(1.50);
System.out.println("DEBUG: inchesPerWeek: " + inchesPerWeek);
System.out.println("DEBUG: weatherZipCode: " + weatherZipCode);
// init the sprinkler controller, do it here since it only needs to be done once per controller
try {
spr.init();
+ // Wait until sprinkler is active
+ Thread.sleep(30000);
} catch (Exception e) {
e.printStackTrace();
}