Plugin Store version check API

Want to create a client for Indigo - perhaps on a platform which we don't currently support? Or do you have an existing product from which you'd like to control Indigo? This forum is the place to ask questions about the various options for integrating with Indigo.
User avatar
jay (support)
Site Admin
Posts: 18317
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Plugin Store version check API

Post by jay (support) »

Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
Colorado4Wheeler
Posts: 2794
Joined: Mon Jul 20, 2009 10:48 am
Location: Colorado

Re: Plugin Store version check API

Post by Colorado4Wheeler »

Aren't you building this into the next release? Is this just an interim solution until that happens or do you want us to start adding this to our plugins if we want to check for updates?
My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Plugin Store version check API

Post by howartp »

With the release of the Plugin Store, we soft-launched an API that would allow an external source to get the details of the latest release for the specified plugin. We really hadn't intended to publish it because it is our intention to deliver a more fully developed API later (with API keys, etc), but we've had a lot of developers ask for the ability to get the current release from the store, so we decided to go ahead and publish this one.
We want to provide an example of how you might call this from within a plugin. Eventually we will have version checking and update notifications available as a built-in feature of plugins. In the meantime, however, you can follow this pattern.

Sent from my iPhone using Tapatalk Pro
User avatar
jay (support)
Site Admin
Posts: 18317
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Plugin Store version check API

Post by jay (support) »

@howartp's right - it'll be built-in. Probably not in the next feature release, but maybe the one after. This is specifically for those that want to do it now, and particularly for those that are running into the TLS version issue when trying to talk to GitHub. We don't require TLS 1.2 so this will work on macOS 10.7-10.12 (which ship with older versions).

It's definitely not meant as a recommendation or guideline that everyone should follow (it's basically throwaway work).
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
Colorado4Wheeler
Posts: 2794
Joined: Mon Jul 20, 2009 10:48 am
Location: Colorado

Re: Plugin Store version check API

Post by Colorado4Wheeler »

howartp wrote:With the release of the Plugin Store, we...
I did read all of that, I wasn't being a noob :roll:
jay (support) wrote:Probably not in the next feature release, but maybe the one after.
That's what I was wondering, if it was the next release I wouldn't worry much about it, but if it's the one after then I may.
My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here
howartp
Posts: 4559
Joined: Thu Jan 09, 2014 4:43 pm
Location: West Yorkshire, UK

Re: Plugin Store version check API

Post by howartp »

:-)


Sent from my iPhone using Tapatalk Pro
User avatar
kw123
Posts: 8408
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Plugin Store version check API

Post by kw123 »

from a load point of view this has the same impact has a simple curl statement?

Karl
User avatar
Colorado4Wheeler
Posts: 2794
Joined: Mon Jul 20, 2009 10:48 am
Location: Colorado

Re: Plugin Store version check API

Post by Colorado4Wheeler »

Judging from the code, yes.
My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here
User avatar
jay (support)
Site Admin
Posts: 18317
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Plugin Store version check API

Post by jay (support) »

kw123 wrote:from a load point of view this has the same impact has a simple curl statement?
The load on what?
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
kw123
Posts: 8408
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Plugin Store version check API

Post by kw123 »

On the indigo host server.
... curl and screen scraping.


Sent from my iPhone using Tapatalk
User avatar
jay (support)
Site Admin
Posts: 18317
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Plugin Store version check API

Post by jay (support) »

kw123 wrote:On the indigo host server.
... curl and screen scraping.
Using curl will spawn a separate process, so it's inherently more resource intensive. Probably not significant though given how infrequently it should happen.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
vtmikel
Posts: 646
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Re: Plugin Store version check API

Post by vtmikel »

Jay, will the eventual built in mechanism include the ability to update a plugin from a remote client of indigo? Avoiding having to Remote Desktop to the server would be a welcome improvement.


Sent from my iPhone using Tapatalk Pro
User avatar
jay (support)
Site Admin
Posts: 18317
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Plugin Store version check API

Post by jay (support) »

vtmikel wrote:Jay, will the eventual built in mechanism include the ability to update a plugin from a remote client of indigo? Avoiding having to Remote Desktop to the server would be a welcome improvement.
Yes, though it will probably happen sometime after the checking mechanism is introduced. Just getting the checks working across all plugins and some form of notification will be the first step.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Client APIs”