//
        //http://datapoint.metoffice.gov.uk/public/data/val/wxobs/all/xml/3740?res=hourly&key=b08fb588-2bf3-4e27-9f81-3356e3215962
        //

        public WebWeatherLogger(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) :
            base(settings, parentZone, gateway)
        {
            this.pollInterval      = int.Parse(settings.Attributes["loggingPollInterval"].Value);
            this.webWeatherAddress = settings.Attributes["location"].Value;
            this.webWeatherParams  = settings.Attributes["params"].Value;
        }
 public LocationManager(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway)
     : base(settings, parentZone, gateway)
 {
     if (settings.Attributes["apiKey"] != null)
     {
         apiKey = settings.Attributes["apiKey"].InnerText;
     }
     homeCoordinates = LocalSettings.HomeCoordinates;
 }
        public HolidayManager(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway)
            : base(settings, parentZone, gateway)
        {
            Timer timer = new Timer();

            timer.Interval = 600000;
            timer.Elapsed += timer_Elapsed;
            timer.Enabled  = true;
        }
        public SonosPlayerController(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) :
            base(settings, parentZone, gateway)
        {
            gtw = gateway as SonosGateway;
            if (settings.Attributes["playerName"] != null)
            {
                playerName = settings.Attributes["playerName"].InnerText;
            }

            gtw.SonosPlayerFound += Gtw_SonosPlayerFound;

            if (gtw.FindPlayerByName(playerName) != null)
            {
                gtw.FindPlayerByName(playerName).StateChanged += SonosPlayerController_StateChanged;
            }
        }
 public HeatmiserThermostat(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) : base(settings, parentZone, gateway)
 {
     this.pollInterval = int.Parse(settings.Attributes["loggingPollInterval"].Value);
     this.pinCode      = ushort.Parse(settings.Attributes["pinCode"].Value);
 }
Esempio n. 6
0
 public JawboneUP3(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway)
     : base(settings, parentZone, gateway)
 {
     this.pollInterval = int.Parse(settings.Attributes["loggingPollInterval"].Value);
     this.jawboneKey   = settings.Attributes["accessKey"].Value;
 }
 public OnkyoReceiver(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway)
     : base(settings, parentZone, gateway)
 {
 }
 public LightwaveRFDimmer(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway)
     : base(settings, parentZone, gateway)
 {
     this.gateway = (LightwaveRFGateway)gateway;
 }
Esempio n. 9
0
 public GreenIQHub(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway)
     : base(settings, parentZone, gateway)
 {
     accessKey = settings.Attributes["accessKey"].Value;
 }
Esempio n. 10
0
 public IRTransRemote(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) :
     base(settings, parentZone, gateway)
 {
 }
Esempio n. 11
0
 public ElectricityUsageMonitor(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway)
     : base(settings, parentZone, gateway)
 {
     this.gateway = (LightwaveRFGateway)gateway;
 }
Esempio n. 12
0
 public PC(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) : base(settings, parentZone, gateway)
 {
     macAddress = ConvertMacStringToByteArray(settings.Attributes["macAddress"].Value);
 }
Esempio n. 13
0
 public SamsungTV(XmlNode settings, GenericZone parentZone, GenericDeviceGateway gateway) :
     base(settings, parentZone, gateway)
 {
 }