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
Jens

Pause cvaction doesn´t work any longer?

Question

I have an nvidia shield TV and Kodi 19.2 matrix with CV. Could it be that the sleep function in .cvaction no longer works? During the test, cv tells me that everything worked and that longer breaks, e.g. from 10 seconds in the test, were set to 1 sec. I can understand that, but as soon as I run the program and, for example, give the command "sleep: // 43000" the command is skipped and the next command is executed immediately. It has worked for me for years so does anyone have similar experiences? Is it maybe the new python? I might have to try Kodi 19.0 but . I don't want to reinstall everything😰 and then it still doesn't work😉

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Hey Jens --

Running Kodi 19.3 on an NVidia ShieldTV with CV and the pause action works for me. It's pretty simple - I'm just having it do a PUT to my theater lights (Philips Hues) with a long transistion from black to 60% light. Mine doesn't use the sleep command, so perhaps you are asking about that specifically - but for just pausing the movie and bringing up the lights - it's working for me.

Share this post


Link to post
Share on other sites
  • 0

Thank you @ELPTheater but I don´t understand it. Can you give me deeper information how your command looks like?

Here is my Example of the old sleep function that works for me over years:

#Waiting 51 sec.

sleep://51000

#dimm the philips hue light

http://192.168.188.xx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxgroups/1/action
PUT:{"on":false,"transitiontime":30}

#waiting 1 sec.

sleep://1000

#dimm other light

http://192.1xx.xxx.xx.xx/control?key=011

Edited by Jens

Share this post


Link to post
Share on other sites
  • 0

Jens - I tried your sleep://##### function in my own scripts - and definitely got an error in the log - so I'd say you're correct - python seems to be having an issue with parsing the sleep command in the action. 

Share this post


Link to post
Share on other sites
  • 0

Hi,

so does that mean the "sleep://<time in millisec>" feature doesn`t work at all anymore?

I also need the function for the automatic process. That would be the "knock out" for me.

Best regards

onedin

Share this post


Link to post
Share on other sites
  • 0

Looks like they changed the format?  Keep me honest and do a quick search.  I may be wrong.

sleep://51000 = time.sleep(.51000)

Edited by OTA

Share this post


Link to post
Share on other sites
  • 0

I don't know if this helps or not - here is what I found after some testing - if I set it to:

sleep://1000

It works - I get a one second pause and then the next command executes. I did a radical color change so I could see what was going on. 

Anything above that (e.g. sleep://10000) and I still get a 1 second pause. It's almost like the coding for the "test" mode is stuck - that it's converting whatever one puts into the command to 1000 ms.

  • Like 2

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.