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!

Lorem ipsum dolor sit amet, sea eu causae aperiri periculis, iusto affert soleat an sea, soluta petentium inciderint nec no. Dolorum reprimique ullamcorper sed ad. Ei quo malorum singulis, tota mundi feugait ut pro. Choro utamur inimicus ex sea. Tota dicit te usu. Sea ad erant possim reformidans. An modus detraxit postulant vel. Per no habeo ludus qualisque. Vix legere singulis legendos et, an cum eius soluta accumsan. Facer discere no nec.
   Join Now

Download the Kodi Add-on Today!

Lorem ipsum dolor sit amet, sea eu causae aperiri periculis, iusto affert soleat an sea, soluta petentium inciderint nec no. Dolorum reprimique ullamcorper sed ad. Ei quo malorum singulis, tota mundi feugait ut pro. Choro utamur inimicus ex sea. Tota dicit te usu. Sea ad erant possim reformidans. An modus detraxit postulant vel. Per no habeo ludus qualisque. Vix legere singulis legendos et, an cum eius soluta accumsan. Facer discere no nec.
  • 0
ostfriesenkopp

Kodi http requests @action files

Question

Dear all,

does anyone know the http request commands  which i have to add to an Action file in order to let kodi pause video Playback and resume it some seconds later?

What i want to do is to switch off the philips hue lights slowly. After this is done, the Video starts. At the Moment the Video starts while the lights are going off slowly...

http://api/internal-ip/sername/groups/7/action
PUT:{"on":false,"transitiontime":90}
kodi: pause
sleep://8500
kodi: play 

Does this work?

Best, Helge

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 2/19/2018 at 12:09 AM, ostfriesenkopp said:

Dear all,

does anyone know the http request commands  which i have to add to an Action file in order to let kodi pause video Playback and resume it some seconds later?

What i want to do is to switch off the philips hue lights slowly. After this is done, the Video starts. At the Moment the Video starts while the lights are going off slowly...

http://api/internal-ip/sername/groups/7/action
PUT:{"on":false,"transitiontime":90}
kodi: pause
sleep://8500
kodi: play 

Does this work?

Best, Helge

Hey Helge,

This might simplify it for you. Instead of sending pause/play commands to Kodi, just sleep the Action until the lights finish dimming. The 90 second transition time translates to 90000 milliseconds. Try this:

http://<hue-bridge-ip>/api/<hue-bridge-user>/groups/<hue-light-group>/action
PUT:{"on":false,"transitiontime":90}

sleep://90000

This should time it so the Action "completes" right when the lights have dimmed fully.

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, ostfriesenkopp said:

Hi there,

thanks. One last question (atm): How do I integrate the pause/resume/break sequences/Action files for the Feature presentation?

Kind regards, Helge

Sure thing! You'll find the Pause/Resume/Abort actions in the CinemaVision Add-on Settings under the Actions menu.

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.