Custom web services integration

Posted on
Wed May 21, 2014 7:53 am
jasondoiron offline
Posts: 14
Joined: May 19, 2012

Custom web services integration

Can anybody please share an example of calling a simple web service from indigo?

I have written a custom PHP software application which sits on my home web server and I'm looking for the best way to communicate with it from Indigo.

Use-case Example:
* Access data in a SQL database to view real-time dashboards in Indigo (ex. home energy usage)

Thanks,
Jason

Posted on
Wed May 21, 2014 8:41 am
jay (support) offline
Site Admin
User avatar
Posts: 18201
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Custom web services integration

Any Python example of a web service consumer would work since Python is the primary scripting and plugin environment.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu May 22, 2014 9:18 pm
vtmikel offline
Posts: 628
Joined: Aug 31, 2012
Location: Boston, MA

Re: Custom web services integration

I do a lot of this, you might want to take a look at the NEST plugin I built for an example of calling a web service. Alternatively, for a external app to communicate with Indigo, I use a plugin that can create Indigo devices based on JSON objects which can hold state. You can update the state by publishing JSON updates to indigo. This requires some additional hardware and software configuration outside of indigo though. I can't guarantee it will plug and play for you, but you might get some ideas from the code.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests