WIP Call Notifications - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: WIP Call Notifications (/showthread.php?tid=179036) |
RE: Call Notifications - berne88 - 2016-11-01 is this one still work in progras? or is this a dead on RE: Call Notifications - lawbike - 2017-02-17 Hi I'm trying to get this plugin to work. I went back to Isengard to test Try instruction from woodhook but doesn't work for me, still have an error when I enable I have just installed this on isengard. Reporting my experience, FWIW. Downloaded the zip from github. Install failed citing inability to find the CallListenerClients. I unzipped, rearranged the components putting the required bits in the same directory with service.py and it worked. I don't work much with python, so maybe the failure was owing to some stupidity on my part regarding python and import, but this kludge worked. My error message in the log is EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ImportError'> Error Contents: No module named CallListenerClients.NcidClient Traceback (most recent call last): File "/home/lwalsh/.kodi/addons/service.script.call-notifications-master/service.py", line 9, in <module> from CallListenerClients.NcidClient import NcidClient ImportError: No module named CallListenerClients.NcidClient -->End of Python script error report<-- Not finding the module CallListenerClients.NcidClient Did download full zip from github Move files around hoping to solve. Any more idea for me. Thanks RE: Call Notifications - thromer - 2018-01-22 If you're using NCID, you can create a simple NCID module to make a JSON-RPC call to Kodi to pop up a notification. Mine looks like the following; it's based on the script attached to this post on the NCID forums. #!/bin/sh # Send a message to Kodi # usage: --no-gui --program ncid-kodi # input is always 8 lines # # if input is from a call: # input: DATE\nTIME\nNUMBER\nNAME\nLINE\nTYPE\n\n # # if input is from a message # input: DATE\nTIME\nNUMBER\nNAME\nLINE\nTYPE\nMESG\n # # $TYPE is one of: # CID: incoming call # OUT: outgoing call # HUP: blacklisted hangup # MSG: message instead of a call # NOT: android text # PID: android call read DATE read TIME read NMBR read NAME read LINE read TYPE read MESG read MTYPE user="kodi" pass="kodi" port="8080" host1="sagittarius" host2="nebulosity" host3="delphinus" if [ "$TYPE" != "CID" ] then exit 0 fi body="{\"jsonrpc\":\"2.0\",\"method\":\"GUI.ShowNotification\",\"params\":{\"title\":\"Call from $NAME\",\"message\":\"$NMBR\",\"displaytime\":5000},\"id\":1}" /usr/bin/curl -m 5 -X POST -H "Content-Type: application/json" -d "$body" http://$user:$pass@$host1:$port/jsonrpc & /usr/bin/curl -m 5 -X POST -H "Content-Type: application/json" -d "$body" http://$user:$pass@$host2:$port/jsonrpc & /usr/bin/curl -m 5 -X POST -H "Content-Type: application/json" -d "$body" http://$user:$pass@$host3:$port/jsonrpc & wait exit 0 RE: Call Notifications - bonelifer - 2018-01-22 how does that need installed and called at startup of the ncidd server? RE: Call Notifications - thromer - 2018-01-24 I did this: 1. put the script in /usr/share/ncid/modules/ncid-kodi 2. cp /etc/init.d/ncid-page /etc/init.d/ncid-kodi 3. Edit /etc/init.d/ncid-kodi -- just replace occurrences of "ncid-page" with "ncid-kodi" 4. sudo systemctl enable ncid-kodi 5. sudo systemctl start ncid-kodi RE: Call Notifications - cdynes - 2018-07-06 Great job on creating this NCID-KODI module. I have this caller ID notification working successfully on 4-Zotac PC running on Kodi version 17.6 using Libreelec distro. |