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  
midgetspy

Are there any parameters/variables available in home automation scripts?

Question

For example can I pass the movie name or anything like that or would I need to call a separate Kodi addon which would retrieve that info and pass it along to my home automation system?

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0
1 hour ago, midgetspy said:

For example can I pass the movie name or anything like that or would I need to call a separate Kodi addon which would retrieve that info and pass it along to my home automation system?

There's not currently a way to do this, but that's one of the features we're working on adding in the next release. What variables would you want to see? What would be helpful?

Share this post


Link to post
Share on other sites
  • 0
55 minutes ago, Ragnarok said:

There's not currently a way to do this, but that's one of the features we're working on adding in the next release. What variables would you want to see? What would be helpful?

Well my use case is probably not very common but the variable I'd be interested in is the filename of the movie that is about to play.

Share this post


Link to post
Share on other sites
  • 0
55 minutes ago, midgetspy said:

Well my use case is probably not very common but the variable I'd be interested in is the filename of the movie that is about to play.

That's one of the variables we were thinking about adding in. We've identified these, so far:

  • Kodi database ID
  • Name (movie name, episode name, etc.)
  • Type (movie, tv show, episode, etc.)
  • File name
  • File path

Share this post


Link to post
Share on other sites
  • 0

I think it might be helpful to be able to know what sequence file is being ran as well. Any other info about the feature(s) could easily be pulled via JSON RPC once you know the ID and type.

Share this post


Link to post
Share on other sites
  • 0
16 minutes ago, McSwindler said:

I think it might be helpful to be able to know what sequence file is being ran as well. Any other info about the feature(s) could easily be pulled via JSON RPC once you know the ID and type.

Very true, we'll add that to the list. While they can certainly be pulled out of Kodi via JSON RPC, I think it would be much simpler to have pre-defined variables that load all of that information for you. That way instead of an action line that calls Kodi via JSON RPC, you can have something like %%MOVIEID%% to make it easier on those who don't code. Thoughts?

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Ragnarok said:

Very true, we'll add that to the list. While they can certainly be pulled out of Kodi via JSON RPC, I think it would be much simpler to have pre-defined variables that load all of that information for you. That way instead of an action line that calls Kodi via JSON RPC, you can have something like %%MOVIEID%% to make it easier on those who don't code. Thoughts?

Oh, yea I completely agree, I was just talking about stuff that I might use for myself, I couldn't think of specifics so when I need them I can just pull them via JSON RPC. The stuff that's already been mentioned is more common stuff that a lot of people will use, but other stuff like the director and actors most people won't use so there probably shouldn't be a special variable for them. 

Does that make sense? I always have difficulty translated my thoughts onto paper...

Now, another question, would the variables be a list of everything in the queue?

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, McSwindler said:

Oh, yea I completely agree, I was just talking about stuff that I might use for myself, I couldn't think of specifics so when I need them I can just pull them via JSON RPC. The stuff that's already been mentioned is more common stuff that a lot of people will use, but other stuff like the director and actors most people won't use so there probably shouldn't be a special variable for them. 

Does that make sense? I always have difficulty translated my thoughts onto paper...

Now, another question, would the variables be a list of everything in the queue?

We weren't planning to make that a variable, but it will be something you'll be able to query via JSON RPC I believe. That feature is still being brainstormed. :)

Share this post


Link to post
Share on other sites
  • 0

So what is the purpose of sending the movie name and info to your home automation?  I'm very intrigued at the idea as I love automating everything.  

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

×
×
  • Create New...

Important Information

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