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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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