mizuka-ninomae / homebridge-co2-sensor Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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:
Setup:
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.