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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Notify - iPhone Notification App for XBMC (send push notifications to XBMC) (/showthread.php?tid=64545)



- Cloaky - 2011-02-12

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

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

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

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

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

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

No one?


- johoja - 2011-02-20

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

michaeldecharon Wrote:No one?

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


- Cloaky - 2011-02-21

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

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!


- johoja - 2011-02-28

michaeldecharon Wrote: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!


Awesome thanks for sharing!

On another note I've released a new test version (1.64) that adds support for Samsung TV's. As far as I know it doesn't work....I don't have a Samsung so I can't test it so I'm guessing and checking with the person who requested I add it.

Just thought I'd let you guys know what I'm working on .


- michaeldecharon - 2011-02-28

johoja Wrote:Awesome thanks for sharing!

On another note I've released a new test version (1.64) that adds support for Samsung TV's. As far as I know it doesn't work....I don't have a Samsung so I can't test it so I'm guessing and checking with the person who requested I add it.

Just thought I'd let you guys know what I'm working on .

Your welcome!

Good work! Working on an version for TV's!

The main reason that i wanted to let my computer announce the caller, is when i'm watching TV i still know who's calling me.

And now your working on a solution for that! Wow!

My next step, is to integrate TV in XBMC so i always can see who's calling me... Because i don't own a Samsung TV.


- johoja - 2011-02-28

michaeldecharon Wrote:Your welcome!

Good work! Working on an version for TV's!

The main reason that i wanted to let my computer announce the caller, is when i'm watching TV i still know who's calling me.

And now your working on a solution for that! Wow!

My next step, is to integrate TV in XBMC so i always can see who's calling me... Because i don't own a Samsung TV.

XBMC is already supported in NP.


- LastMile - 2011-03-02

johoja Wrote:XBMC is already supported in NP.

I think Michael meant having official Live TV support in XBMC (via USB tuner, etc) so he could use XBMC to watch TV and have NotifyPro working for all viewing applications.

Often when I'm watching live TV and hear my iPhone beep from an incoming message, I impatiently wait for a message preview to pop up on screen before I realise I'm not using XBMC.


- michaeldecharon - 2011-03-03

LastMile Wrote:I think Michael meant having official Live TV support in XBMC (via USB tuner, etc) so he could use XBMC to watch TV and have NotifyPro working for all viewing applications.

Often when I'm watching live TV and hear my iPhone beep from an incoming message, I impatiently wait for a message preview to pop up on screen before I realise I'm not using XBMC.

Thanks LastMile,

That's what i mean!

And i've got another idea...

When i receive a push notification from my TV guide app on my iPhone, i want to extract the tv-channel so that i can use this info to automatically switch my TV to the right channel.

Pushmessage looks like:

HTTP.Michael::Ring:Tongueush::TVGiDS.tv::'My name is Earl' begint over 4 min op RTL 5. (18:05 uur). Aflevering: Faked my own death Pechvogel Earl besluit na een reeks wonderlijke gebeurtenissen om

The tv-channel=RTL 5

I want to use this script:

if parts[4] == "*RTL 5*":

Only the wildcards (*) won't work :confused2:

Can someone help me out, i don't know how to use wildcards in a Pythonscript.