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)



- davilla - 2011-02-06

stoli Wrote:once the web server is enabled in aTV2, it should work just fine.

apt-get update; apt-get install org.xbmc.xbmc-atv2


- jackmeehan - 2011-02-06

stoli Wrote:once the web server is enabled in aTV2, it should work just fine.
Would there be a way of using a python script to control how events are handled?

You'll have to excuse my ignorance if that's a silly question


- michaeldecharon - 2011-02-07

michaeldecharon Wrote:Thanks for your example!

I've bee trying to change one of your scripts to handle Homeseer.

Can you tell me how to execute the following line in Python:

D:\HTPC applicaties\HomeSeer HSPRO\HSC\hsc.exe -x Q8 off

Anyone?


- johoja - 2011-02-07

michaeldecharon Wrote:Anyone?

Not sure but I think os.system("D:\\HTPC applicaties\\HomeSeer HSPRO\\HSC\\hsc.exe -x Q8 off")


- johoja - 2011-02-07

jackmeehan Wrote:Would there be a way of using a python script to control how events are handled?

You'll have to excuse my ignorance if that's a silly question

Not sure what you mean by that?

What are you trying to do ?


- johoja - 2011-02-07

davilla Wrote:apt-get update; apt-get install org.xbmc.xbmc-atv2

cool thanks davilla i guess the webserver is up and running in atv2.


- jackmeehan - 2011-02-08

johoja Wrote:Not sure what you mean by that?

What are you trying to do ?
It would be nice to be able to use a script to control events to an atv2, like Pause video on incoming call, or just lower volume if music is playing etc.

I realise that this can be done via eventghost but in the case of the atv2 you would need a secondary PC running eventghost.


- johoja - 2011-02-08

jackmeehan Wrote:It would be nice to be able to use a script to control events to an atv2, like Pause video on incoming call, or just lower volume if music is playing etc.

I realise that this can be done via eventghost but in the case of the atv2 you would need a secondary PC running eventghost.

Pause video on incoming call is included in NP, from the phone. No need for a EG for that one.

To do more custom stuff though EG would be needed...


- sjobbels - 2011-02-10

Does anyone now how I can change the position of the notification popup in xbmc?
Now it's coming from right under. But the pause osd is blocking the caller notification...


- johoja - 2011-02-10

sjobbels Wrote:Does anyone now how I can change the position of the notification popup in xbmc?
Now it's coming from right under. But the pause osd is blocking the caller notification...

Depends on the skin. If your into skin modifying you can play with DialogKaiToast.xml and try to get it to your liking.


- sjobbels - 2011-02-10

I'm using Customizable Confluence. Playing is too dangerous Wink


- LastMile - 2011-02-11

sjobbels Wrote:Does anyone now how I can change the position of the notification popup in xbmc?

Did this a couple of months ago.

Edited DialogKaiToast.xml so that notifications pop up on the left instead of the right:

Code:
    <coordinates>
        <system>1</system>
        <posx>60</posx>
        <posy>650</posy>
    </coordinates>

Used SFTP to login as root. File location /usr/share/xbmc/addons/skin.confluence/720p on Dharma.


Let your computer pronounce the name of a caller - michaeldecharon - 2011-02-12

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?


- sjobbels - 2011-02-12

LastMile Wrote:Did this a couple of months ago.

Edited DialogKaiToast.xml so that notifications pop up on the left instead of the right:

Code:
    <coordinates>
        <system>1</system>
        <posx>60</posx>
        <posy>650</posy>
    </coordinates>

Used SFTP to login as root. File location /usr/share/xbmc/addons/skin.confluence/720p on Dharma.


Thanks LastMile! Now I've managed to play with the setting @johoja Wink

This is my code for the right upper corner:

Code:
<coordinates>
        <system>1</system>
        <posx>880</posx>
        <posy>1</posy>
    </coordinates>



- johoja - 2011-02-12

sjobbels Wrote:Thanks LastMile! Now I've managed to play with the setting @johoja Wink

This is my code for the right upper corner:

Code:
<coordinates>
        <system>1</system>
        <posx>880</posx>
        <posy>1</posy>
    </coordinates>





Glad you got it working Smile