Page 1 of 1

LIFX Plugin for $'s

PostPosted: Fri Jun 20, 2014 2:08 am
by manwithavan
Will pay $100 for a LIFX plugin that can control and monitor the brightness and colour state of my LIFX bulbs.

API http://blog.lifx.co/2014/03/24/announcing-the-lifx-api/

Existing Apps http://apps.lifx.co/

Re: LIFX Plugin for $'s

PostPosted: Fri Jun 20, 2014 3:29 am
by autolog
I have been toying with the idea of writing a plugin for this as I have just got a LIFX bulb and will be getting more :)

If I do a plugin I don't want or expect any money for it as I am more than happy to share it with the Indigo community.

I have looked at the API on github and note that at the moment it supports IOS only. OSX support is apparently coming soon (however long 'soon' is). To get it to run on OSX before the OSX API support is available, it looks like you have to interface python to Ruby which isn't something I have done yet. There is an unofficial JSON RESTful API but I am not sure that is the way to go.

If nobody else is going to take up the challenge, then I shall consider doing so :D

Re: LIFX Plugin for $'s

PostPosted: Fri Jun 20, 2014 4:35 am
by autolog
autolog wrote:
... There is an unofficial JSON RESTful API but I am not sure that is the way to go. ...

Changed my mind - I think this is the way to go as I have now installed it and can control my lights from terminal window which effectively means I can control it from Indigo. I have started looking at a plugin implementation :)

Re: LIFX Plugin for $'s

PostPosted: Fri Jun 20, 2014 4:53 am
by bschollnick2
autolog wrote:
autolog wrote:
... There is an unofficial JSON RESTful API but I am not sure that is the way to go. ...

Changed my mind - I think this is the way to go as I have now installed it and can control my lights from terminal window which effectively means I can control it from Indigo. I have started looking at a plugin implementation :)


The unofficial restful API is available from here (search for Restful). I haven't updated it in a while, but that's simply because I haven't needed to.

viewtopic.php?f=33&t=8804

I certainly would welcome changes, improvements, and other suggestions.

- Ben

Re: LIFX Plugin for $'s

PostPosted: Fri Jun 20, 2014 5:00 am
by manwithavan
Wow! :D
What an amazing community.
I mucked around for ages trying to grasp ruby without even rudimentary coding knowledge and had given up frustrated. Thanks so much for pitching in, if I can get the LIFX globes into Indigo my GF may even consider using the indigo app again.
Cheers!

Re: LIFX Plugin for $'s

PostPosted: Fri Jun 20, 2014 4:42 pm
by autolog
bschollnick2 wrote:
autolog wrote:
autolog wrote:
... There is an unofficial JSON RESTful API but I am not sure that is the way to go. ...

Changed my mind - I think this is the way to go as I have now installed it and can control my lights from terminal window which effectively means I can control it from Indigo. I have started looking at a plugin implementation :)


The unofficial restful API is available from here (search for Restful). I haven't updated it in a while, but that's simply because I haven't needed to.

viewtopic.php?f=33&t=8804

I certainly would welcome changes, improvements, and other suggestions.

- Ben

I think there may have been a slight misunderstanding :oops:

I was referring to the one on the LIFX site that could be used in a Plugin to call out of Indigo to the LIFX Ruby Gem. I think yours is used outside of Indigo to invoke server functions in Indigo (unless I have misunderstood). :)