GithubHelp home page GithubHelp logo

keybuk / homebridge-sun-position Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 8.0 11 KB

Homebridge plugin to expose the position of the sun for automation

JavaScript 100.00%
homebridge sun-position azimuth altitude homekit nodejs javascript

homebridge-sun-position's People

Contributors

keybuk avatar

Stargazers

 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

homebridge-sun-position's Issues

Disable logging?

Thank you for the hard work on this plugin.

Is there an option to disable logging of the positions? They are useful is setting things up, but now everything is working well, it would be good to disable them.

heartbeat drift potentially caused by homebridge-sun-position?

I had an issue with another homebridge plugin that was warning of heartbeat drifts. I asked the developer about this and he said it was likely due to another plugin blocking the NodeJS main thread 'typically by doing synchronous I/O'

I've been through my installed plugins and disabled them in turn and, unfortunately, homebridge-sun-position is the one that, when disabled, suppresses the heartbeat drifts.

Obviously, I can't prove that this plugin is the source of the problem. Can you check please whether you are doing something that might block the NodeJS main thread?

Issue re Ambient Light Level in Homebridge 1.3

With Homebridge 1.3.0 I now get the errors

This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 0 exceeded minimum of 0.0001. See https://git.io/JtMGR for more info.

This plugin generated a warning from the characteristic 'Current Ambient Light Level': characteristic was supplied illegal value: number 120000 exceeded maximum of 100000. See https://git.io/JtMGR for more info.

Which type to specify

Hi, could you provide information on which type one should specify in the Homebridge accessory config?

suncalc updates

I noticed that suncalc gets frequent updates but that homebridge-sun-position does not. Is there a way to check what version of suncalc I am running in my homebridge environment? Thanks.

Using Docker version, if it matters.

Sample Config Failure

Hello, thank you for the nice plugin. I have just installed it and I noticed that in your example config an error exists.

Currently: "long" -115.8067
Right: "long": -115.8067

otherwise the plugin will not work .-)

`minStep: 0.1` not respected

๐Ÿ‘‹ I've been using this excellent plugin for over a year now, and it works well!

But along the way I've seen erratic behavior in HomeKit. And now I wonder if it's related to minStep: 0.1 not being respected:
546B75A6-966A-4C61-BCBE-641253F5EB02

Even if this isn't causing problems, I think the code ought to set values that conform to the details specified in the characteristic, and it'd make for simpler to read values ๐Ÿค“

Sun position

As your plugin currently only produces the current lux, perhaps you could consider to include something like suncalc to get the actual position and expose it for automation in stead of using an external app ?

edit I see you use suncalc my mistake, can you expose the position values ?

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.