View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jul 03, 2010 1:12 pm 
Offline
Joined: Sat Oct 28, 2006 3:18 am
Posts: 6
jzigmyth's procedure to get caller ID popup using ncidd/ncid is good. However, I'd rather be able to see the callerid display anytime, not just during playback. So instead of using ncid-mythtv, I used ncid-yac along with xyac.

So, I followed the procedure, but with one change to the ncid configuration:

/etc/sv/ncid/run contents:

Code:
#!/bin/sh
exec 2>&1
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions

svwaitup -s 3 /var/service/ncidd || exit 1

which ncid 2>/dev/null >/dev/null

if [ $? = 0 ]
then
    if [ -f /var/service/ncidd/run ]
    then
        sv start ncidd
    fi

    stat_runit "Starting callerid client"

    exec /usr/bin/ncid --no-gui --message --call-prog --program ncid-yac
fi


Now, the additional steps...
ncid-yac needed to be modified slightly, as it wasn't stopping on its own and wasn't sending until it was stopped.
Code:
sudo nano /usr/share/ncid/ncid-yac

This line:
Code:
echo -n "@CALL${CIDNAME}~${CIDNMBR}" | nc -w1 $YACCLIENT $YACPORT

Needs to change to:
Code:
echo -n "@CALL${CIDNAME}~${CIDNMBR}" | nc -c $YACCLIENT $YACPORT

So now, instead of waiting for a timeout, nc just sends and closes. That timeout never happened on my system, so the yac messages were only occurring on shutdown.



ncid-yac depends on netcat. So install netcat:
Code:
sudo pacman -S gnu-netcat

This gave me a warning, but it functions.



Now to set up xyac...
modified for R6 from elgordo123's procedure here:

xyac depends on xosd, so install that.
Code:
sudo pacman -S xosd


pacman doesn't know xyac, so we'll have to compile it...
Code:
wget http://www.bah.org/~greg/tivo/xyac/xyac-0.1.tar.gz
tar zxvf xyac-0.1.tar.gz
cd xyac*
su
make
make install

This installs xyac to /usr/local/bin

To get xyac to run, it'll need an entry in fluxbox apps.
Code:
sudo nano /home/mythtv/.fluxbox/apps

Add this line:
Code:
[startup] {/usr/local/bin/xyac -p middle -A center -c yellow -s 5 -f lucidasanstypewriter-bold-24 &}

(Note can also use lucidasanstypewriter-bold-18 if 24 is too big)
(Note: the command xlsfonts will show a list of fonts avail to you)
(Make sure it is all ONE line in the apps file or it wont start)

Restart x and give yourself a call.

If you'd like to manually test xyac from the same machine, you can fire off one of these...
Code:
echo -n "testing testing 123" | nc -c 127.0.0.1 10629

or from a different machine, adjust that 127.0.0.1 to meet your needs.

If you'd like to serve yac information to other machines on your network, set the list of listeners for ncid-yac at the bottom of /etc/ncid/ncidmodules.conf. I've got ncid-yac serving out to my windows box too, with the yac client here.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 04, 2010 8:03 am 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
This looks interesting!

Perhaps you could update or add to the wiki?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2010 7:42 pm 
Offline
Joined: Sun Jun 12, 2005 2:14 pm
Posts: 55
Location: Madison, WI
Thanks for this!!

I was able to install this without problem.

I've got a CallerID program I wrote on my Windows PC (yes I'm a Windows developer). I was able to modify my program to output CID info to my myth box.

_________________
ZOTAC ZBOX HD-ID34
HDHomerun
Streamzap IR remote
2GB RAM


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2010 8:29 pm 
Offline
Joined: Sat Oct 28, 2006 3:18 am
Posts: 6
I have the sneaking suspicion that much of this process could be simplified by using the "Run Callerid" and "Show Callerid" tick boxes in:
Service Menu > LinHes Configuration > Advanced Settings

I only noticed they existed after I wrote this up.

I suspect those tick boxes do something similar to jzigmyth's procedure. Is there any documentation on what the tick boxes do exactly? Can anyone point me in the right direction?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2010 8:40 pm 
Offline
Joined: Sat Oct 28, 2006 3:18 am
Posts: 6
Alright, christ, it's up on the wiki.
http://linhes.org/bugs/projects/linhes/ ... using_xyac


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 08, 2010 4:55 pm 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
excellent. I think the wiki is slowly building momentum.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 158 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu