Plugin that can send notification popups in Kodi

Discussion and support for individual OSA plugins
Post Reply
Message
Author
dj-eon
Posts: 89
Joined: Wed Jul 13, 2011 4:03 am
Location: UK

Plugin that can send notification popups in Kodi

#1 Post by dj-eon » Wed Feb 15, 2017 12:56 pm

Hi everyone.
For a long time, I've wanted to achieve popup notifications in Kodi sent from OSA.
Well, I've finally wrote a plugin that can do this.

There is more to do, but it is generally working now.

There are 2 attached files, the plugin, and a standalone app to quickly test that your Kodi is correctly setup.

Here's an example OSA script to popup a message once your KODI MEDIA PLAYER object is configured.

mediaplayer.SET PROPERTY.Heading = OSA
mediaplayer.SET PROPERTY.Message = Example message from OSA
mediaplayer.Run Method.On

Vaughn, if this is popular, can it be added as a plugin on the website?
Maybe this should be built into the XBMC plugin?
This is my first attempt writing anything in c# so its likely not as slick as it could be, but I will update it soon.

Please leave feedback. I'm interested to know if this is useful to anyone.

Kind regards,
Ian.
Attachments
kodi notifier test program.zip
(4.75 KiB) Downloaded 130 times
KodiNotifications (0.4.8 - v0.1).osapp
(74.99 KiB) Downloaded 128 times

mattw
Posts: 11
Joined: Wed Aug 31, 2016 8:56 pm
Location: UK

Re: Plugin that can send notification popups in Kodi

#2 Post by mattw » Thu Feb 16, 2017 9:59 pm

As a keen Kodi user, I think this would be great for extending the capability of OSA and integration with other household systems.

Vaughn
Site Admin
Posts: 1432
Joined: Thu May 13, 2010 2:17 pm

Re: Plugin that can send notification popups in Kodi

#3 Post by Vaughn » Fri Jun 30, 2017 9:15 am

Yes. It would be nice to replace/update the XBMC plugin to make sure it is working with KODI and just merge the features. I am a KODI user and would gladly help.


Vaughn

dj-eon
Posts: 89
Joined: Wed Jul 13, 2011 4:03 am
Location: UK

Re: Plugin that can send notification popups in Kodi

#4 Post by dj-eon » Mon Jul 17, 2017 4:04 am

I've attached the source code.

I've never got the xbmc plugin to work myself.
Not sure why.
Attachments
OSA Kodi notifications final 0.3.zip
(187.49 KiB) Downloaded 90 times

dj-eon
Posts: 89
Joined: Wed Jul 13, 2011 4:03 am
Location: UK

Re: Plugin that can send notification popups in Kodi

#5 Post by dj-eon » Sat Jun 08, 2019 5:43 am

I'm glad to see there is some interest in this judging by the 70+ downloads.

I thought I'd also share that you can re position Kodi's Popup messages by modifying this file on your Kodi box:

C:\Program Files (x86)\Kodi\addons\skin.estuary\DialogNotification.xml
alternative location
C:\Program Files (x86)\Kodi\addons\skin.estuary\xml\DialogNotification.xml

This will vary depending on the platform you are running and the skin your using. These are defaults for Windows, and the default skin.

The numbers you need to modify are near to the top of the file.
Change the values "top" and "right" to your preference.
My preference is to 0 on both settings which moves the popup so its tight into the top right of the screen.

The code below shows the defaults top 85 and right 0

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<window>
	<zorder>3</zorder>
	<controls>
		<control type="group">
			<depth>DepthMax</depth>
			<top>85</top>
			<right>0</right>
			<width>640</width>
			<include>OpenClose_Right</include>
If Kodi is running, close and re-open it for the changes to be picked up.

I would suggest you backup this file before changing any settings so you can restore Kodi should things go wrong.

Post Reply