diff --git a/pom.xml b/pom.xml index 2e34b81..03fd035 100644 --- a/pom.xml +++ b/pom.xml @@ -209,7 +209,7 @@ com.diffplug.spotless spotless-maven-plugin - 2.41.1 + 2.43.0 diff --git a/src/main/java/com/bigboxer23/lights/controllers/aggregate/FanSystemController.java b/src/main/java/com/bigboxer23/lights/controllers/aggregate/FanSystemController.java index 83bd634..69b7821 100644 --- a/src/main/java/com/bigboxer23/lights/controllers/aggregate/FanSystemController.java +++ b/src/main/java/com/bigboxer23/lights/controllers/aggregate/FanSystemController.java @@ -30,7 +30,7 @@ public FanSystemController(SwitchBotController switchbotController) { this.switchbotController = switchbotController; } - @Scheduled(fixedDelay = 3600000) // every 6 hours + @Scheduled(cron = "0 0 */6 * * *") // every 6 hours public void runFans() throws IOException, InterruptedException { logger.info("Turning on fan system"); RetryingCommand.execute(