douyang Posted July 1, 2012 Posted July 1, 2012 I want to develop a web page displays the value of energy consumption detected by Smarthome iMeter Solo (2423A1) in realtime, is there any available API for this kind of purpose? Thanks.
Michel Kohanim Posted July 2, 2012 Posted July 2, 2012 Hello douyang, Can you tell me what's missing from our current implementation? And, yes, you can do the same using our REST APIs: http://www.universal-devices.com/isy-developer With kind regards, Michel
douyang Posted July 2, 2012 Author Posted July 2, 2012 Hello douyang, Can you tell me what's missing from our current implementation? And, yes, you can do the same using our REST APIs: http://www.universal-devices.com/isy-developer With kind regards, Michel Hi Michel, Thanks to your reply,that is really helpful. The problem for me is that I didn't know how to get the realtime data, I will try the REST APIs.
Michel Kohanim Posted July 2, 2012 Posted July 2, 2012 Hello douyang, My pleasure. I think we have to be a little careful with our vernacular: in the case of iMeter, "real time" is as fresh as the last time you "explicitly" queried the iMeter. iMeter does NOT automatically send out updated metering information. With kind regards, Michel
douyang Posted July 3, 2012 Author Posted July 3, 2012 Hello douyang, My pleasure. I think we have to be a little careful with our vernacular: in the case of iMeter, "real time" is as fresh as the last time you "explicitly" queried the iMeter. iMeter does NOT automatically send out updated metering information. With kind regards, Michel Hello Michel, Yes, that is what I think, to explicitly queries the iMeter with a proper time interval. But after reading the Web Service/REST SDK and Documentation you offered to me, I am still not aware of how should I do with this. Basically, what I expected was receiving the fresh data queried from iMeter and use it on a web application written in javascript, and if possible, control the devices' ON/OFF using ApplianceLinc API, which should be also implemented on the website. I am really newbie here so I hope to get more detailed instructions from you guys. Thanks.
LeeG Posted July 3, 2012 Posted July 3, 2012 The REST commands are covered in a document that can be downloaded from the WSDK The following REST command queries the iMeterSolo for the latest information. http://192.168.2.4/rest/query/18 F5 40 1/ The following REST command will return the last received data from the iMeterSolo. ST is the Current Power, TPW is the Accumulated Power http://192.168.2.5/rest/nodes/18 F5 40 1/ <?xml version="1.0" encoding="UTF-8" ?> - - 18 F5 40 1 iMeterSolo 9.7.135.92 true 0 0 0 18 F5 40 1 -
Michel Kohanim Posted July 3, 2012 Posted July 3, 2012 Hello douyang, LeeG is (as always) right on (see above). So, in short, what you need to do: 1. In ISY create programs that query the iMeter periodically 2. Use the method above by LeeG to get the last status of iMeter from ISY If you use Web Services, then you can subscribe to ISY and then ISY can publish the events to you so that you do not have to use #2. With kind regards, Michel
douyang Posted July 7, 2012 Author Posted July 7, 2012 The REST commands are covered in a document that can be downloaded from the WSDK The following REST command queries the iMeterSolo for the latest information. http://192.168.2.4/rest/query/18 F5 40 1/ The following REST command will return the last received data from the iMeterSolo. ST is the Current Power, TPW is the Accumulated Power http://192.168.2.5/rest/nodes/18 F5 40 1/ <?xml version="1.0" encoding="UTF-8" ?> - - 18 F5 40 1 iMeterSolo 9.7.135.92 true 0 0 0 18 F5 40 1 - Hi LeeG, Thanks for your reply. The ST's value is exactly what I want, and I want to update it every few seconds. Can you show me how to use the REST commands? Is there any software which I should have or IDE I should use? Right now I only have an iMeter Solo, an ApplianceLinc, a Powerlinc USB(dual-band) and a Smartlinc Insteon Central Controller. What I am trying to do is design a website showing the power consumption graph measured by iMeter Solo in realtime and control device using ApplianceLinc. I have installed HouseLinc to do it but I want to control it on web. I have no experience in ISY before, so there might be some noob questions and hope you don't mind.
LeeG Posted July 8, 2012 Posted July 8, 2012 Douyang No problem at all with additional questions but I don’t have the knowledge in the web area. What experience I did have is more than a decade out of date. Regarding querying an Insteon device every few seconds, that will work for the very limited Insteon devices in your configuration. That cannot be done in a full Insteon installation. The powerline protocol was not designed for that volume of traffic. It would interfere with normal Insteon activity. Even every two or three minutes sustained would not be practical.
douyang Posted July 8, 2012 Author Posted July 8, 2012 Douyang No problem at all with additional questions but I don’t have the knowledge in the web area. What experience I did have is more than a decade out of date. Regarding querying an Insteon device every few seconds, that will work for the very limited Insteon devices in your configuration. That cannot be done in a full Insteon installation. The powerline protocol was not designed for that volume of traffic. It would interfere with normal Insteon activity. Even every two or three minutes sustained would not be practical. Would you plz tell me how to make the commands work? Like "http://192.168.2.5/rest/nodes/18 F5 40 1/". For example, how do you connect devices, and what kind of devices are you using, how to get its IP address and so on. The REST commands you showed me was good enough for me. I just want to try it first. Thanks.
LeeG Posted July 8, 2012 Posted July 8, 2012 The IP address (in red) is the ISY IP address. The Insteon address (in blue) is the iMeterSolo Insteon address. http://192.168.2.5/rest/nodes/18 F5 40 1/ I enter the http REST command into a browser command window.
douyang Posted July 8, 2012 Author Posted July 8, 2012 The IP address (in red) is the ISY IP address. The Insteon address (in blue) is the iMeterSolo Insteon address. http://192.168.2.5/rest/nodes/18 F5 40 1/ I enter the http REST command into a browser command window. How to find out the ISY IP address?
douyang Posted July 8, 2012 Author Posted July 8, 2012 You don't know your own ISY IP address? I don't know.. how to get it?
LeeG Posted July 8, 2012 Posted July 8, 2012 Go to the Configuration tab, Network Settings, IP Address
douyang Posted July 8, 2012 Author Posted July 8, 2012 Go to the Configuration tab, Network Settings, IP Address What software are you talking about? sorry for noob questions...
LeeG Posted July 8, 2012 Posted July 8, 2012 The ISY Admin Console. Same Admin Console you use to add Insteon devices to the ISY, define and maintain ISY Programs, etc.
douyang Posted July 8, 2012 Author Posted July 8, 2012 The ISY Admin Console. Same Admin Console you use to add Insteon devices to the ISY, define and maintain ISY Programs, etc. I know you are talking about the Universal Device Administrative Console, but where can I download it? Thanks.
LeeG Posted July 8, 2012 Posted July 8, 2012 It is on your ISY. There are various levels of Admin Console that must match the firmware level of the ISY.
LeeG Posted July 8, 2012 Posted July 8, 2012 Just saw the post on Smarthome forum where it mentions having HouseLinc and SmartLinc. Now I understand why the ISY questions did not make sense.
douyang Posted July 10, 2012 Author Posted July 10, 2012 Just saw the post on Smarthome forum where it mentions having HouseLinc and SmartLinc. Now I understand why the ISY questions did not make sense. So I just bought a ISY994iZ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.