Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lja

Pages: 1 2 [3] 4 5 ... 10
31
@PegLegTV

Thanks for taking the time to work on this. I will try them. Actually I was also researching how to use "search".

32
When I use NetfliXBMC with chrome I use these commands for basic control of video playback

http://voxcommando.com/forum/index.php?topic=1802.msg17156#msg17156

I also did some testing by enabling debug log in XBMC/KODI to see what kind of information NetfliXBMC was outputting,
after I enabled debug then I went to genres in NetflIXBMC, then I looked at the log file

this should take you straight to NetfliXBMC genres
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.8-->
<commandGroup open="True" name="NETFLIXBMC GENRE" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="612" name="show Genres" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>GUI.ActivateWindow</param>
        <param>"window": "video", "parameters": ["plugin://plugin.video.netflixbmc/?mode=listGenres&amp;thumb&amp;type=movie&amp;url=WiGenre"]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>show Genres</phrase>
  </command>
</commandGroup>

I tried to go straight to a specific genre but I didn't have any luck with that, and I need to get some sleep  ::zzz, I hope this helps

@PegLegTV

Thanks for the above, it does help . While it achieves the same as my post, I certainly think it is a shorter and better approach. I hope after your much needed sleep, you will be refreshed and full of new ideas. I will continue to see if I can develop this any further.

33
Thanks for the input. Could you give an example on how this could be used in a command?

"Play/Pause : ACTION_SELECT_ITEM"

34
VC:2.142
Kodi 14.2 Helix
NextfliXbmc installed

Goal: To play movie from Netflix in Kodi using NextfliXBMC and voice commands

Attached is my attempt so far. Presently set to go to Favourites/Movies/Genres in Netflix. This brings up the list of Netflix Genres.
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<commandGroup open="False" name="NetflixBMC" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="786" name="Show Favourites" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PayloadXML.Clear</cmdType>
      <params>
        <param>{Path.VC}\payloads\NetFlixGenre.xml</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>GUI.ActivateWindow</param>
        <param>"window": "favourites", "parameters": [ "NetflixBMC" ]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>200</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Locating Netflix</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <params>
        <param>{ENTER}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>8000</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <params>
        <param>{ENTER}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>300</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <params>
        <param>{DOWN}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <params>
        <param>{DOWN}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <params>
        <param>{DOWN}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>InputKeys.Send</cmdType>
      <params>
        <param>{ENTER}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Show Favourites</phrase>
  </command>
  <command id="788" name="Pause,Stop" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>DxInput.KeyPress</cmdType>
      <params>
        <param>space</param>
        <param>pause</param>
        <param>stop</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Pause,Stop</phrase>
    <phrase>Netflix</phrase>
  </command>
</commandGroup>

Requirement: Any guidance on how to play movie from here and to close Netflix when finished. I have tried "Window.Close.chrome" which does close Netflix but re-entering Netflix without closing Kodi starts to replay the same movie again. At the list of genres, I use the command "Select" to go to a specific genre and then "select" again to play the movie.

Any improvement in my coding would also be appreciated.

Thanks.

35
Other Plugins / Re: RoboB questions
« on: March 23, 2015, 05:37:10 PM »
@Haddood

Any updates on your Netflix approach?

36
Kodi (XBMC) Frodo / Gotham / Isengard / Jarvis / Re: Kodi not closing
« on: March 21, 2015, 12:50:54 PM »
It may be a cinema experience issue as with the "Play movie...." command, I can stop movie and then the close command closes Kodi so far.
I forgot about this which may be quite similar. I will try this approach and see what happens.

http://voxcommando.com/forum/index.php?topic=1336.msg14640#msg14640

While the issue in the link above was not exactly the same, based on my initial tests, installing the Gotham version of CE seems to fix the closing of Kodi. Will continue to test.

37
Kodi (XBMC) Frodo / Gotham / Isengard / Jarvis / Re: Kodi not closing
« on: March 21, 2015, 12:00:41 PM »
Sounds like maybe a Kodi or cinema experience issue.

Does it only happen after using cinema experience?

It may be a cinema experience issue as with the "Play movie...." command, I can stop movie and then the close command closes Kodi so far.
I forgot about this which may be quite similar. I will try this approach and see what happens.

http://voxcommando.com/forum/index.php?topic=1336.msg14640#msg14640

38
Kodi (XBMC) Frodo / Gotham / Isengard / Jarvis / Re: Kodi not closing
« on: March 20, 2015, 09:47:02 PM »
I would start by doing a test. Do everything exactly the same way, in the same sequence, but instead of using a voice command to close Kodi try closing Kodi using one of two methods below (try both).

1 press alt-F4 on your keyboard.

2 press s then choose shutdown.

Let us know if either or both of these methods work ok.

Thanks for your response. Initial response on tests:
!. Closes Kodi but cannot open after with command "Open Kodi"
2. Closes Kodi. When stopped on Intro, a Runtime Error Shows. When stopped on movie, Kodi closes and can be reopened with command "Open Kodi"

Have tried on Windows 8.1 amd 7
Will test further to see if same results are repeated.

39
Kodi (XBMC) Frodo / Gotham / Isengard / Jarvis / Kodi not closing
« on: March 20, 2015, 07:08:15 PM »
VC:2.142
Vox Tools Installed
Kodi:Helix 4.2 rc1
Windows 8.1

Problem: "Close Kodi" does not close Kodi after movie is stopped ( Not sure if this is a problem with Kodi or VC)

Situation: Using the command "Open Kodi" opens Kodi and "Close Kodi" closes Kodi before using any other commands.

Next command:Command "Feature Movie" plays intro with movie following. After movie is finished using the command
"Close Kodi" freezes Kodi and I have to use Task Manager to close.

Action taken: Have reinstalled both Kodi and VC
Tried also on Windows 7 and get the same results.

Command link: http://voxcommando.com/forum/index.php?topic=1674.msg17967#msg17967
Reply#27

VC log attached
Is there any other info I should provide?

Any assistance would be appreciated. If it is not a VC problem, I will post on Kodi forum.

40
@jitterjames

"another option is to use the CinemaExerience home automation script."

Thanks. I will try the replacement approach. But before doing so, is any adjustment necessary in your attached file?
Will the Kodi.Player.OnStop.movie be still needed in the LCB?

41
@lja - As a side note, this may not matter if you don't ordinarily use a voice command to start watching your movies; however, if you'd like for that voice command to work correctly, you can fix the command pretty easily.

Based on the log you posted, somehow the correct action was edited in your Show Movie command, changing the proper syntax for payload {1} to just 1.

This means KODI will always play the movie with ID 1 in your library after the intro. For it to play the movie you've asked for, the command needs to use payload {1}.

It seems that currently your Show Movie command has a line:

XJson.Raw --> Addons.ExecuteAddon "wait": false, "addonid": "script.cinema.experience", "params": [ "movieid=1" ]

That should be:

XJson.Raw --> Addons.ExecuteAddon "wait": false, "addonid": "script.cinema.experience", "params": [ "movieid={1}" ]

@ nime5ter Thanks. On checking the history shows:XJson.Raw --> Addons.ExecuteAddon "wait": false, "addonid": "script.cinema.experience", "params": [ "movieid=1" ]

However the command shows it correctly:XJson.Raw --> Addons.ExecuteAddon "wait": false, "addonid": "script.cinema.experience", "params": [ "movieid={1}" ]

42
@jitterjames

Thanks for the explanation and example. Will try it.

43
Looking for some help please:

VC:2.142
Kodi: Helix rc1
Kodi on same computer as Vox

Situation: Upgraded Kodi

Goal: To turn lights off at end of movie
Results with present setup: Lights are turned on at end of intro not at end of movie

Present
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<command id="515" name="KODI post movie lights back on" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.1.100:25005/3?02621D1E3B0F11FF=I=3</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <params>
      <param>Thanks for watching. This has been a Galaxy Home Cinema Presentation. Hope you enjoyed the show.</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>KODI.Player.OnStop.movie</event>
</command>


Also tried this:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<commandGroup open="False" name="KODI movie time " enabled="False" prefix="" priority="0" requiredProcess="" description="">
  <command id="1196" name="Set movie now playing variable" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>movieNowPlaying</param>
        <param>true</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>KODI.Player.OnPlay.movie</event>
  </command>
  <command id="1197" name="End of movie, turn lights back up" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>(A)==(B)</ifType>
      <ifParams>{var.movieNowPlaying}&amp;&amp;true</ifParams>
      <then>
        <action>
          <cmdType>Scrape</cmdType>
          <params>
            <param>http://192.168.1.100:25005/3?02621D1E3B0F11FF=I=3</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>TTS.Speak</cmdType>
          <params>
            <param>I hope you enjoyed the show.</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.SetVar</cmdType>
          <params>
            <param>movieNowPlaying</param>
            <param>false</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <event>KODI.Player.OnStop.movie</event>
  </command>
</commandGroup>

Thanks for any help

44
Media Browser (Emby) / Re: Playback stop event in MB Classic?
« on: February 21, 2015, 02:28:05 PM »
@nime5ter

Thanks. As always you have been very helpful. Much appreciated.

45
Media Browser (Emby) / Re: Playback stop event in MB Classic?
« on: February 21, 2015, 02:25:15 PM »
OK then.  The answer is "YES" that is the name of the event.

 :)

Pages: 1 2 [3] 4 5 ... 10