Posts: 185
Joined: Jan 2013
Reputation:
0
Nice one, zag i look forward to using this very much. subscribed.
Yeah, Me, Myself, and I, The Three Musketeers
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
I think the first post in this thread gives a pretty good idea of how to do a popup.
The other thing you might need to know is that your addon should be a service so it runs all the time waiting for the camera to be plugged in.
Of course there may be other addons that do all this already, you can browse the official ones at addons.xbmc.org
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 4,061
Joined: Oct 2007
Reputation:
90
zag
Team-Kodi Member
Posts: 4,061
Updated the 1st post with a simpler version without underscores.
Has anyone done anything cool with this example yet? Maybe some modifications to show programming techniques or XBMC GUI features?
I'd love to see what people can come up with.
Posts: 10
Joined: Dec 2014
Reputation:
0
Thanks Phil, does that document detail all the "rules" I need to follow for each element of an addon?
Posts: 10
Joined: Dec 2014
Reputation:
0
I have update the change.log and update the .xml to indicate that I am adapting the file originally created by zag, My addon version is now 1.0.1 I also tried to change the icon to my own, I deleted the original icon and replaced it with my own but the old icon still appears (!?) Any idea what maybe be happening here?
I am assuming it would be wise to have a plan of ultimately what we would like our addon to do, I would like a simple looking addon that opens and presents the user with 3 options TV Episodes, Movies, and Live Streaming.
For a simple addon would the next step be to create those 3 options or do we need to add/load other functions first?
Posts: 4,061
Joined: Oct 2007
Reputation:
90
zag
Team-Kodi Member
Posts: 4,061
XBMC is probably storing the image in its image cache so it wont update immediatly.
You probably need to uninstall and re-install the add-on again
Posts: 14
Joined: Dec 2014
Reputation:
0
Hi,
I have done a menu with 3 items.
example:
<a href="http://www.fotos-hochladen.net/view/unterordnerkods5ql8ebk1g.jpg" target="_blank"><img src="http://img5.fotos-hochladen.net/thumbnail/unterordnerkods5ql8ebk1g_thumb.jpg" border="0"></a>
<a href="http://www.fotos-hochladen.net/view/ueberordnerkodf8hitvznu9.jpg" target="_blank"><img src="http://img5.fotos-hochladen.net/thumbnail/ueberordnerkodf8hitvznu9_thumb.jpg" border="0"></a>
Now i want that on item starts for example the movie in this link:
http//files2.trailerseite.de/trailer/2014-2/der-hobbit-3-trailer-2-hd.flv
(or any other file)
how can i link this video with my menue item respectively open it by pushing the menu item
thanks
removed151214
Unregistered
removed151214
Unregistered
Posts: N/A
Great idea to do a 'Hello world' example for Kodi - we've all started off with such things at some stage. It's a great way to being exploration of what's available. I thought for some time about the best way to express my admiration for creating such a thing, and decided it was probably to try to extend it - so, the next example we generally come across is accepting some input, and displaying this instead of the default Hello World text. So, an example which gets the user to input their name and display it:
PHP Code:
import xbmc
import xbmcaddon
import xbmcgui
addon = xbmcaddon.Addon()
addonname = addon.getAddonInfo('name')
keyboard = xbmc.Keyboard("", "Type your name", False)
keyboard.doModal()
if keyboard.isConfirmed() and keyboard.getText() != "":
line1 = "Hello World!"
line2 = "Nice to meet you %s" %(keyboard.getText())
line3 = "Welcome to Kodi!"
xbmcgui.Dialog().ok(addonname, line1, line2, line3)
(Which also introduces the XBMC module, checking variables, and Python string formatting)
Edit: Edited to remove my own coding quirks from the example
Posts: 14
Joined: Dec 2014
Reputation:
0
No thats a link to a picture (screenshot)