Giter Club home page Giter Club logo

smartapp-circadian-daylight's Introduction

Circadian Daylight

Use your SmartThings Hub to sync your color changing lights with natural daylight hues

This SmartApp slowly synchronizes your color changing lights with local perceived color temperature of the sky throughout the day. This gives your environment a more natural feel, with cooler whites during the midday and warmer tints near twilight and dawn.

In addition, the SmartApp sets your lights to a nice cool white at 1% in "Sleep" mode, which is far brighter than moonlight but won't reset your circadian rhythm or break down too much rhodopsin in your eyes.

circadian_daylight

Human circadian rhythms are heavily influenced by ambient light levels and hues. Hormone production, brainwave activity, mood and wakefulness are just some of the cognitive functions tied to cyclical natural light.

daylight_sun (c) Bill Bradford - https://www.flickr.com/photos/mrbill/ A timelapse view of daylight color temperature changes over the course of a day

The SmartApp is completely dependent on "things happening" in your environment: specifically, motion or switches. I originally intended for this app to run on a schedule, but SmartThings tends to not publish applications that have an internal scheduler call.

Here's some further reading:

Technical notes: I had to make a lot of assumptions when writing this App:

  • The Hue bulbs are only capable of producing a true color spectrum from 2700K to 6000K. The Hue Pro application indicates the range is a little wider on each side, but I stuck with the Philips documentation.
  • I aligned the color space to CIE with white at D50. I suspect "true" white for this application might actually be D65, but I will have to recalculate the color temperature if I move it.
  • There are no considerations for weather or altitude, but does use your Hub's zip code to calculate the sun position.
  • The app doesn't calculate a true "Blue Hour" -- it just sets the lights to 2700K (warm white) until your hub goes into Night mode

Forums

Feel free to participate and contribute over at the SmartThings forums: http://community.smartthings.com/t/circadian-daylight-smartthings-philips-hue/13623

License

Copyright (c) 2015, Kristopher Kubicki All rights reserved.

smartapp-circadian-daylight's People

Contributors

kristopherkubicki avatar snakedog116 avatar

Watchers

James Cloos avatar Ron D avatar

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.