•   
  • 1
  • 10
  • 11
  • 12
  • 13
  • 14(current)
Your 1st Add-On: Hello World!
well probably not doable via an addon, you would have to read up on it in the documentations
Reply
I just modified the app id and dialog message for testing the addon. But kodi said Fail to install, what's wrong?

Here the addon zip file:

http://locnp.ddns.net:82/script.hello.camel-1.0.2.zip

Help me resolve the problem please.
Reply
Hi Guys sorry If I am Hijacking here but I want to know what is the way to play browser.chromium in LibreELEC.

I did it like this way but when it closed I saw the programs addon window and I don't want to see it.

 <item id="80">
                    <description>Browser</description>
                    <icon>backgrounds/brows.jpg</icon>
                    <label2>icons/chrome.png</label2>
                    <label>Browser</label>
            <onclick>ActivateWindow(10040,&quot;plugin://browser.chromium/&quot;,return)</onclick>
                </item>

Any Idea please.
Reply
Please keep on topic, that has nothing to do with the Hello World Add-on
Image Image
Reply
Hey. I need to use addon to open terminal in a window and write a command. How to do it. Here is what I need:
[email protected]: ~ $ cansniffer can0
In the open window there will be different codes
Quote:(1512998188.915501) can0 156#F5C200000721
(1512998188.916749) can0 18E#080045
(1512998188.920957) can0 091#8023C8020000001A
(1512998188.923367) can0 13C#00C400D500000402
(1512998188.923607) can0 158#0000058700000006
(1512998188.923853) can0 17C#000006300000000B
(1512998188.924062) can0 188#000000010033 




How to do it
Reply
(2019-09-10, 13:04)maltsev.v.v Wrote: How to do it
There are no terminal windows on a Raspberry devices, unless you use Raspbian OS.
In Kodi alone, you will need to use SSH.
Got a Kodi problem? Provide us with a full Debug log (wiki) || Usefull pages: First time user (wiki) || Troubleshooting (wiki) || Free content (wiki) || Forum rules (wiki) || VPN policy (wiki)
Reply
(2019-09-10, 13:10)Klojum Wrote:
(2019-09-10, 13:04)maltsev.v.v Wrote: How to do it
There are no terminal windows on a Raspberry devices, unless you use Raspbian OS.
In Kodi alone, you will need to use SSH. 
I have raspbian, the terminal is in it, but how to open it from under kodi in a window?


how to write for python
import xbmcaddon
import xbmcgui
import os  

print = os.system ("cansniffer can0")
Reply
(2014-11-27, 14:57)zag Wrote: ImageCode
PHP Code:
import xbmcaddon
import xbmcgui

addon 
xbmcaddon.Addon()
addonname addon.getAddonInfo('name')

line1 "Hello World!"
line2 "We can write anything we want here"
line3 "Using Python"

xbmcgui.Dialog().ok(addonnameline1line2line3
  
@ronie you mention in the python cleanup PR https://github.com/xbmc/xbmc/pull/17456 that line1, line2 will be depreciated.

Could you give an example of what it should be going forward? Also will the new method be backward compatible?
Image Image
Reply
a bit of background info (reason for this change) can be found here: https://github.com/xbmc/xbmc/pull/3573

line1 = "Hello World! We can write anything we want here Using Python"
xbmcgui.Dialog().ok(addonname, line1)

will work with kodi Matrix and all previous versions of kodi back to 2013.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
Thanks, I will update the Add-on tutorial.

Just out of interest, is it possible to add line breaks in the Dialog popup?
Image Image
Reply
(2020-03-13, 17:01)docwra Wrote: Just out of interest, is it possible to add line breaks in the Dialog popup?

technically, there is... but it's discouraged for 2 reasons:
1. the width of the dialog varies from skin to skin, so you don't know how long a line can be before it gets wrapped.
2. same applies to localizations. in english the line might be short, but it could be much longer in other languages.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
Thanks all updated.

I even worked out how to revert a commit for the first time on GitHub, go me!

https://github.com/zag2me/script.hello.world
Image Image
Reply
Hi guys, I'm new and I'm trying to start developing addons.
(2020-03-13, 17:01)docwra Wrote: Thanks, I will update the Add-on tutorial.
...
Is Addon tutorial still outdated?
(2020-03-13, 18:59)ronie Wrote:
(2020-03-13, 17:01)docwra Wrote: Just out of interest, is it possible to add line breaks in the Dialog popup?

technically, there is... but it's discouraged for 2 reasons:
1. the width of the dialog varies from skin to skin, so you don't know how long a line can be before it gets wrapped.
2. same applies to localizations. in english the line might be short, but it could be much longer in other languages.
But really what is the problem?
On Kodi 18.9, if the line length is too long it starts a new line, and if the sum of lines is too height for message box it scrolls the message.
Showing info on different lines can often improve readability.
Reply
'problems' will arise if lines are too long for a certain skin and kodi will wrap just before the end of the line.

assume this is the text you want to display (and it works perfectly in the Estuary skin):
This line will perfectly fit in the estuary skin ![CR]And my second line of text also fits on a single line.[CR]This is the third line of text.

in other skin where the message box is just a little less wide, you'll end up with this being displayed:
Code:
This line will perfectly fit in the estuary skin
!
And my second line of text also fits on a single
line.
This is the third line of text.

similar things will happen with translations that are a little longer than the english text.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2020-12-06, 02:41)ronie Wrote: ...
in other skin where the message box is just a little less wide, you'll end up with this being displayed:
Code:
This line will perfectly fit in the estuary skin
!
And my second line of text also fits on a single
line.
This is the third line of text.
...
Yes, but this behavior is unavoidable i think, with only one line too.
However, many thanks for replying! Smile
Reply
  •   
  • 1
  • 10
  • 11
  • 12
  • 13
  • 14(current)



Logout Mark Read Team Forum Stats Members Help
Your 1st Add-On: Hello World!5
This forum uses Lukasz Tkacz MyBB addons.