Author Topic: Control Roku with http commands  (Read 7626 times)

0 Members and 1 Guest are viewing this topic.

OklahomaGreyBeard

  • Contributor
  • ***
  • Posts: 54
  • Karma: 3
    • View Profile
Re: Control Roku with http commands
« Reply #15 on: May 16, 2015, 12:34:02 AM »
Sorry for the delay, long day... The changed channel xml worked perfectly. The scrolling works but the problem is the roku speeds up scrolling the longer you hold a button so after about 4-5 moves it's impossible to control where to stop scrolling at. It would need to scroll slower at a set pace to really be useful.

Myself it's probably something I'd never use, but I can see where for some others it would be useful as well as just having a complete set of controls for it.  My main purpose for the roku is really for Plex and the occasional Pandora. Although the new Youtube channel is also getting more use as of late.

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 43
    • View Profile
Re: Control Roku with http commands
« Reply #16 on: May 16, 2015, 01:29:19 AM »
you can give this one a try, its using looping to scroll, it repeats the action every 500 milliseconds, if it works to fast or to slow just adjust the delay time

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.5-->
<commandGroup open="True" name="Roku Scrolling " enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="808" name="Scroll direction (experimental) 2.0" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="True" loopDelay="500" loopMax="50" description="">
    <action>
      <cmdType>Scrape.Post</cmdType>
      <params>
        <param>http://YOUR_ROKU_IPADDRESS:8060/keypress/{1}</param>
        <param />
        <param />
        <param />
        <param>text/html</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Roku Scroll</phrase>
    <payloadList>Left, Right, Up, Down</payloadList>
  </command>
  <command id="890" name="Stop Scrolling (experimental) 2.0" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>VC.StopMacro</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Roku Stop Scrolling </phrase>
  </command>
</commandGroup>

JonPeyton

  • $upporter
  • Jr. Member
  • *****
  • Posts: 36
  • Karma: 3
    • View Profile
Re: Control Roku with http commands
« Reply #17 on: November 25, 2015, 05:54:49 AM »
Feel free to produce more nifty codes for the ol Roku box buddies :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Control Roku with http commands
« Reply #18 on: November 26, 2015, 09:53:08 AM »
IF you read the following guide you will be able to take what others have done and adapt and extend it yourself.  Otherwise you will probably be waiting for quite some time...

http://sdkdocs.roku.com/display/sdkdoc/External+Control+Guide

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Control Roku with http commands
« Reply #19 on: February 17, 2016, 04:48:07 PM »
could someone post (or attach) a full xml for all the Roku commands so I can added it to the gems :)
When Voice command gets tough, use hand gestures