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

Specifying a sequence with a movie via powershell using JSON-RPC

Recommended Posts

Ok, Now that I've figured out how to launch a movie using powershell with kodi Json, I am trying to specify an experience...which i assume means a  'sequence' ...according to the documentation the code listed below should work, but it doesn't. Can someone else see what might be missing? Am i using the wrong flag for launching a specific sequence?  I'm trying to pick a christmas movie and launch a christmas sequence


#Starts a cinemavision sequence
$data = @{
    'jsonrpc' = '2.0'
    'method' = 'Addons.ExecuteAddon'
    'id' = 1
    params = @{
        addonid = 'script.cinemavision'
        params = @(@{movieid = "$pickedmovie"}, @{experience = "christmas"})

$json = $data | ConvertTo-Json -Depth 100

$url = 'http://'+$hostname+':'+$port+'/jsonrpc'
$mycreds = New-Object System.Management.Automation.PSCredential ($username, $secpwd)
Invoke-WebRequest -Uri $url -Credential $mycreds -Body $json  -ContentType application/json -Method POST -AllowUnencryptedAuthentication


Edited by shredder

Share this post

Link to post
Share on other sites

I have to tell you that there's not much going on here, so your audience here is pretty limited--there's hardly anyone here anymore.  There's a new addon in development to replace CinemaVision, and discussion has moved to a discord.  PM me if you want an invite to the server.  That being said, you're doing the Lord's work figuring out how to trigger stuff with powershell--I'd help you out, but I don't know much about the inner workings of RPCs on Kodi or CV.

Share this post

Link to post
Share on other sites

Thanks for the reply, I think this add on is great when it works and completes a home theater move experience. If there's something in the works that is an improvement upon CV, i'd like to be a part of it. I sent you a message. I have conditions set for the sequences in the CV addon which works....well enough, until multiple conditions are true and then it falls apart after that. Thanks for the reply, If i make any headway on this I'll be sure to post.

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.

Reply to this topic...

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


  • Create New...

Important Information

By using this site, you agree to our Guidelines and Terms of Use.