Plugin Store version check API
- jay (support)
- Site Admin
- Posts: 18317
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Plugin Store version check API
We've written up a simple API to check the Plugin Store for the latest version of a plugin. Use this topic to discuss.
- Colorado4Wheeler
- Posts: 2794
- Joined: Mon Jul 20, 2009 10:48 am
- 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
HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy
Check Them Out Here
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
- jay (support)
- Site Admin
- Posts: 18317
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
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).
It's definitely not meant as a recommendation or guideline that everyone should follow (it's basically throwaway work).
- Colorado4Wheeler
- Posts: 2794
- Joined: Mon Jul 20, 2009 10:48 am
- Location: Colorado
Re: Plugin Store version check API
I did read all of that, I wasn't being a noobhowartp wrote:With the release of the Plugin Store, we...
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
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.jay (support) wrote:Probably not in the next feature release, but maybe the one after.
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
HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy
Check Them Out Here
Re: Plugin Store version check API
![Smile :-)](./images/smilies/icon_smile.gif)
Sent from my iPhone using Tapatalk Pro
Re: Plugin Store version check API
from a load point of view this has the same impact has a simple curl statement?
Karl
Karl
- Colorado4Wheeler
- Posts: 2794
- Joined: Mon Jul 20, 2009 10:48 am
- 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
HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy
Check Them Out Here
- jay (support)
- Site Admin
- Posts: 18317
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Plugin Store version check API
The load on what?kw123 wrote:from a load point of view this has the same impact has a simple curl statement?
Plugin Store version check API
On the indigo host server.
... curl and screen scraping.
Sent from my iPhone using Tapatalk
... curl and screen scraping.
Sent from my iPhone using Tapatalk
- jay (support)
- Site Admin
- Posts: 18317
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Plugin Store version check API
Using curl will spawn a separate process, so it's inherently more resource intensive. Probably not significant though given how infrequently it should happen.kw123 wrote:On the indigo host server.
... curl and screen scraping.
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
Sent from my iPhone using Tapatalk Pro
- jay (support)
- Site Admin
- Posts: 18317
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Plugin Store version check API
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.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.