public bool Load() { Loadlocal(); Console.Write("Connect server to get config."); string jeedomURL = getstring("JeedomURL", ""); string jeedomUID = getstring("JeedomUID", ""); Jeedom jeedomClient = new Jeedom(jeedomURL, jeedomUID); string olconfig = jeedomClient.getConfig(); if (olconfig == "ERROR") { return(false); } string[] aconf = olconfig.Split(';'); foreach (string iconf in aconf) { string[] conf = iconf.Split('='); setstring(conf[0], conf[1]); } jeedomClient.Dispose(); return(true); }
public SpeechReco() { LoadConfig(); jeedomClient = new Jeedom(jeedomURL, jeedomUID); }