View Full Version : Get "Now Playing" at bash?
skavan
10-07-2007, 03:31 AM
Hi,
I have the sendkeyplus application working and webremote and OzTivo p and running.
OS is 6.3xx and I'm running TWP 2.
My goal is to create a 2-way IP remote control. i.e. send commands and get some feedback.
What I need is something that I can run from the command line that will return what is actually playing on the TIVO.
i.e. CHANNEL 082|NBCHD|Jay Leno Show|11:00pm|12:00am|Recording
as well as similar info if theviewer is watching a pre-recorded show.
Could anyone either point me in the right direction or fire off a bit of script that I could run that would return this info.
Thanks.
s.
ciper
10-07-2007, 07:14 AM
What if you use the Links web browser and connect to http://127.0.0.1/screen ?
skavan
10-07-2007, 11:49 AM
What if you use the Links web browser and connect to http://127.0.0.1/screen ?
>> er...what's the "Links" web browser? if you mean TWP...I tried that and get 404 ERROR.
Am I being dense? <<
Yes - I am being dense -- found the links proggie --- will test and revert.
(although I was hoping there would be some command line proggie or script that someone had already written)!
tx.
bash-2.02# NowShowing
<Title>:<It's Always Sunny in Philadelphia><Day>:<Thu><Date>:<10/4><Year>:<10/4/07><Station>:<FX><EpisodeTitle>:<The Gang Sells the Bar; Frank Sets Sweet Dee on Fire><FSID>:<2490364/12><TyStream>:</2495980/2496020/2496052/2496059/2496061/2496070><TotalSize>:<1124>
<Title>:<Mad Men><Day>:<Thu><Date>:<10/4><Year>:<10/4/07><Station>:<AMC><EpisodeTitle>:<Indian Summer><FSID>:<2446590/12><TyStream>:</2495331/2495334/2495471/2495638/2495790><TotalSize>:<740>
<Title>:<The Office><Day>:<Thu><Date>:<10/4><Year>:<10/4/07><Station>:<OR2><EpisodeTitle>:<Dunder-Mifflin Infinity><FSID>:<2446583/12><TyStream>:</2495303/2495313/2495318/2495319/2495321/2495326><TotalSize>:<944>
<Title>:<30 Rock><Day>:<Thu><Date>:<10/4><Year>:<10/4/07><Station>:<OR2><EpisodeTitle>:<Seinfeld Vision><FSID>:<2446586/13><TyStream>:</2495233/2495239/2495282><TotalSize>:<472>
<Title>:<My Name Is Earl><Day>:<Thu><Date>:<10/4><Year>:<10/4/07><Station>:<OR2><EpisodeTitle>:<The Gangs of Camden County><FSID>:<2446584/12><TyStream>:</2495223/2495226/2495232><TotalSize>:<476>
<Title>:<Pushing Daisies><Day>:<Wed><Date>:<10/3><Year>:<10/3/07><Station>:<OR9><EpisodeTitle>:<Pie-lette><FSID>:<2482728/13><TyStream>:</2490555/2490563/2490568/2490570/2490573><TotalSize>:<865>
<Title>:<House><Day>:<Tue><Date>:<10/2><Year>:<10/2/07><Station>:<OR35><EpisodeTitle>:<The Right Stuff><FSID>:<2436462/12><TyStream>:</2486069/2486078/2486087/2486092/2486096><TotalSize>:<784>
NowShowing is a part of mfs-utils. MIPS binaries for Series2 here (http://downloads.sourceforge.net/mfs-utils/mfs-utils_bin.mips-20060503.tar.bz2?modtime=1146644211&big_mirror=0).
UPDATE: sorry, that wasn't what you asked. Check /TivoWebPlus/modules/info.itcl, apparently it checks /State/MyWorld/LastChannel in mfs.
skavan
10-07-2007, 05:39 PM
ok ciper...
thanks for the suggestion --- but I am stuck. I installed links on my tivo...
but no matter what I do to try and run it, I get "cannot execute binary file" (./links). I wonder if its the right binary?
I'm running HD210. 6.3a. Any ideas?
drez:
You are quite right -- the info.itcl does indeed grab this info as part of its activity....I'm not expert enough in being to interpret the info.itcl file and "extract" just the bit that would give me what's being watched. (Also - when I just pulled it up - it showed it was recording 2 suggestions -- but didn't indicate which one was being viewed - when I changed channels -- it correctly identifies one as being viewed).
Anyway -- any ideas on how to "pull" just this bit of info at a command line?
thx.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.