@@ -0,0 +1,849 @@
+package org.pioto.thermostat.jobs;%0A%0Aimport org.pioto.thermostat.devices.ThermostatDevice;%0Aimport org.pioto.thermostat.rest.Tstat;%0Aimport org.pioto.thermostat.services.ThermostatService;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.scheduling.annotation.Scheduled;%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class LoggerJobs %7B%0A%0A%09private final Logger logger = LoggerFactory.getLogger(getClass());%0A%0A%09@Autowired%0A%09private ThermostatService thermostatService;%0A%0A%09@Scheduled(fixedRate=60*60*1000)%0A%09public void logTstat() %7B%0A%09%09// TODO pull this from config or something...%0A%09%09ThermostatDevice dev = new ThermostatDevice(%22http://thermostat%22);%0A%0A%09%09Tstat tstat = thermostatService.getTstat(dev);%0A%09%09logger.info(%22TSTAT: %7B%7D%22, tstat);%0A%09%7D%0A%0A%7D%0A

Add a simple scheduled job