Git Product home page Git Product logo

homebridge-aqicn's People

Contributors

dependabot[bot] avatar sunoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ariakeumi kyledyr

homebridge-aqicn's Issues

HomeBridge Crash if AQICN Data Not Available

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

Unhandled exception with erroneous AQI API token

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!

Truncate Homebridge manufacturer up to 64

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!

Issue via EVE App

Hello,

while using EVE app to check the air quality after installing the HomeBridge Plugin, I get a warning issue (nothing via Home App).

It says : Accessory is disable. Check user manual.

Thank you.

IMG_0710

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.