XBMC Community Forum
Notify - iPhone Notification App for XBMC (send push notifications to XBMC) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+--- Thread: Notify - iPhone Notification App for XBMC (send push notifications to XBMC) (/showthread.php?tid=64545)



- Cloaky - 2011-02-12 15:43

Here, another and might be the last update : ) I don't see anything else I can improve. Ideas are always welcome tho.

iTunes + EventGhost script:
http://pastebin.com/6Q5FyBvj


- johoja - 2011-02-12 17:12

Cloaky Wrote:Here, another and might be the last update : ) I don't see anything else I can improve. Ideas are always welcome tho.

iTunes + EventGhost script:
http://pastebin.com/6Q5FyBvj

Cool thanks. I'll update the first post.


- michaeldecharon - 2011-02-13 17:27

michaeldecharon Wrote:It would be great if your computer pronounce the name of the caller, so that you don't have to pick up your iphone everytime that someone calls.

I think every recognize the situation: your wachting your favorite movie or tv-show and someone is calling you on your iphone.

You've to pick up your iphone to have a look who's calling...

But wait!

What if your computer pronounces the name of the person who's calling you?

I know there is a way to let Phyton speak... and there is a good script of handeling an incoming phonecall on your iphone.

So lets put together does scripts and mission accomplished!

The "big" problem... I can't code in Phython

Lookin at the script, from johoja http://pastebin.com/s1Y4svzw for handeling phonecalls and the syntax to use the name of the person who's calling you:

HTTP.Michael::Ring::CallIncoming::John Smith::

Looking at the line of the script of johoja:

20. if parts[2] == "CallAccept":
21. baseUrl = "http://" + host + "/xbmcCmds/xbmcHttp?command="
22. cmd = "getcurrentlyplaying"

I think we've to change it to
20. if parts[2] == "CallIncoming":

parts[3] must be the name of the person who's calling you: John Smith

If we can use this with the following script:

import pyTTS
tts = pyTTS.Create()
tts.SetVoiceByName('MSSam')
tts.Speak(parts[3]'is calling you')

Does anyone thinks that this can be done?

And what about a synergy between the speech plugin script from eventghost?
http://pastebin.com/imEnRpLt


- johoja - 2011-02-18 08:22

1.63 released, minor release fix saving prefs issue, and got rid of respringing, settings should update on the fly..... not tested so much.


- Cloaky - 2011-02-20 00:38

johoja Wrote:1.63 released, minor release fix saving prefs issue, and got rid of respringing, settings should update on the fly..... not tested so much.

Cool! Any tips on whats coming on 2.0??!


- michaeldecharon - 2011-02-20 15:42

michaeldecharon Wrote:And what about a synergy between the speech plugin script from eventghost?
http://pastebin.com/imEnRpLt

No one?


- johoja - 2011-02-20 20:09

Cloaky Wrote:Cool! Any tips on whats coming on 2.0??!

Not to sure...I kind of just add stuff whenever I get free time. Anything specific your looking for?


- johoja - 2011-02-20 20:10

michaeldecharon Wrote:No one?

I believe that can be done without any changes made in NP.


- Cloaky - 2011-02-21 23:10

johoja Wrote:Not to sure...I kind of just add stuff whenever I get free time. Anything specific your looking for?
Well, I was about to request "Don't require respring on changing prefs, change on the fly." but you already got it done : ) the only think i am still looking for is moving it to the settings.app, i will think of other cools things that you could add, keep tunned.


- michaeldecharon - 2011-02-26 15:14

johoja Wrote:I believe that can be done without any changes made in NP.

I finally found it! Big Grin

Put this little text in a script:

if parts[2] == "CallIncoming":
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, u'Incoming call,' + parts[3] , 0, 100)
eg.plugins.EventGhost.Wait(4.0)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, u'Incoming call,' + parts[3] , 0, 100)
eg.plugins.EventGhost.Wait(4.0)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, u'Incoming call,' + parts[3] , 0, 100)

Don't forget to install the speak plugin from eventghost!