Jump to content

DexDeadly

Moderators
  • Content Count

    110
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DexDeadly

  1. Hey @th0r4z1n3 thought I replied, Did you get it to work? Your line of thinking to me is right. Kodi to trigger the ssh. Let me know, I might be able to try messing with that soon if you haven't figured it out.
  2. Here is a more advanced way to dim the lights in your home theater room using OpenHAB and CinemaVision using the action files. With this setup you can control how quick or slow your lights will dim and to what percentage of brightness with a chosen value between 0 - 100. This requires edits to the items file and the rules file within OpenHAB. The items file is a simple edit. Simply add the following line: String HT_Dimmer "HT Dimmer Data [%s]"The rules file we will be adding a new rule to handle the JSON data we will send to it in the action file. Place this rule anywhere you would like within the file. I have placed instructions and explanations within the comments of the rule for those wanting to understand what's occurring. /* CinemaVision Customizable Dimmer */ rule "Home Theater Dimmer" when /* Trigger the rule when HT_Dimmer receives the information via JSON */ Item HT_Dimmer received command then /* Set current state of your dimmer in the home theater. This can be a single dimmer attached to one light you have in the room or a group dimmer like in this example that controls all the lights in the room */ var Number curstate = 0 if(Light_LivRoom_AllLights_Dim.state instanceof PercentType) curstate = Light_LivRoom_AllLights_Dim.state as PercentType /* This will take the JSON we send from the action file within CinemaVision and parse out our configuration parameters */ var String json = (HT_Dimmer.state as StringType).toString /* Example JSON being sent {"_type": "dimDown", "DimPercent": 70, "increments": 5, "speed": 500} */ var String type = transform("JSONPATH", "$._type", json) /* Place an entry to the log to verify we are receiving a value for the type parameter being sent */ logInfo("HT Rule", "JSON Information " + type) /* If the type sent via JSON is dimDown execute this block of code */ if (type == "dimDown") { /* Place an entry to the log to verify we started the dimDown Loop logInfo("HT Rule", "Starting dimDown Loop") /* set the variable dimto to the percentage we want to dim down to and output to the log to make sure the information was in fact saved. Using example we should have this set to 70. */ var dimto = new Integer(transform("JSONPATH", "$.DimPercent", json)) logInfo("HT Rule", "dimto variable = " + dimto) /* set the variable inc to the percentage we want dim each time the loop runs. and output to the log to make sure the information was in fact saved. Using example we should have this set to 5. */ var inc = new Integer(transform("JSONPATH", "$.increments", json)) logInfo("HT Rule", "inc variable = " + inc) /* set the variable speed to the amount of time in milliseconds to wait before running the while statement again and output to the log to make sure the information was in fact saved. Using example we should have this set to 500 which is half a second. */ var speed = new Integer(transform("JSONPATH", "$.speed", json)) logInfo("HT Rule", "speed variable = " + speed) /* Output to the log our current dimmer state to make sure this variable is set as well */ logInfo("HT Rule", "curstate = " + curstate) while(curstate > dimto) { /* Take the current state of the dimmer and subtract are percentage increments */ curstate=curstate - inc /* Send the new current state to our dimmer */ sendCommand(Light_LivRoom_AllLights_Dim, curstate) /* Wait the time we choose in milliseconds before running the loop again */ Thread::sleep(speed) } } /* This is the same as the above code block only this time we'll be increasing the lights. */ if (type == "dimUp") { logInfo("HT Rule", "Starting dimUp Loop") var dimto = new Integer(transform("JSONPATH", "$.DimDownPercent", json)) logInfo("HT Rule", "dimto variable = " + dimto) var inc = new Integer(transform("JSONPATH", "$.increments", json)) logInfo("HT Rule", "inc variable = " + inc) var speed = new Integer(transform("JSONPATH", "$.speed", json)) logInfo("HT Rule", "speed variable = " + speed) logInfo("HT Rule", "curstate = " + curstate) while(curstate > dimto) { curstate=curstate - inc sendCommand(Light_LivRoom_AllLights_Dim, curstate) Thread::sleep(speed) } } /* Set the HT_Dimmer state to the string done and output to logfile */ logInfo("HT Rule", "Successful execution of Home Theater Dimmer rule!") postUpdate(HT_Dimmer,"Done") end**NOTE: I have found that if you are using the OpenHAB Designer in Ubuntu, the transform triggers will underline in red saying this is not correct. However this is not true and the rule will work just fine. It seems this occurs with the designer sometimes and its being looked at. Also if you do not want to flood your logfile you can remove the logInfo lines from the code. I placed these here during development to ensure everything was being passed along correctly and left in to help any troubleshoot any issues you may have. The last bit we need to do is create our action files. For me I have 4 text files labeled where I have them triggering in my sequence. Example, I have a text file called theater_lights_triva.txt which triggers before my triva slides. I've found it easier using this naming convention for easy of updating. Here is how you would format your action file in order to properly send over the JSON information. Please note that JSON is CaSe SeNsItIvE. http://INSERT_OH_IP:INSERT_OH_PORT/rest/items/HT_Dimmer - This is the REST API string of the Dimmer we created in the items file. Replace the red text with your OpenHAB servers IP and Port {"_type": "dimDown", "DimPercent": 70, "increments": 5, "speed": 500} - This is the JSON String that gets parsed by our rule within OpenHAB. See below breakdown_type = This value can be either dimDown or dimUp depending on if you want to dim your lights up or down within the sequence. DimPercent = This is going to be the percentage of the dimmer we want to be at when the rule triggers increments = This is the percentage value you would like to dim by speed = This is how long to wait in milliseconds before dropping by the next increment. ** NOTE: If you have security enabled within OpenHAB you will need to add an additional line to your action file. The 2nd line in the action file will need to be the following: HEADERS: {"Authorization": "Basic=XXXXX"} - You can generate the Basic=XXXX by using the Postman plugin for Chrome. Using Postman you can place in your user credentials and the header line will generate for you. You can than place this within the header line and you will than be able to send your JSON request lines with authorization turned on. Here is an example of how the action file can look http://INSERT_OH_IP:INSERT_OH_PORT/rest/items/HT_Dimmer - This is the REST API string of the Dimmer we created in the items file. Replace the red text with your OpenHAB servers IP and Port HEADERS: {"Authorization": "Basic=XXXXX"} - Authorization header for using with an OpenHAB server with security enabled. {"_type": "dimDown", "DimPercent": 70, "increments": 5, "speed": 500} - This is the JSON String that gets parsed by our rule within OpenHAB. See below breakdownThis information is also explained in the rule comments but here it is again in a more compressed form. Save the file and place in your actions folder on your Kodi system where you have the CinemaVision folders. Then within the Sequence editor add the action. In the example above I placed this right before the trivia slides start. Once you place the action in, point it to your newly created .txt file. Save your sequence and run it, your lights should now react within the sequence. Feel free to ask any questions or if you find anything that needs tweaked let me know!
  3. Hey @th0r4z1n3 self inflicted are always fun. You just do a nice face palm, laugh and keep going. I'll see if I can find what I used to walk through but I was using the epiphany web browser. As mentioned in my video this is what I used on an original pi3. I have yet to try the newer pi3s with a browser in kiosk mode to see if this resolves the issue with the stuttering on cinegraphs. I haven't tried anything else and its been a while since I have gotten back to playing more with this project.
  4. @th0r4z1n3 - how you making out with your project?
  5. Hey @th0r4z1n3 so I never installed MoviePosterApp onto a pi. They came out with the newer version where I was able to run it on my windows server and then I used the pi to run in a kiosk mode and display the posters. Works well. The only issue i did run into was when it tried to do cinemagraphs within the Pi OS it skipped and stuttered badly. I don't believe I tested this on a Pi 3 though and maybe just my original B. When I used an old laptop I had laying around for testing purposes with windows 7 I was able to run cinemagraphs over the webserver no problem.
  6. DexDeadly

    Halloween 6: Curse of Michael Myers

    Version

    33 downloads

    This themed deck of trivia slides is for the 6th installment in the Halloween movie series. The deck includes a number of slides from several different categories including: Facts 12 Quotes 10 Multiple Choice 40
  7. DexDeadly

    Halloween 5: The Revenge of Michael Myers

    Version

    36 downloads

    This themed deck of trivia slides is for the 5th installment in the Halloween movie series. The deck includes a number of slides from several different categories including: Facts 10 Quotes 10 Multiple Choice 40
  8. DexDeadly

    Halloween 4

    Version

    42 downloads

    This themed deck of trivia slides is for the 4th installment in the Halloween movie series released in 1988. The deck includes a number of slides from several different categories including: Facts 10 Quotes 12 Multiple Choice 40
  9. DexDeadly

    Halloween 3

    Version

    48 downloads

    This themed deck of trivia slides is for the 3rd installment in the Halloween movie series released in 1982. The deck includes a number of slides from several different categories including: Facts 12 Quotes 8 Multiple Choice 20
  10. DexDeadly

    Halloween 2

    Version

    56 downloads

    This themed deck of trivia slides is for the 2nd installment in the Halloween movie series released 1981. The deck includes a number of slides from several different categories including: Facts 12 Quotes 8 Multiple Choice 40
  11. DexDeadly

    Halloween

    Version

    81 downloads

    This themed deck of trivia slides is for the 5th installment in the Halloween movie series. The deck includes a number of slides from several different categories including: Facts 8 Quotes 8 Multiple Choice 40
  12. DexDeadly

    Quick Up & Running OpenHAB

    If you are running OpenHAB you can easily integrate with a one line HTTP GET in an action file. This is a very basic method but could get you up and running within a few mins. Example: Create a file named lights_before_trivia.txt Place this line in the document and replace with the following information: http://INSERT_LAN_IP:INSERT_PORT/CMD?NAME_OF_SW/GROUP=VALUEINSERT_LAN_IP = The IP of your OpenHAB server INSERT_PORT = The Port in which your OpenHAB server is on NAME_OF_DIM/SW = Put the name of the Switch or Dimmer you want to send the command to Example: Light_HomeTheater_Back_Sw VALUE = If your sending to a SWITCH use either ON or OFF, if you are sending to a DIMMER use any value between 0 - 100. Example: http://192.168.1.10:8080/CMD?Light_HomeTheater_Back_Sw=OFFSave the file and place in your actions command folder on your Kodi system where you have the CinemaVision folders. Then within the Sequence editor add the action. In the example above I placed this right before the trivia slides start. Once you place the action in, point it to your newly created .txt file. Save your sequence and run it, your lights should now react within the sequence. ** NOTE: If you have security enabled within OpenHAB you will need to add an additional line to your action file. The 2nd line in the action file will need to be the following:HEADERS: {"Authorization": "Basic=XXXXX"} - You can generate the Basic=XXXX by using the Postman plugin for Chrome. Using Postman you can place in your user credentials and the header line will generate for you. You can than place this within the header line and you will than be able to send your JSON request lines with authorization turned on. Here is an example of how the action file can look http://192.168.1.10:8080/CMD?Light_HomeTheater_Back_Sw=OFF HEADERS: {"Authorization": "Basic=XXXXXX"}** NOTE:Currently when sending a new brightness the dimmer will be a quick change and not a gradual.** Currently working on a smoother dim which might be done using a rule, but if you want to be up and running with OpenHAB quick heres one way to do it. I'll post my working example of a smoother dim once I have it.
  13. DexDeadly

    OpenHAB - Advanced Dimmer Control using JSON

    Hello @sam9s ! You go ahead and trigger this by editing your sequence as mentioned above. You can find the guide to editing your sequence here: If you still need assistance please feel free to reach out to me via PM.
  14. DexDeadly

    Hue Bulbs missing command

    Agreed, super cool effect with the color loop!
  15. DexDeadly

    Time of Day Scripting

    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
  16. This sounds like an interesting idea. Watching a TV show before a movie for me would be confusing but I could see if smart playlist can be used for something else such as trailers and the like.
  17. DexDeadly

    buffering...

    Hey defcon, glad you were able to get it fixed up!
  18. I get exactly what you mean and that would be a great addition to the remote. With the guide Ragnarok provided it should be simple. The developer is very open to adding things and listening to feedback so I would hope this is something he adds. Great suggestion!
  19. I worked with him before getting Google Music to be shared to a skin. I've been a user of Yatse for years as well. Was just curious as to what you mean its hard to launch? You should be able to hit the good ol hamburger button to open the context and select Cinemavision on a movie. That of course would mean you would need to have the Cinemavision Launcher installed.
  20. DexDeadly

    buffering...

    Hello defcon, Is the next part of your sequence trying to load the movie? If you have a log we can check to see what is trying to do when it hits that buffering. I would think the local movies wouldn't be the issue. If you have a log I can look at it see if anything jumps out.
  21. DexDeadly

    The Good Dinosaur

    View File The Good Dinosaur This download contains a cinemagraphic fanart for the 2015 movie The Good Dinosaur. This fanart is in .gif & .mp4 format. They can be used with the Virtual Poster app. Submitter DexDeadly Submitted 01/23/2017 Category Motion Fan Art  
  22. DexDeadly

    The Good Dinosaur

    Version 1.0.0

    9 downloads

    This download contains a cinemagraphic fanart for the 2015 movie The Good Dinosaur. This fanart is in .gif & .mp4 format. They can be used with the Virtual Poster app.
  23. DexDeadly

    The Good Dinosaur

    Version

    33 downloads

    This download contains 2 cinemagraphic posters for the 2015 file The Good Dinosaur. These posters are in .mp4 format. They can be used with the Virtual Poster app.
  24. Hey th0r4z1n3, The latest version of the MoviePoster App for Windows actually can now just be run on a machine and left running. You can then just load a browser on your Pis to play your posters. It now has a built in WebServer. It works great. I use it currently. The app automatically I believe has the options for dimming and the like within it. The app you just put in where your Kodi box is on your network and monitors the connection for now playing and the like. I did a demo video showing this app here. Sorry for the shaky video :). The application also has options for custom posters as well. If you do continue and create your own I"d be more then happy to help! I have some pis so I can test and what not.
  25. DexDeadly

    The Good Dinosaur

    View File The Good Dinosaur This download contains 2 cinemagraphic posters for the 2015 file The Good Dinosaur. These posters are in .mp4 format. They can be used with the Virtual Poster app. Submitter DexDeadly Submitted 10/06/2016 Category Motion Posters  

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.