PDA

View Full Version : NEW hdvr2 tivoweb remote


cobelli
07-27-2003, 01:36 AM
I made a new hdvr2 remote for tivoweb that uses an actual scan of the remote. Give it a try and let me know what you think. Two files are in the zip. Put hdvr2.png in /var/hack/tivoweb-tcl/images. If you want to put it somewhere else, edit webremote.itcl and change line 12. Then replace the webremote.itcl in your modules directory with the one in the zip.

Enjoy!
- Cobelli

http://hostfreedom.com/hdvr2_remote.zip
(Please give feedback)

Shr00m
08-04-2003, 02:43 PM
Works good, thanks for the update!! Now I just have to figure out how to fix the "What's On" module :confused:

I get this:


INTERNAL SERVER ERROR
--cut here--
action_whatson '/' ''
can't read "env(TV_STD)": no such element in array
while executing
"if { $env(TV_STD) != "PAL"} {
set usformat 1
} else {
set usformat 0
}"
(procedure "::action_whatson" line 12)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--

kalex
08-04-2003, 10:02 PM
This is weird. i downloaded ur files, ftped them to tivoweb-tcl\images and modules, did a full restart of tivoweb and still have the old no -image remote.


damn it


alex

cobelli
08-05-2003, 12:32 AM
Make sure to chmod the webremote.tcl module

kalex
08-05-2003, 08:47 AM
I am a moron. I forgot to click on the image field. it works. thanks


alex

Shr00m
08-05-2003, 01:44 PM
Now I am not only getting the error on "What's On" screen, but also this one when I try to go select a show and record it:


INTERNAL SERVER ERROR
--cut here--
action_record '' 'set "quality" "100";set "kal" "2";set "startearly" "0";set "endlate" "0";set "objectid" "86653/113";set "conflictslist" "";set "Record" "Record";'
can't read "objectid": no such variable
while executing
"string index $objectid 0"
(procedure "::action_record" line 2)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--


Anyone know what the problem is?? TivoWeb is sweet and I would like to be able to use all of its functions :confused:

cobelli
08-07-2003, 01:47 AM
Haven't tackled what's on yet, but I do have a fix for the recording problem. Open up ui.itcl in a unix compatible editor. Run down to line 1692.

The original line reads:
puts $chan "<INPUT TYPE=\"submit\" NAME=\"foo\" VALUE=\"No\" onClick=\"history.go(-1)\">"

Change it to:
puts $chan "<INPUT TYPE=\"BUTTON\" VALUE=\"No\" onClick=\"history.go(-1)\">"

That should do it :)
- Cobelli

Shr00m
08-08-2003, 10:57 AM
Didn't seem to work, here is what I went to:

User Interface > Channel Guide > The channel I wanted to record from > View Upcoming Listings > The day I wanted > The Episode I wanted > Record > Confilcts Button > Record Button

Then I get this:


INTERNAL SERVER ERROR
--cut here--
action_record '' 'set "quality" "100";set "kal" "2";set "startearly" "0";set "endlate" "0";set "objectid" "94417/18";set "conflictslist" "";set "Record" "Record";'
can't read "objectid": no such variable
while executing
"string index $objectid 0"
(procedure "::action_record" line 2)
invoked from within
"::action_$action $chan $part $env"
("eval" body line 1)
invoked from within
"eval {::action_$action $chan $part $env}"
--cut here--


Am I doing something wrong? I downloaded the file to my linux box edited it in VI and ftp'ed it back up, then chmod 777 the file you said to edit.

EDIT: SEASON PASS WORKS FINE THOUGH

Thanks!!

kalex
08-08-2003, 11:34 AM
did u change the quality settings? on hdvr2 there is no quality settings and if u change that field it will crap out. leave it on default and it should work.

Shr00m
08-08-2003, 11:39 AM
Originally posted by kalex
did u change the quality settings? on hdvr2 there is no quality settings and if u change that field it will crap out. leave it on default and it should work.

No, I didn't change the quality settings. Did you try that hack? does it work for you?

kalex
08-08-2003, 11:40 AM
my tivoweb is working.a friend of mine fixed it long time ago

Shr00m
08-08-2003, 11:43 AM
Ill try clearing my cache, maybe thats the prob.


Nope, same thing :confused:

rpl
08-08-2003, 07:42 PM
Thanks Cobelli remote looks great just loaded it up

jeffscott72
08-15-2003, 11:33 PM
I'm having the exact same problem as you Shr00m. I can't set it to record anything either...

tivomoron
08-16-2003, 08:05 AM
The new remote does look great


I'm having the exact same problem as you Shr00m. I can't set it to record anything either... Only works from the remote.

p.s. Are any of you able to replace extracted shows of an hour in length with the mfs_ftp program?

cobelli
08-16-2003, 07:11 PM
Well, I think I found the problem. It appears to be in the ui.itcl file. Interestingly enough, there is no visible difference, only in formatting. Even more interesting is that my file, which works, is in windows format! So give this a try. Replace the file in your modules directory.

-Enjoy
Cobelli

tivomoron
08-16-2003, 09:27 PM
That did the trick! Thank you

Shr00m
08-20-2003, 03:33 PM
Originally posted by tivomoron
That did the trick! Thank you


Worked for me too!! Thanks!!

RadOD
08-25-2003, 01:56 AM
I'm getting the same problem as Shr00m was. I replaced the ui.itcl with cobelli's with no change.

Do I need to kill tivoweb and restart it for it to take effect? How do I do that?

mrblack51
08-25-2003, 02:34 AM
Originally posted by RadOD
I'm getting the same problem as Shr00m was. I replaced the ui.itcl with cobelli's with no change.

Do I need to kill tivoweb and restart it for it to take effect? How do I do that?

yes, if you change anything like that, you have to restart tivoweb. you can do it via the restart tivoweb link in tivoweb

Shr00m
08-25-2003, 09:13 AM
Anyone have a fix for the What's On module?

cobelli
08-25-2003, 11:02 AM
Ya, I fixed it. I never even bothered to look at this module because I don't use it, but the problem was actually really simple. It was attempting to read a variable to determine whether it was a pal or ntsc machine, but the variable did not exist so it failed. I bypassed the check and set it permanantly to ntsc and it works for me. The change is easy enough to make, but I have included files for both pal and ntsc anyway. Be forewarned, I tested it quickly on my ntsc machine, and it seems to work. I have not tried it on a pal box at all. Files are offered as-is!

Enjoy!
-Cobelli

RadOD
08-25-2003, 11:04 PM
Ah that did it for me! Thanks again cobelli!

Anyone else have problems searching:

Search Results for "enterprise"
Results
An error was encountered running the search program
/var/hack/tivoweb-tcl/bsearch: /var/hack/tivoweb-tcl/bsearch: cannot execute binary file


And I did chmod 777 bsearch

mrblack51
08-26-2003, 01:31 AM
Originally posted by RadOD
Ah that did it for me! Thanks again cobelli!

Anyone else have problems searching:



And I did chmod 777 bsearch

did you replace bsearch with the mips version?

cobelli
08-26-2003, 01:48 AM
Ya, like Mr Black said, make sure you are using the mips version of bsearch (check my guide for the link to the files). Also, make sure you are ftping the file over in binary mode. And finally, while it may seem stupid, make sure you actually put the file in the right place (i.e. /var/hack/tivoweb-tcl/). Other than that, I am out of ideas. Good luck!

- Cobelli

hdvr_too
08-29-2003, 01:25 PM
cobelli
I have been trying to reach your site and it seems you have exceeded your bandwidth cap. It has been down since somtime late last night. I guess you have alot of fans!
I know I am, thanks to your nice walkthrough and file support my HDVR2 is running 3.1.U5, tivoftp,tivoweb on a wireless usb.
I hope your back up soon, without probs from your ISP.
Thanks for the great contributions-

cobelli
08-29-2003, 06:44 PM
Thanks for the concern. For now I have mirrored the guide here http://cobelli.net/tivo/. I'll allocate more bw next month.

- Cobelli

Ozy666
09-03-2003, 10:20 PM
Quick question...is there a reason there is no Guide, List, Exit, or Info button on the Tivoweb Remote?

Also, when I switch from Text to Image (or vice versa), it changes the channels on me.

Ozy

cobelli
09-04-2003, 12:08 AM
is there a reason there is no Guide, List, Exit, or Info button on the Tivoweb Remote?

Well, sort of. The original text remote didn't have those buttons, so I didn't put them on the graphic one. Whatever their reason was, my reason is :)


Also, when I switch from Text to Image (or vice versa), it changes the channels on me.

Ya, that is because whatever button was pressed last get's recalled when you switch remotes. If you switch before you press any other buttons, you won't get that.

Cobelli

Ozy666
09-04-2003, 01:01 AM
Originally posted by cobelli
Well, sort of. The original text remote didn't have those buttons, so I didn't put them on the graphic one. Whatever their reason was, my reason is :)




Ya, that is because whatever button was pressed last get's recalled when you switch remotes. If you switch before you press any other buttons, you won't get that.

Cobelli

Hmm, well I don't know much about TCL, but it seems that the remote uses sendkey.tcl in /tvlib/tcl/tv, and sendkey.tcl has entries for guide, and so on...

Maybe I'll play around with it and see.

EDIT: yup, just entering in the URL: .../sendkey/guide then .../sendkey/clear brings up the guide and dismisses it (but I have to toggle between text and image to actually send the command). Should be easy to incorporate it if you have the full image of the remote.

Ozy

cobelli
09-04-2003, 01:16 AM
Good point. It will be added shortly :)
- Cobelli

Ozy666
09-04-2003, 02:46 PM
Originally posted by cobelli
Good point. It will be added shortly :)
- Cobelli

This isn't really directed at you, and may be a bit off-topic, but I was using the tivoweb remote on my PocketPC (Dell Axim) and it got me to thinking that a native Tivo remote for PocketPC (still sending the commands over TCP/IP) would be pretty nifty.

I realize that in a round-a-bout way, one could use NetRemote and Girder with an IR transmitter to accomplish this as well, but I think a native, TCP/IP remote for the PocketPC would be much cleaner...

I will ponder futher upon this.

Ozy

tim2009
10-29-2003, 06:09 PM
After many attempt, I still can't get the remote image on my tivoweb. I am running a HDVR2 and transfer all the files over. I double check the files are in place, change the location line and I even reboot, no success. On my tivoweb page, I have 2 Web Remote on top of the menu, both of them show only txt and no image. Can anyone please help? I also did this:
chmod 777 webremote.itcl

Thanks.

NutKase
11-01-2003, 10:14 AM
Am I going to be able to use this? I thought there was a problem with not having a sendkey binary on S2's? Maybe it's just for SA S2's.

Just wondering whether to spend some of my limited hacking time in this area.

NutKase

rpl
11-26-2003, 05:31 PM
be easy to incorporate it if you have the full image of the remote.
----------------------------------------------------------------------------------------------
Good point. It will be added shortly
- Cobelli

Cobelli did you update the Guide, List, Exit, or Info button on the Tivoweb Remote image?

Sleeper
11-26-2003, 09:51 PM
Originally posted by NutKase
Am I going to be able to use this? I thought there was a problem with not having a senkey binary on S2's? Maybe it's just for SA S2's.

Just wondering whether to spend some of my limited hacking time in this area.

NutKase

Whazzzzzzzz UP ?

I think you are correct, its just 4.x. I also believe that tivoweb has been fixed for 4.x, so therefore the same fix should apply.

So the answer to your question is that it might be at least worth some research.

NutKase
11-26-2003, 10:44 PM
Originally posted by Sleeper
Whazzzzzzzz UP ?

I think you are correct, its just 4.x. I also believe that tivoweb has been fixed for 4.x, so therefore the same fix should apply.

So the answer to your question is that it might be at least worth some research.

By 'tivoweb has been fixed' do you mean someone is able to send commands via the remote in 4.x (using sendkey?)

I know there is a sendkey.tcl but no binary that I can find and I get the error
-----------------------------------------
INTERNAL SERVER ERROR
--cut here--
action_sendkey '/down' ''
couldn't execute "/devbin/sendkey": no such file or directory
while executing
"exec $env(TIVO_ROOT)/devbin/sendkey $evrc($key)"
(procedure "SendKey" line 8)

dadada...

I talked to the author of sendkey (who's on the road) and he said it was all .tcl at first but after more questions he said that he'd get back with me after he returns home and checks his notes.


NutKase

tivomaster
11-26-2003, 11:05 PM
Here is a SendKey tcl program that I use on my HDVR2 with 3.0 did you try it? It was part of the SPS30 group.

Put it in your /var/hack/bin, chmod it, and try

SendKey tivo

Sleeper
11-26-2003, 11:10 PM
Originally posted by NutKase
By 'tivoweb has been fixed' do you mean someone is able to send commands via the remote in 4.x (using sendkey?)

That's what I'm guessing. I could be wrong.

On a 3.x.x box the sendkey binary is /bin/SendKey

This program obviously emulates remote control keypresses to tivoapp. I have heard that it is no longer shipped on 4.x

Also, as you know the 3.x.x version of sendkey will probably not work with 4.x tivoapp.

I wonder if tivoapp itself directly communicates with the remote control io port or if there is another program (process) that communicates with the port and then with tivoapp. This may be the case becasue I have read that people have had problems with their remote control and front panel locking up. This could be because that process froze up for some reason - if it exists. It also could be a hardware issue.

Anyway, if there is a seperate io process, then disassembling it would reveal how to communicate with tivoapp and another sendkey for 4.x could easily be written once that is known.

Sleeper
11-26-2003, 11:16 PM
Originally posted by tivomaster
Here is a SendKey tcl program that I use on my HDVR2 with 3.0 did you try it? It was part of the SPS30 group.

Put it in your /var/hack/bin, chmod it, and try

SendKey tivo

I think that's been tried before, but hey, it will only take NutKase 2 microseconds to test it out - and who knows, it might work.

NutKase
11-27-2003, 04:54 AM
Originally posted by Sleeper
I think that's been tried before, but hey, it will only take NutKase 2 microseconds to test it out - and who knows, it might work.

Well, having the file cured my errors on not finding it but I still see no visible response so I guess it doesn't work.

Do you also have a file called sendkey.tcl in /tvlib/tcl/tv ? If so please post it.

NutKase

tivomaster
11-27-2003, 07:57 AM
Originally posted by NutKase
Well, having the file cured my errors on not finding it but I still see no visible response so I guess it doesn't work.

Do you also have a file called sendkey.tcl in /tvlib/tcl/tv ? If so please post it.

NutKase

Yes I have that file and am posting it .....

Sleeper
11-27-2003, 01:07 PM
sendkey.tcl calls the binary SendKey


proc SendWait { key seconds } {
SendKey $key
after [expr $seconds * 1000]
}

NutKase
11-27-2003, 02:37 PM
Originally posted by Sleeper
sendkey.tcl calls the binary SendKey

I know, that's why I wanted a 'matching' one to the 'binary' that was posted.

That 'binary' is still an uncompiled plain .tcl file w/out an extension as far as I can tell. Ideas?

NutKase

tivomaster
11-27-2003, 02:50 PM
Originally posted by NutKase
I know, that's why I wanted a 'matching' one to the 'binary' that was posted.

That 'binary' is still an uncompiled plain .tcl file w/out an extension as far as I can tell. Ideas?

NutKase

The way mine works (3.0 HDVR2) is the SendKey resides in my /var/hack/bin directory.. It calls/references sendkey.tcl which resides in /tvlib/tcl/tv

What if you put these 2 files in those 2 places? Does it still not work?

ps it also uses log.tcl that is in /tvlib/tcl/tv do you have that file also?

NutKase
11-27-2003, 03:00 PM
Originally posted by tivomaster
The way mine works (3.0 HDVR2) is the SendKey resides in my /var/hack/bin directory.. It calls/references sendkey.tcl which resides in /tvlib/tcl/tv

What if you put these 2 files in those 2 places? Does it still not work?

ps it also uses log.tcl that is in /tvlib/tcl/tv do you have that file also?

I'm working another issue (mfs_ftp insertion on 4.x) and my ftp is tied up for a bit. I understand your post that's why I wanted a 'matching' sendkey.tcl - it's different from mine BTW. I might be a little slow hacking today, after all I've got to thank my kids for being so wonderful :)

NutKase

rpl
11-27-2003, 04:48 PM
Originally posted by tivomaster
The way mine works (3.0 HDVR2) is the SendKey resides in my /var/hack/bin directory.. It calls/references sendkey.tcl which resides in /tvlib/tcl/tv

What if you put these 2 files in those 2 places? Does it still not work?

ps it also uses log.tcl that is in /tvlib/tcl/tv do you have that file also? A difference I noticed in the two versions sendkey is that Tivo changed the labels for event types.
3.X version of sendkey.tclset evrc(up) 0
set evrc(u) 0
set evrc(down) 1
set evrc(d) 1
4.X version of sendkey.tclset evrc(up) UP
set evrc(u) UP
set evrc(down) DOWN
set evrc(d) DOWN
Hopefully someone who understands how sendkey works can make the adjustments.