Git Product home page Git Product logo

homebridge-plugin-update-check's Introduction

homebridge-plugin-update-check

npm npm verified-by-homebridge

A Homebridge plugin for checking for updates to Homebridge and plugins.

This will use homebridge-config-ui-x when available, but will fall back to using npm-check-updates if it is not.

Installation

  1. Install Homebridge using the official instructions.
  2. Install this plugin using: sudo npm install -g homebridge-plugin-update-check.
  3. Update your configuration file. See sample config.json snippet below.

Configuration

Configuration sample:

"platforms": [
    {
        "platform": "PluginUpdate",
        "sensorType": "motion",
        "forceNcu": false
    }
]

Fields

  • "platform": Must always be "PluginUpdate" (required)
  • "sensorType": What type of sensor will be exposed to HomeKit. Can be motion, contact, occupancy, humidity, light, air, leak, smoke, dioxide, or monoxide (Default: motion)
  • "forceNcu": Force use of npm-check-updates instead of homebridge-config-ui-x. (Default: false)

homebridge-plugin-update-check's People

Contributors

dependabot[bot] avatar donavanbecker avatar oznu avatar sunoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fallingrock

homebridge-plugin-update-check's Issues

How can I tell if it is working? How do I use this plugin?

I have this plugin installed and by all accounts it seems to be running correctly, but I can't figure out how to interact with it or verify that it is doing anything.

The most information I can find in the logs from is shown by restarting the child bridge from which it runs:

[Plugin Update] Restarting child bridge...
Got SIGTERM, shutting down child bridge process...
[Plugin Update] Child bridge process ended
[Plugin Update] Process Ended. Code: 143, Signal: null
[Plugin Update] Restarting Process...
[Plugin Update] Launched child bridge with PID 1425
Registering platform 'homebridge-plugin-update-check.PluginUpdate'
[Plugin Update] Loaded homebridge-plugin-update-check v1.0.2 child bridge successfully
Loaded 1 cached accessories from cachedAccessories.0EB3152A3616.
Homebridge v1.8.0 (HAP v0.12.0) (Plugin Update) is running on port 51558.

When I configure the Accessory to display as a dashboard widget and click on it, nothing happens, and nothing is recorded in the logs. I would assume there to be some sort of acknowledgement that the plugin was launched manually and status if it found a updates to existing plugins or not?

Am I misunderstanding the purpose of this plugin? I believe that the purpose of this plugin is to periodically check for updates to both the HomeBridge service/UI and any installed plugins, right?

How often does it check for updates? How does it know if updates exist for all the plugins I've installed that are unrelated to your software? Is it doing a check by name/version listed in the JSON file for each plugin? How do I verify that it is doing anything at all other than "being loaded" and "running" on a port?

I apologize if I've misunderstood everything and am just being a dunce lol

version 1.0 not working

after updating to version 1.0 plugin is not working:

Alpine Linux (3.12.9)
v16.13.1
v8.1.2

[1/15/2022, 10:21:43 AM] ERROR LOADING PLUGIN homebridge-plugin-update-check:
[1/15/2022, 10:21:43 AM] Error: EACCES: permission denied, open '/root/.npmrc'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at maybeReadIni (/homebridge/node_modules/homebridge-plugin-update-check/node_modules/libnpmconfig/index.js:81:14)
at Object.getNpmConfig [as read] (/homebridge/node_modules/homebridge-plugin-update-check/node_modules/libnpmconfig/index.js:43:32)
at readNpmConfig (/homebridge/node_modules/homebridge-plugin-update-check/node_modules/npm-check-updates/src/package-managers/npm.ts:47:16)
at Object. (/homebridge/node_modules/homebridge-plugin-update-check/node_modules/npm-check-updates/src/package-managers/npm.ts:74:19)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[1/15/2022, 10:21:43 AM] ====================

[1/15/2022, 10:21:44 AM] No plugin was found for the platform "PluginUpdate" in your config.json. Please make sure the corresponding plugin is installed correctly.

config:

{
"name": "Plugin Update",
"sensorType": "motion",
"platform": "PluginUpdate"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.