Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 37

Thread: re-enable webremote with sendkeyplus

  1. #16
    Join Date
    Aug 2004
    Posts
    26
    Maybe I can help...

    steve90071,

    I was in the same boat as you. I created /devbin and copied sendkeyplus as sendkey in that folder. All was well. no more error messages.

  2. #17
    Join Date
    Aug 2004
    Posts
    26

    v0.9 beta executable

    Strange behavior between .8 beta and .9 beta with Webremote.

    .8 beta works great except for the known issues

    .9 beta is throwing errors for buttons. below is the guide button. Only variance is the sofware versions.

    Thoughts?


    Code:
    INTERNAL SERVER ERROR
    --cut here--
    action_sendkey '/guide' ''
    Usage: sendkeyplus [options]  [...]
            Send one or more keypress events to TiVo software v6.1 and higher.
            sendkeyplus requires alldeadhomiez' routerplus kernel module,
            see http://www.pvrhax0r.com/forum/showthread.php?threadid=51
    
            Options:
              -l        List all possible keypress events
              -w        Wait for acknowledgment after sending each event
              -r        Treat arguments as raw event numbers instead of names
              -v        Verbose mode
    
            Advanced Options:
              -p  Pause  milliseconds after sending each event
    
            Note:   The keypress event names are case-insensitive
                    NUM0 through NUM9 can be written as 0 through 9
                    The default pause (unless specified) is 1000
    
    sendkeyplus v0.9 beta
    Copyright (c) 2007, tivo4mevo
    All Rights Reserved.
    Permission to use and distribute this software for non-commercial use
    is hereby granted, provided that both the copyright notice and this
    permission notice appear in all copies of the software, derivative works
    or modified versions and any portions thereof, and that both notices appear
    in supporting documentation.
    
    See http://dealdatabase.com/forum/showthread.php?p=287662 for more information.
    
    /devbin/sendkey: invalid option -- a
        while executing
    "exec $env(TIVO_ROOT)/devbin/sendkey -wait $evrc($key)"
        (procedure "SendKey" line 8)
        invoked from within
    "SendKey $key"
        ("foreach" body line 8)
        invoked from within
    "foreach key $cmds {
    set index [lsearch "thumbsdn volup voldown chanup chandn slow advance" $key]
    if {$index >= 0} {
    set key [lindex "thumbsdown volume..."
        (procedure "MOD::action_sendkey" line 18)
        invoked from within
    "$cmd $p1 $p2 $p3"
        (procedure "do_action" line 19)
        invoked from within
    "do_action $action $chan $part $env 1"
    --cut here--

  3. #18
    Join Date
    Nov 2004
    Posts
    221
    try sending the cmd outside of twp, see what is done. if it bombs outside twp, go from there. Honestly, if it worked on an old ver, and bombs on the new,something with the app messed up I'd think

  4. #19
    Join Date
    Aug 2004
    Posts
    26
    Quote Originally Posted by mrpenguin View Post
    try sending the cmd outside of twp, see what is done. if it bombs outside twp, go from there. Honestly, if it worked on an old ver, and bombs on the new,something with the app messed up I'd think
    all the commands work great from bash prompt

  5. #20
    Join Date
    Nov 2004
    Posts
    412
    In v0.8 beta, the wait option took an argument, but in v0.9 beta, it does not. It never really handled the long form "-wait", but just incorrectly interpreted "ait" as an argument to the "-w" option.

    Thus, I think you want to change this line
    Code:
    "exec $env(TIVO_ROOT)/devbin/sendkey -wait $evrc($key)"
    to this
    Code:
    "exec $env(TIVO_ROOT)/devbin/sendkey -w $evrc($key)"
    or perhaps even removing the wait option entirely, as webremote seems to only send one key at a time, so blocking on acknowledgment probably creates complications rather than doing good?
    Code:
    "exec $env(TIVO_ROOT)/devbin/sendkey $evrc($key)"
    Last edited by tivo4mevo; 10-03-2007 at 09:29 AM.

  6. #21
    Join Date
    Apr 2005
    Location
    Providence, RI
    Posts
    458

    Channel up/down

    I also needed to replace all instances of "surfup" and "surfdown" in webremote.itcl with "channelup" and "channeldown". There were three occurrences of each.
    More software at http://davidlauria.com/software.
    The lost alt-rock masterpiece from the '90s, Range of Motion's "Soft Buzz of Silence", is now available on iTunes!

  7. #22
    Join Date
    Apr 2005
    Location
    Providence, RI
    Posts
    458

    More updates

    ***EDIT*** First diff was backwards; corrected one attached

    Here's a diff which rolls a few updates into webremote.itcl. It fixes the channel, exit and windows keys as well as removing the line that used to block it from working on versions > 4.0.
    You'll also have to add the following lines to tvlib/tcl/tv/sendkey.tcl:

    set evrc(exit) EXIT
    set evrc(window) WINDOW

    just put them at the bottom, below AOLTV. While you're editing the file, don't forget to update the line:

    exec $env(TIVO_ROOT)/devbin/sendkey -wait $evrc($key)

    Substitute the current location for sendkeyplus, and optionally remove the -wait flag.
    Attached Files Attached Files
    Last edited by djl; 10-10-2007 at 10:56 AM. Reason: backwards
    More software at http://davidlauria.com/software.
    The lost alt-rock masterpiece from the '90s, Range of Motion's "Soft Buzz of Silence", is now available on iTunes!

  8. #23
    Join Date
    Apr 2004
    Posts
    114
    Thanks to all who have done the heavy lifting - I am now able to control my dtivo (hr10-250 running 6.3e and twp v071004) from tivowebplus!!!

    In my case, there were three places where I had to modify:

    exec $env(TIVO_ROOT)/devbin/sendkey -wait $evrc($key)

    in /tvlib/tcl/tv/sendkey.tcl. They originally read:

    exec $env(TIVO_ROOT)/devbin/sendkey -wait -waitTimeOut 2500 $evrc($key).

  9. #24
    Join Date
    Jan 2004
    Location
    n.h. usa
    Posts
    957
    any idea using the new routerplus what the syntax would be to wait on a keypress now.. so that other code that looks for certain keypresses can be reenabled thanks

  10. #25
    Join Date
    Aug 2003
    Posts
    613

    Is this working?

    I'm looking at adding support for this to TivoWebPlus 2.1. To those who've modified their copy of TWP to support it, how is it working? Any issues?
    HR22-700, DSR704(6.2a), DSR7000(6.2a) w/killHDinitrd, superpatch(1.12), MRV, tivoserver, MFS_FTP, TivoWebPlus(2.1), TyShow, Hackman, tivocid, Tracker, ChannelPrefs, MovieLoader, TySuiteJ, MCE(HD), Xbox360, Jacket Themes, NoReRecord

  11. #26
    Join Date
    Apr 2005
    Location
    Providence, RI
    Posts
    458
    After I made the modifications described in post #22 it worked perfectly on my Series 2. Some of the jpeg coordinates were wrong on the original, and a few keys had wrong names. I can't send the Window key to toggle closed-captions, but I would assume that's because tivovbi is taking precedence.


    Quote Originally Posted by SteveT View Post
    I'm looking at adding support for this to TivoWebPlus 2.1. To those who've modified their copy of TWP to support it, how is it working? Any issues?
    More software at http://davidlauria.com/software.
    The lost alt-rock masterpiece from the '90s, Range of Motion's "Soft Buzz of Silence", is now available on iTunes!

  12. #27
    Join Date
    Aug 2003
    Posts
    613

    added to 2.1b3

    OK, I've changed TivoWebPlus 2.1b3 to check for /devbin/sendkey. If found, it sets on a flag which is now used throughout TWP to allow sendkey functions.

    To use with versions later than 3.x, you need to:
    1) install routerplus.o (per those instructions)
    2) download the latest sendkeyplus (v1.0 from 10/20/2007)
    3) rename sendkeyplus to sendkey, create a folder called /devbin, and copy the sendkey binary into this folder.

    This allows Tivo's existing sendkey.tcl to work without changes, and should keep older versions working as now (not tested).

    I also added djl's fixes from post 22 to webremote.

    The changes have been placed into cvs and should be available in the next package release.

    Thanks to all who contributed to making this available and testing it. Please let me know of any problems.
    HR22-700, DSR704(6.2a), DSR7000(6.2a) w/killHDinitrd, superpatch(1.12), MRV, tivoserver, MFS_FTP, TivoWebPlus(2.1), TyShow, Hackman, tivocid, Tracker, ChannelPrefs, MovieLoader, TySuiteJ, MCE(HD), Xbox360, Jacket Themes, NoReRecord

  13. #28
    Join Date
    Feb 2004
    Location
    Gulf South
    Posts
    89
    Quote Originally Posted by SteveT View Post
    3) rename sendkeyplus to sendkey, create a folder called /devbin, and copy the sendkey binary into this folder.

    Should the /devbin directory be created in the root or in TivoWebPlus directory? I'm really having fits trying to get this working.

    Thanks.

  14. #29
    Join Date
    Aug 2003
    Posts
    613
    Quote Originally Posted by unclemoosh View Post
    Should the /devbin directory be created in the root or in TivoWebPlus directory? I'm really having fits trying to get this working.

    Thanks.
    in the root. Make sure the name is sendkey and it is executable.

    Test by running "/devbin/sendkey tivo" at the command line, and check the output text for errors. Don't forget that sendkeyplus requires routerplus be installed at 6.x.
    HR22-700, DSR704(6.2a), DSR7000(6.2a) w/killHDinitrd, superpatch(1.12), MRV, tivoserver, MFS_FTP, TivoWebPlus(2.1), TyShow, Hackman, tivocid, Tracker, ChannelPrefs, MovieLoader, TySuiteJ, MCE(HD), Xbox360, Jacket Themes, NoReRecord

  15. #30
    Join Date
    Feb 2004
    Location
    Gulf South
    Posts
    89
    Quote Originally Posted by SteveT View Post
    Test by running "/devbin/sendkey tivo" at the command line, and check the output text for errors. Don't forget that sendkeyplus requires routerplus be installed at 6.x.
    I get:
    Unknown key: tivo/


    EDIT: Nevermind. I rebooted and all seems well. Thanks.
    Last edited by unclemoosh; 02-18-2008 at 12:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •