[REQUEST] YAC Caller-ID (Script) for XBMC? - YAC Caller ID Listener and Notifcations
#46
i believe that scripts exist for this, though they currently don't support (to my knowledge) display over the top of video. they will show at other times though.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#47
thanks for the info which script is it ?

martin
Reply
#48
(martink2 @ feb. 16 2005,09:55 Wrote:which script is it ?
see http://www.xboxmediaplayer.de/cgi-bin....;t=3331 and http://www.xboxmediaplayer.de/cgi-bin....;t=8669
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#49
hallo everyone ,

i tried the scripts in this post and they worked well
exept that i did not like the window in the middle of my movie
so i took the liberty to make some changes now the id is displayed as a white text over an black bar at the top of the screen

class messagebar(xbmcgui.windowdialog):
   def (self):
    self.line1 = xbmcgui.controllabel(100, 40, 200, 200, "", "font14", "0xffffffff")
self.line2 = xbmcgui.controllabel(100, 65, 200, 200, "", "font14", "0xffffffff")
self.background = xbmcgui.controlimage(0,0,720, 100, "q:\\scripts\\bg.png", "0x11000000")
       self.addcontrol(self.background)
self.addcontrol(self.line1)
self.addcontrol(self.line2)
self.line1.setlabel("incomming call from :")
self.line2.setlabel("")


host = ''                 # symbolic name meaning the local host
port = 10629              # arbitrary non-privileged port
s = socket.socket(socket.af_inet, socket.sock_stream)
s.bind((host, port))
while 1:
   s.listen(1)
   conn, addr = s.accept()
   while 1:
       data = conn.recv(1024)
       lengthmsg = len(data)
       if lengthmsg > 1:
           print data
           dialog = messagebar()
   dialog.line2.setlabel(data)
           dialog.show()
           time.sleep(4)
           dialog.close()
           del dialog
       if not data: break
   conn.close()

by the way does anyone know how the colorkey thing
for transparancy work ?? i would like the bar to be 60 %
transparent??

will work on the thing in the next few days...

cu martin
Reply
#50
ahh, this is exactly what i wanted, but since changing to telewest i can't find a piece of equipment that gives me the called id info
boo anyone else know any that works.
Reply
#51
does anyone have an ideas/suggestions on how to modify the script to work with caller id sentry rather than yac? both programs do the same thing (network cid), but since i use a 3com audrey running a caller id program compatable with caller id sentry, id like to modify the xbox script to listen for that instead of yac.

i attempted to just change the ports to match but nothing pops up on the xbox.

are there any docs for the caller id script (other than the code itself)?

thanks.
Reply
#52
i've put together a pair of scripts for yac caller id on the xbox that i am calling puid.

the listener script listens for the yac broadcast, displays it, and logs it.

the gui script gives you a nice gui that allows you to view your call log to see what you've missed, etc, as well as clear out the log.  the time that the call was received is added to the log along with caller name and number.

you can get them here:  download puid
Reply
#53
i've put together a pair of scripts for yac caller id on the xbox that i am calling puid. the listener is built partially off of the one by alexpoet.

the listener script listens for the yac broadcast, displays it, then logs it.

the gui script gives you a nice gui that allows you to view your call log to see what you've missed, etc, as well as clear out the log. the time that the call was received is added to the log along with caller name and number.

you can get them here
Reply
#54
Reply
#55
I have both a YAC and NCID server running on my network, the modem running the servers is on a Kubuntu 9.10 desktop and it seems to work very nicely.. it would be great to be able to have the caller ID info display on the Tv. I found a script on Navi-x that said that this can be done, by simply installing a script, so far i have not had it working, ive modified it to no avail and still nothing.

I just ditched my comcast cable triple play bundle, and got a phoneline with ooma, i however got very use to the onscreen caller id that they had.
If anyone could be of help, i would greatly appreciate it, thanks!

EDIT: after messing around with it i found it is receiving the YAC signal and it does show up in the debugging script output I was able to get it partly working, the script recieves the caller id, displays "PHONE CALL" and then displays the caller ID name, but not the number. and it is very small if it was in a different spot and larger it would be nice. i just dont know how to get the phone number to display now.
Reply
#56
I am not a programmer but I got this thing to work.. I have a win2003 server with a caller ID modem using YAC.. There is a script which makes Yac speak the caller ID. I simply modified the .VBS file.. VBSCRIPT.. And then I send Caller ID using the message feature in XBMC ( so you need to enable HTTP web stuff on XBMC )

1) Install Yac
2) Replace Yac with modified Yac Ver .17 & scripts http://mattcollinge.wordpress.com/2007/0...using-yac/
3) Download and put "wget.exe" inside same directory ( it's a dos http thing )
I think this one, I forget the copy I have so if the switches in the script don't match, then change the commandsHuh
http://users.ugent.be/~bpuype/wget/
4) I had to remove spaces from the data and replace with %20 as you can see..
5) change your .vbs file to this ( its a mess and a lot is garbage, I didnt clean it up ) but it does work.. and you can figure out what the stuff does.. I send the ID to 4 computers in this script.. I Noticed when I posted this that the spaces and everything is messed up in the post.. SO USE THE INFO BELOW AS A TEMPLATE!! And copy paste into the original script ( make backup).. Anything with a 'is just info... So you can ignore it..
' --------------------------------------------------------
' Matt Collinge :: http://www.mattcollinge.co.uk :: 17 April 2007
' --------------------------------------------------------
' Take an incoming call from YAC and use the default voice
' to speak it back to the user.
' --------------------------------------------------------

Dim voic
Dim message
Dim messagePrefix

' Clean out any non-numbers
Function CleanTheString(theString, theReplacement, theCharSeparator)
'msgbox thestring
strAlphaNumeric = "0123456789" 'Used to check for numeric characters.
For i = 1 to len(theString)
strChar = mid(theString,i,1)
If instr(strAlphaNumeric,strChar) Then
CleanedString = CleanedString & strChar & theCharSeparator
Else
If (theReplacement <> "") Then
CleanedString = CleanedString & theReplacement & theCharSeparator
End If
End If
Next
'msgbox cleanedstring
CleanTheString = CleanedString
End Function


calltype = WScript.Arguments(0)

Set voic = WScript.CreateObject("SAPI.SpVoice")
Set voic.voice = voic.GetVoices("", "Language=809").Item(0)

select case calltype
case "call"
sNumber = WScript.Arguments(1)
sName = WScript.Arguments(2)
if (sName = "No Name") then
messagePrefix = "Incoming call from number "
' Strip out characters if the message is a number
message = CleanTheString(sNumber, "", "")
else
messagePrefix = "Incoming "
message = sName
end if
case "message"
message = WScript.Arguments(1)
messagePrefix = "Incoming message "
end select

'voic.Speak(snumber)




'strURL = "http://media3:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(" + messagePrefix + ",testing123,10000))"

'strURL = "http://media3:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(sNumber,%20testing123,10000))"

'strURL = "http://www.google.com" + sNumber

poopnewpoop = Replace(sNumber," ","%20")
poopnewpoop2 = Replace(sName," ","%20")

'voic.Speak(poopnewpoop)
'strURL = "http://media3:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(" +poopnewpoop +",%20testing123,10000))"
'strURL = "http://www.google.com"




'strURL = "http://media3:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification("+poopnewpoop2+","+poopnewpoop+",10000))"
'Set objShell = CreateObject("Wscript.Shell")
'objShell.Run(strURL)



Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "cmd /k C:\Progra~1\YAC\wget.exe --tries=1 --timeout=1 [url]http://login:xbmc@media3:8080[/url]/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification("+poopnewpoop2+","+poopnewpoop+",30000)) & C:\Progra~1\YAC\wget.exe --tries=1 --timeout=1 http://login:xbmc@kitchen:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification("+poopnewpoop2+","+poopnewpoop+",30000)) & C:\Progra~1\YAC\wget.exe --tries=1 --timeout=1 http://login:xbmc@media1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification("+poopnewpoop2+","+poopnewpoop+",30000)) & C:\Progra~1\YAC\wget.exe --tries=1 --timeout=1 http://login:xbmc@media2:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification("+poopnewpoop2+","+poopnewpoop+",30000)) & del xbmc*.* & exit"
Set oShell = Nothing





Set voic = nothing
Reply

Logout Mark Read Team Forum Stats Members Help
[REQUEST] YAC Caller-ID (Script) for XBMC? - YAC Caller ID Listener and Notifcations0