Jump to content

Welcome, Guest!

Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for?
   Sign In    Sign Up

Become a RedCarpet Club Member Today!

   Join Now

Question

So I don't know much about scripting in whatever language CV is using, my programing knowledge comes from Turbo Pascal learned in the 90s and BASIC back on an Atari 800 in the 80s  so forgive me here but I'm assuming there is some sort of IF THEN statement that I can use in .cvaction files that basically says  If its after 9pm set my hue lights to this color temperature, otherwise use this one.  I just don't know what that code looks like.

During the day I like my lights in a Daylight color temperature, and at night to help ya sleep by reducing the "blue light" having my bulbs be a Warm White light, so after a movie ends I'd like to set the action to turn on the lights to a warm white temperature if its after a certain time when the script is ran, otherwise use my daylight temp.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

To build on what Ragnarok said, what are you running cv on? What Home Automation are you on?  If you are using OpenHAB you should be able to achieve what you are doing using the guide I wrote found here:  

 as well as this thread discussing making decisions based on Time of Day. https://community.openhab.org/t/making-decisions-based-on-time-of-day/2262/2  

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, dlmtechnology said:

So I don't know much about scripting in whatever language CV is using, my programing knowledge comes from Turbo Pascal learned in the 90s and BASIC back on an Atari 800 in the 80s  so forgive me here but I'm assuming there is some sort of IF THEN statement that I can use in .cvaction files that basically says  If its after 9pm set my hue lights to this color temperature, otherwise use this one.  I just don't know what that code looks like.

During the day I like my lights in a Daylight color temperature, and at night to help ya sleep by reducing the "blue light" having my bulbs be a Warm White light, so after a movie ends I'd like to set the action to turn on the lights to a warm white temperature if its after a certain time when the script is ran, otherwise use my daylight temp.

There aren't any available boolean statements in Actions yet, but that is on our list of things to add, and will be coming soon(ish). You can do this in a way that's a bit less user friendly. Right now, CinemaVision can read and execute any kind of shell script and Python script. If there's a way to manipulate your home automation using one of those methods, you could have it check the time and set the color accordingly, then just have the Action file call the script you write.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

CinemaVision began in 2014 as a collaboration to create content for use with your home theater, offering movie trivia slides and video bumpers. It has since grown to be THE PREMIER WAY to create and customize your preshow experience. Download the CinemaVision add-on for Kodi today from the official Kodi repository, and easily create a sequence of trivia, videos, trailers, home automation triggers and more that will bring the experience of a movie theater straight to your screen!

×

Important Information

By using this site, you agree to our Guidelines and Terms of Use.