Examples of FritzahaQueryscriptUpdateNumberCallback


Examples of org.openhab.binding.fritzaha.internal.hardware.callbacks.FritzahaQueryscriptUpdateNumberCallback

        if (timedef == TimeDef.MINUTEStimestr = "10";
        else if (timedef == TimeDef.MONTH) timestr = "month";
        else if (timedef == TimeDef.DAY) timestr = "24h";
        else timestr = "year"; // 10 minutes
        String args = "xhr=1&command=EnergyStats_" + timestr + "&id=" + id;
        webIface.asyncGet(path, args, new FritzahaQueryscriptUpdateNumberCallback(path, args, type, webIface,
            FritzahaReauthCallback.Method.GET, 1, itemName));
       
      } else {
        return;
      }
    } else {
      logger.debug("Getting meter data for Device ID " + id);
      String path = "net/home_auto_query.lua";
      String args = "xhr=1&command=MultiMeterState&id=" + id;
      webIface.asyncGet(path, args, new FritzahaQueryscriptUpdateNumberCallback(path, args, type, webIface,
          FritzahaReauthCallback.Method.GET, 1, itemName));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.