Giter VIP home page Giter VIP logo

homebridge-co2-sensor's People

Contributors

draxus avatar mizuka-ninomae avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

homebridge-co2-sensor's Issues

Resource temporarily unavailable Cannot lock port

Describe Your Problem:

Plugin is initialized but no CO2 level is shown.

Logs:

(node:2457) UnhandledPromiseRejectionWarning: Error: Error Resource temporarily unavailable Cannot lock port
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2457) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

Plugin Config:

{
    "accessory": "Co2Sensor",
    "name": "Co2Sensor",
    "uart_path": "/dev/ttyS0",
    "schedule": "*/1 * * * *",
    "warning_level": 1000
}

Screenshots:

Environment:

  • Plugin Version: v0.2.2
  • Homebridge Version: v1.3.1
  • Node.js Version: v14.16.0
  • NPM Version: v6.14.11
  • Operating System: Raspbian

Could not locate the bindings file

Setup:

  • Homebridge v1.3.8
  • node.js v16.13.1

I'm getting this error when loading the plugin:

ERROR LOADING PLUGIN homebridge-co2-sensor:
Error: Could not locate the bindings file. Tried:
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/build/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/build/Debug/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/build/Release/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/out/Debug/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/Debug/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/out/Release/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/Release/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/build/default/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/compiled/16.13.1/linux/arm/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node
 → /usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/lib/binding/node-v93-linux-arm/bindings.node
    at bindings (/usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/bindings/bindings.js:126:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/lib/linux.js:2:36)
    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)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-co2-sensor/node_modules/@serialport/bindings/lib/index.js:14:22)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)

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.