Plugin Store version check API

Posted on
Tue Feb 20, 2018 5:54 pm
jay (support) offline
Site Admin
User avatar
Posts: 16093
Joined: Mar 19, 2008
Location: Austin, Texas

Plugin Store version check API


Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Feb 20, 2018 6:18 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Plugin Store version check API

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

Posted on
Wed Feb 21, 2018 3:29 am
howartp offline
Posts: 3929
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Plugin Store version check API

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

Posted on
Wed Feb 21, 2018 9:30 am
jay (support) offline
Site Admin
User avatar
Posts: 16093
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Plugin Store version check API

@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

Posted on
Wed Feb 21, 2018 11:50 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Plugin Store version check API

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

Posted on
Wed Feb 21, 2018 1:03 pm
howartp offline
Posts: 3929
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Plugin Store version check API

:-)


Sent from my iPhone using Tapatalk Pro

Posted on
Thu Feb 22, 2018 11:03 am
kw123 online
User avatar
Posts: 6874
Joined: May 12, 2013
Location: Dallas, TX

Re: Plugin Store version check API

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

Karl

Posted on
Thu Feb 22, 2018 11:16 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Plugin Store version check API

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

Posted on
Thu Feb 22, 2018 11:46 am
jay (support) offline
Site Admin
User avatar
Posts: 16093
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Plugin Store version check API

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

Posted on
Thu Feb 22, 2018 12:43 pm
kw123 online
User avatar
Posts: 6874
Joined: May 12, 2013
Location: Dallas, TX

Plugin Store version check API

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


Sent from my iPhone using Tapatalk

Posted on
Thu Feb 22, 2018 8:04 pm
jay (support) offline
Site Admin
User avatar
Posts: 16093
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Plugin Store version check API

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

Posted on
Sun Feb 25, 2018 7:59 am
vtmikel offline
Posts: 465
Joined: Aug 31, 2012
Location: Boston, MA

Re: Plugin Store version check API

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

Posted on
Sun Feb 25, 2018 11:26 am
jay (support) offline
Site Admin
User avatar
Posts: 16093
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Plugin Store version check API

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests