[mythtv-users] Live TV with DCT2000 cable box and IRBlaster...
Adrian Burden
aburden at onegeeksopinion.com
Fri Jun 6 12:10:34 EDT 2003
Thanks for the script
Note, if you copy and paste, take out the extra \" from the strings.
sprintf(command,"/usr/local/bin/rc SEND_ONCE \"gi-motorola-dct2000\"
\"%d\"", number);
Should be
sprintf(command,"/usr/local/bin/rc SEND_ONCE gi-motorola-dct2000 %d",
number);
And change the gi-motorola-dct2000 to what your remote is called in
lircd.conf
Works a lot faster, thanks for reposting Carlos Talbot!!
> -----Original Message-----
> From: mythtv-users-bounces at snowman.net
> [mailto:mythtv-users-bounces at snowman.net] On Behalf Of Carlos Talbot
> Sent: Friday, June 06, 2003 10:01 AM
> To: Discussion about mythtv
> Subject: Re: [mythtv-users] Live TV with DCT2000 cable box
> and IRBlaster...
>
>
> Calvin,
>
> I obtained this from someone on the list a while back. It's
> basically a
> c program to replace the shell and perl script. Just compile
> and install
> in your path. Make sure to update your external command path within
> MythTV setup. Since it makes usleep calls it can decress the delay
> between digits to less than a second.
>
> --------------------------------------------------------------
> --------------------
> #include <stdio.h>
> #include <stdlib.h>
>
> send_channel(int number) {
> static char command[100];
> sprintf(command,"/usr/local/bin/rc SEND_ONCE
> \"gi-motorola-dct2000\"
> \"%d\"",
> number);
> system(command);
> }
>
> send_exit() {
> static char command[100];
> sprintf(command,"/usr/local/bin/rc SEND_ONCE
> \"gi-motorola-dct2000\"
> \"ENTER\"
> ");
> system(command);
> }
>
> main (int argc, char *argv[]) {
> int channel, hundreds, tens, ones;
> channel=atoi(argv[1]);
> if(channel>999) {
> fprintf(stderr,"error- channel is 4 digits\n");
> channel=channel%1000;
> }
> hundreds=channel/100;
> channel=channel-(hundreds*100);
> tens=channel/10;
> ones=channel=channel-(tens*10);
>
> send_channel(hundreds);
> usleep(300000);
> send_channel(tens);
> usleep(300000);
> send_channel(ones);
> usleep(300000);
> send_exit();
>
>
>
> return 0;
> }
> --------------------------------------------------------------
> --------------------
>
> Calvin Gorriaran wrote:
>
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >Does anyone use their mythtv box to watch all live tv with a DCT2000
> >and IRBlaster? After getting it setup
> >last night I don't think it will be a real option because of
> the time it takes for the channel to change.
> >Anyone found a way to speed this up?
> >
> >
> >
> >Calvin
> >-----BEGIN PGP SIGNATURE-----
> >Version: GnuPG v1.2.0 (FreeBSD)
> >
> >iD8DBQE+4LGO1CCG53ZaRNYRAlfwAKCFV7/QbOlce/MzuyfdStqMUttwhgCdFxPZ
> >yT9iJQyECI3UKcADqck5ZaU=
> >=ONf1
> >-----END PGP SIGNATURE-----
> >_______________________________________________
> >mythtv-users mailing list
> >mythtv-users at snowman.net
> >http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
> >
> >
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at snowman.net
> http://lists.snowman.net/cgi-> bin/mailman/listinfo/mythtv-users
>
More information about the mythtv-users
mailing list