diff --git a/HomeAutomation.java b/HomeAutomation.java new file mode 100644 index 0000000..2fb08f1 --- /dev/null +++ b/HomeAutomation.java @@ -0,0 +1,27 @@ +import java.io.FileInputStream; +import java.util.Properties; + +import com.matthewhuntington.homeautomation.*; + +public class HomeAutomation +{ + + /** + * @param args + */ + public static void main(String[] args) + { + Properties properties = new Properties(); + try + { + properties.load(new FileInputStream("login.properties")); + CalendarParser parser = new CalendarParser(properties.getProperty("calendar"), properties.getProperty("user"), properties.getProperty("pass")); + ActionExecutor executor = new ActionExecutor(parser.getActions()); + executor.executeAll(); + } + catch (Exception e) + { + System.out.println("Could not load properties file."); + } + } +} \ No newline at end of file