keybuk / homebridge-sun-position Goto Github PK
View Code? Open in Web Editor NEWHomebridge plugin to expose the position of the sun for automation
Homebridge plugin to expose the position of the sun for automation
I've configured the sun but how do I use this to create automation triggers?
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.
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?
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.
Talking about the following line
homebridge-sun-position/index.js
Line 70 in ed5f098
And empty string is a invalid value for the SerialNumber characteristic and will be replaced anyways by a default number.
Hi, could you provide information on which type one should specify in the Homebridge accessory config?
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.
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 .-)
๐ 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:
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 ๐ค
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 ?
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.