robheyes / lifxcode

40 stars 21 forks source link

Add support for HubitatPackageManager #92

Closed undervillain closed 3 years ago

undervillain commented 4 years ago

Add support for HubitatPackageManger. To complete the integration, a PR needs to be made against https://github.com/dcmeglio/hubitat-packagerepositories/blob/master/repositories.json to add the following (or substantially similar) after this PR is accepted:

    {
        "name": "Rob Heyes",
        "location": "https://raw.githubusercontent.com/robheyes/lifxcode/master/packageManifest.json"
    }
dkilgore90 commented 4 years ago

Do we also need a repository.json file? Seems most participating repos have both -- whether they have only one "package" or more

undervillain commented 4 years ago

Do we also need a repository.json file? Seems most participating repos have both -- whether they have only one "package" or more

Taking another look at this, I think you may be right. I was able to use HPM to install the app from my fork by entering a manual URL to the packageManifest.json file, but couldn't test the integration to their app catalog (unless I wanted to claim LIFX Master as my own....)

So unfortunately it leaves a little work for Rob to do.

  1. Host this repository file somewhere, perhaps another repo in github. In case you want to add other apps someday:
{
  "author": "Rob Heyes",
  "gitHubUrl": "https://github.com/robheyes",
  "packages": [{
      "name": "LIFX Master",
      "category": "Integrations",
      "location": "https://raw.githubusercontent.com/robheyes/lifxcode/master/packageManifest.json",
      "description": "LIFX Lan Protocol app and drivers for Hubitat Elevation"
  }]
}
  1. Change the location in the example above to point to the repository file, then submit a PR against the dcmeglio/hubitat-packagerepositories repo.