• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 15
Your 1st Add-On: Hello World!
#91
(2015-02-03, 16:40)ronie Wrote:
(2015-02-03, 11:28)takoi Wrote:
(2015-02-03, 11:21)Razze Wrote: but thats what ruuk mentioned?
and it would probably be very confusing for most users. if you got an problem with my addon, it's really handy to have the log of kodi + addon log without the noise form all the other addons installed.
I think ruuk meant the opposite. So you log notice instead of debug if the addon setting is enabled. If disabled you use debug.

let me try to clear things up a bit.

1) we encourage all addon devs to only use the LOGDEBUG level.
we prefer addons not to log anything to the logfile, unless debuglogging in kodi is enabled.
why? because we don't rotate logfiles and on 24/7 systems the logfile will get out of hand quickly (and possibly will fill up all diskspace) if every addon would constantly log to it.

2) adding an additional setting in the addon to enable logging is optional, but very much recommended.
why? because the kodi devs get very annoyed by all the addon logspam if they have to troubleshoot some core issue using the Debug Log file.

so the less your addon logs, the better it is.

if a user has an issue with your addon, just explain him to turn on debug logging in kodi and to enable logging in your addon.

does anyone have any experience with external library that are using the correct levels and how to force every message to logdebug instead?
Reply
#92
Regarding this tutorial here http://kodi.wiki/view/HOW-TO:HelloWorld_addon
I cannot see the helloworld add-od to download.
Quote:For this example we can install the official "Hello World" add-on that is in the repository. It is under: System >> Add-Ons >> Get Add-Ons >> All Add-ons >> Program Add-Ons

Can someone please advise?
Reply
#93
(2014-12-17, 10:49)Karnagious Wrote: If you are testing your development on the Pi, then I recommend using Putty to ssh in to the Pi and track the xbmc.log using tail.
PHP Code:
tail -/home/pi/.xbmc/temp/xbmc.log 
This will track the changes to the log in realtime. Much easier than constantly opening the log in a text editor.

Also, if you need to reboot Kodi because it is stuck, then type this into putty:
PHP Code:
sudo initctl stop xbmc 
then
PHP Code:
sudo initctl start xbmc 

Been using the tail tip for some time now. Recently been doing some work with Windows. As a big user of Notepad ++ I knew that the default is to notify the user when an pen file changes. Better still if you add the Document Monitor plugin it will refresh (tail) the xbmc (kodi) log file automatically every 3 seconds. Nice little time saver. Unbelievably there are at least 13 tail equivalents for Windows, see http://stackify.com/11-ways-to-tail-a-lo...dows-unix/ for details but I'll be sticking with Notepad++.

Details on how to activate the Document Monitor are contained in the link above if you need them.

I regularly have 50 or so 'text' files open in Notepad++ as I am too lazy to close them so I might have to become more disciplined in closing unused text files with Document Monitor running. Smile
Easy Home Automation to Control your RF device within Kodi XBMC
Want to watch TV everywhere you go? Pop by the Want To Watch TV site.
Image
Reply
#94
(2015-02-15, 08:41)HattrickNZ Wrote: Regarding this tutorial here http://kodi.wiki/view/HOW-TO:HelloWorld_addon
I cannot see the helloworld add-od to download.
Quote:For this example we can install the official "Hello World" add-on that is in the repository. It is under: System >> Add-Ons >> Get Add-Ons >> All Add-ons >> Program Add-Ons

Can someone please advise?

Did you find Hello World? It should just be there. If not please provide full details of your system (hardware and software) and we can try to help you find it.
Easy Home Automation to Control your RF device within Kodi XBMC
Want to watch TV everywhere you go? Pop by the Want To Watch TV site.
Image
Reply
#95
(2015-02-23, 19:47)pieman Wrote:
(2015-02-15, 08:41)HattrickNZ Wrote: Regarding this tutorial here http://kodi.wiki/view/HOW-TO:HelloWorld_addon
I cannot see the helloworld add-od to download.
Quote:For this example we can install the official "Hello World" add-on that is in the repository. It is under: System >> Add-Ons >> Get Add-Ons >> All Add-ons >> Program Add-Ons

Can someone please advise?

Did you find Hello World? It should just be there. If not please provide full details of your system (hardware and software) and we can try to help you find it.

I too haven't been able to find the add-on.

My system:
CuBox i4-Pro (imx6.arm)
OpenELEC 5.0.2
Helix 14.1
CuBox-i4Pro & RPi3
OpenELEC 8.0.4
Reply
#96
(2015-02-23, 19:47)pieman Wrote:
(2015-02-15, 08:41)HattrickNZ Wrote: Regarding this tutorial here http://kodi.wiki/view/HOW-TO:HelloWorld_addon
I cannot see the helloworld add-od to download.
Quote:For this example we can install the official "Hello World" add-on that is in the repository. It is under: System >> Add-Ons >> Get Add-Ons >> All Add-ons >> Program Add-Ons

Can someone please advise?

Did you find Hello World? It should just be there. If not please provide full details of your system (hardware and software) and we can try to help you find it.

Just checked Openelec 4.03 and it doesn't appear to be there.
As per the OP it is available at https://github.com/zag2me/plugin.program.hello.world , just click Download Zip towards bottom left of the page and then install from the zip. Shout if you need to details on installing addons from zip files. With the locked down Openelec AFAIK you will not be able to use wget or curl to download the zip to the Pi. Use a Windows machine and put it in the boot partition of your SD card.
If you don't have access to a Windows machine I guess the OP would be OK if I put the zip file on one of my servers and then you could add our server to your file manager on the Pi.
Easy Home Automation to Control your RF device within Kodi XBMC
Want to watch TV everywhere you go? Pop by the Want To Watch TV site.
Image
Reply
#97
(2015-02-23, 20:21)pieman Wrote: Use a Windows machine and put it in the boot partition of your SD card.

Erhhh, ok. So I can't just install the .zip normally (USB + 'Install from zip')?
If not, I'm gonna need some instructions.

Unfortunately I don't have a Windows machine (OSX only).
CuBox-i4Pro & RPi3
OpenELEC 8.0.4
Reply
#98
(2015-02-23, 20:53)Zvezke Wrote:
(2015-02-23, 20:21)pieman Wrote: Use a Windows machine and put it in the boot partition of your SD card.

Erhhh, ok. So I can't just install the .zip normally (USB + 'Install from zip')?
If not, I'm gonna need some instructions.

Unfortunately I don't have a Windows machine (OSX only).

Sorry, USB is fine and I'm not an OSX user but I'm sure it will be OK.
Easy Home Automation to Control your RF device within Kodi XBMC
Want to watch TV everywhere you go? Pop by the Want To Watch TV site.
Image
Reply
#99
Yes you can install it manually.

Just click the download zip from github link in the first post.

And "install as zip" inside Kodi.

I'm really trying to get it accepted on the official repository but apparently other "tutorial add-ons" have been rejected in the past. I'll send it through again now just in case.
Reply
and it's not going to happen.

only if can get it installed on your own you have a shot on understanding how the addon system works. by just downloading it from repo you learn nothing.
If you can get it done, then you have taken the first steps and actually getting something to work. Then you also have to learn python
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
(2015-02-23, 22:51)zag Wrote: Yes you can install it manually.

Just click the download zip from github link in the first post.

And "install as zip" inside Kodi.

I'm really trying to get it accepted on the official repository but apparently other "tutorial add-ons" have been rejected in the past. I'll send it through again now just in case.

But you can't do it directly in Openelec, or can you?
Easy Home Automation to Control your RF device within Kodi XBMC
Want to watch TV everywhere you go? Pop by the Want To Watch TV site.
Image
Reply
(2015-02-23, 23:05)Martijn Wrote: and it's not going to happen.

only if can get it installed on your own you have a shot on understanding how the addon system works. by just downloading it from repo you learn nothing.
If you can get it done, then you have taken the first steps and actually getting something to work. Then you also have to learn python

Care to expand on your thoughts?
Easy Home Automation to Control your RF device within Kodi XBMC
Want to watch TV everywhere you go? Pop by the Want To Watch TV site.
Image
Reply
addon and plugins are quite complex. it's not a walk in the park.
if you can't get the most basic step done like installing it on your system, imo you are not ready for the next steps like python coding, modules, distribution for testing and so on.

I partly wrote that "hello world" so i know.
The first time i had to deal with xbmc addons was 4 years ago and it took me 5 minutes to figure out how to install them and how the the structure worked and just by looking at other addons. If people thinkl it's to hard, feel free to venture and get the wiki in order and expand it in a way that is more helpfull than it is now. You will not fix that by putting a simple zip file in repo which has absolutely zero added value to anything addon development.

Looking at the page hello world page and what it has become is less helpful than it was.

that's all i will say about it.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
(2015-02-23, 23:17)Martijn Wrote: addon and plugins are quite complex. it's not a walk in the park.
if you can't get the most basic step done like installing it on your system, imo you are not ready for the next steps like python coding, modules, distribution for testing and so on.

that's all i will say about it. I partly wrote that "hello world" so i know.
The first time i had to deal with xbmc addons was 4 years ago and it took me 5 minutes to figure out how to install them and how the the structure worked and just by looking at other addons.

Maybe you are a natural, most of us need a little help along the way.
I'm sure most people know how to install addons but just because they don't it doesn't mean they can't become an excellent coder. I thought that was the purpose of the thread.
Easy Home Automation to Control your RF device within Kodi XBMC
Want to watch TV everywhere you go? Pop by the Want To Watch TV site.
Image
Reply
It's not that difficult: Add-on_manager#How_to_install_from_a_ZIP_file (wiki)
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 15

Logout Mark Read Team Forum Stats Members Help
Your 1st Add-On: Hello World!5