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)



- johoja - 2011-02-28 04:18

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 19:09

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 19:27

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 01:52

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 19:45

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::Push::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.


- johoja - 2011-03-03 19:57

michaeldecharon Wrote: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::Push::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.

Wild cards won't work in that context, but I think you can do this:

if parts[4].find("RTL 5") != -1:
blahblah


How are you switching the channels on your tv...?

It would be cool if more tv's in the future had some sort of API ...would be even cooler if it was a common API...

I haven't had time to continue on the samsung thing..i know what the bug is need time to test it. Anyone here have a samsung tv?


- michaeldecharon - 2011-03-03 20:59

johoja Wrote:Wild cards won't work in that context, but I think you can do this:

if parts[4].find("RTL 5") != -1:
blahblah


How are you switching the channels on your tv...?

It would be cool if more tv's in the future had some sort of API ...would be even cooler if it was a common API...

I haven't had time to continue on the samsung thing..i know what the bug is need time to test it. Anyone here have a samsung tv?

Thanks johoja!

Your commandline works perfect!

To change the channels on my tv with Notify Pro i use a work around:

Eventghost extracts the right text (tv-channel), thanks to you Laugh, every tv-channel gets his own commandline based on the right text (tv-channel) to activate a event in Homeseer Pro. The event will send a IR signal equal to the text (tv-channel) extracted from the push notification.

For ir receiving and sending i'm using the IR-Trans (usb hardware device)


- johoja - 2011-03-03 21:07

michaeldecharon Wrote:Thanks johoja!

Your commandline works perfect!

To change the channels on my tv with Notify Pro i use a work around:

Eventghost extracts the right text (tv-channel), thanks to you Laugh, every tv-channel gets his own commandline based on the right text (tv-channel) to activate a event in Homeseer Pro. The event will send a IR signal equal to the text (tv-channel) extracted from the push notification.

For ir receiving and sending i'm using the IR-Trans (usb hardware device)

Ah, yeah I was wondering what home automation gear you had. I've been looking into it. To expensive for my budget Sad hehe.

Glad you got it to work. Pythons not to bad.


- michaeldecharon - 2011-03-03 21:19

johoja Wrote:Ah, yeah I was wondering what home automation gear you had. I've been looking into it. To expensive for my budget Sad hehe.

Glad you got it to work. Pythons not to bad.

As a matter of fact, the only thing that's expensive is Homeseer Pro (but google is your friend). The hardware is doable, you can purchase different modules and the outcome is really stunning!

Unfortunately your solution reacts on every message from my phone Blush

Do you have any other suggestions?


- johoja - 2011-03-03 21:22

michaeldecharon Wrote:As a matter of fact, the only thing that's expensive is Homeseer Pro (but google is your friend). The hardware is doable, you can purchase different modules and the outcome is really stunning!

Unfortunately your solution reacts on every message from my phone Blush

Do you have any other suggestions?

You mean its changing channels every time?

show me your script (pastebin), and maybe a screenshot of what eventghost is doing.