sunoo / homebridge-aqicn Goto Github PK
View Code? Open in Web Editor NEWaqicn plugin for Homebridge
License: BSD 2-Clause "Simplified" License
aqicn plugin for Homebridge
License: BSD 2-Clause "Simplified" License
I have noticed that during this poor air quality time in California that the AQICN data sometimes becomes unavailable the plug-in causes HomeBridge to crash. I understand that you can not control the air quality data output sustainability. Would it be possible to prevent this crash when no data is available or corrupted?
It sucks, when HomeBridge crashes and downs all the automations simply because the provider can not maintain proper data output. This can last for sometimes a day or more.
I hope this is not an extravagant or frivolous request.
Thanks you for the plug in it has been invaluable for getting realtime air quality during the inferno.
John
Hello,
Is it possible to grab from AQICN the current temperate and expose that as well as the Air Quaility?
First, thank your for the plug-in.
Does it look like an unhandled exception?
For me it does and violates the Verified plugin requirement #6 (The plugin must not throw unhandled exceptions, the plugin must catch and log its own errors.) here https://github.com/homebridge/homebridge/wiki/verified-Plugins
(node:9126) UnhandledPromiseRejectionWarning: Error: Invalid key
at checkError (/homebridge/node_modules/homebridge-aqicn/node_modules/@shootismoke/dataproviders/lib/providers/aqicn/fetchBy.js:35:19)
at /homebridge/node_modules/homebridge-aqicn/node_modules/fp-ts/lib/EitherT.js:52:116
at /homebridge/node_modules/homebridge-aqicn/node_modules/fp-ts/lib/Task.js:138:44
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ...
to show where the warning was created)
(node:9126) 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: 9)
(node:9126) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Could you please fix it. Thanks a lot!
Another enhancement request is to truncate the long names of AQI station's names. In my case it is - Station provided by "Moscow State environmental monitoring (Государственный экологический мониторинг в Москве)" which raise a warning below:
[homebridge-aqicn] This plugin generated a warning from the characteristic 'Manufacturer': characteristic was supplied illegal value: string 'Moscow State environmental monitoring (Государственный экологический мониторинг в' exceeded max length of 64. See https://git.io/JtMGR for more info.
Thank a lot in advance!
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.