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
  • 0
Sign in to follow this  
mguebert

How to encode cvaction file for ISY (works in Open Elec)

Question

I struggled for a time trying to get this working, with a lot of help from DexDeadly, Ragnarok, and Winchy I got it working with authorization

First using the postman plugin format a test url command such as http://1.1.1.1/rest/nodes/22222/cmd/DON 

Select get in the url header and below that under authorization select basic auth. Input your username and password. Select send to test if the command works. If it does press the </> button and it will generate the authorization hash. copy it into a HEADERS command such as this

 

http://1.1.1.1/rest/nodes/22222/cmd/DFOF
HEADERS: {"Authorization": "Basic= xxxxxxxxxxxx"}

Note the spaces in the headers portion and the capitalization. These do matter.

The 22222 would be a scene in the isy your controlling

http://1.1.1.1/rest/nodes/22222/cmd/DFOF would turn scene 22222 off

http://1.1.1.1/rest/nodes/22222/cmd/DFON would turn scene 22222 on

http://1.1.1.1/rest/nodes/22222/cmd/DOF/128 would turn scene 22222 to 50% brightness

 

If you want to control modules directly the command needs %20 for any spaces in the url

http://1.1.1.1/rest/nodes/2 2 2 1/cmd/DFON would be the url in a browser where 2 2 2 1 is module 2 2 2 

to get it to work in the cvaction file the spaces must have %20 in them

http://1.1.1.1/rest/nodes/33%2033%2033%201/cmd/DFON would turn on module 33 33 33

I hope this helps

  • Upvote 2

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Mr. Guebert,

Howdy. This looks like exactly what I was trying to do when I mentioned it on AVS. Thanks for helping. I'm glad to see that I don't need to learn Perl in order to get this to work. I'll have more questions I'm sure.

Share this post


Link to post
Share on other sites
  • 0
9 hours ago, Jvoth said:

Mr. Guebert,

Howdy. This looks like exactly what I was trying to do when I mentioned it on AVS. Thanks for helping. I'm glad to see that I don't need to learn Perl in order to get this to work. I'll have more questions I'm sure.

I actually just replied to your forum post on AVS. :D I modified and expanded the action files and shot the master and a few scripts to test your way. Let me know the results so I can post them up here. Mark did a great job putting together the commands.

Share this post


Link to post
Share on other sites
  • 0

I'll post this on AVS as well. I got it working. I did have to use Postman to get the authorization hash. I thought the authorization was my ISY password and that wasn't it. Maybe I'm doing something wrong but it is working actually working. I had to use scenes in order to get it working though because I couldn't get the individual dimmers to do what I wanted. It's fine though, since I already had scenes basically set up for what I was trying to do.

Share this post


Link to post
Share on other sites
  • 0

Jvoth,

 

To make the individual dimmers work you need to append 1 to the module number. Login to your isy control panel. Find the module or dimmer you want to control. The address will be in the form 45 56 67

so the command in the cvaction file will look like this

http://your isy ip/rest/nodes/45%2056%2067%201/cmd/DON/128

That would set module 45 56 67 to 50% brightness. The values for brightness are 0 - 255

 

Share this post


Link to post
Share on other sites
  • 0
17 hours ago, Jvoth said:

I'll post this on AVS as well. I got it working. I did have to use Postman to get the authorization hash. I thought the authorization was my ISY password and that wasn't it. Maybe I'm doing something wrong but it is working actually working. I had to use scenes in order to get it working though because I couldn't get the individual dimmers to do what I wanted. It's fine though, since I already had scenes basically set up for what I was trying to do.

JVoth,

 

It is your isy username and password encoded in base64, this is what the postman plugin does for you.

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
Sign in to follow this  

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.