parent
b26657a813
commit
016a82ee69
@ -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.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue