Jump to content

Get realtime data from Samrthome iMeter Solo


douyang

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

-

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...