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
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

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.