install add-on / structure
#1
I have the addon structure written and I had supposed if I had just dropped it into the addon directory it would have shown up as an option within services (it is a service). But no such luck. What step am I missing in having Kodi detect the add-on I wrote?
Reply
#2
can you post a download link to your addon so we can have a look?
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
#3
you need to restart Kodi for starters after you put it there
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
#4
It seems to have appeared
Reply
#5
(2015-08-21, 10:33)variab1e Wrote: I did restart, I looked in the running addons and only settings is there. I may be missing something?

It is just a bare service, I was just trying to get to a point where I could develop.

But here is the bare bones I have

so looks like it's installed correctly, but just doesn't auto-run on startup?

will have a closer look.
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
#6
The add on is now there.

But yes, the service does not seem to run. I am tailing the log file.
Reply
#7
start by removing the first line in service.py
Code:
//kodi
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
#8
Ah yes wrong comment style...


Code:
#kodi

#tail -f /home/osmc/.kodi/temp/kodi.log

import time
import xbmc

if __name__ == '__main__':
    monitor = xbmc.Monitor()

    while True:
        # Sleep/wait for abort for 10 seconds
        if monitor.waitForAbort(10):
            # Abort was requested while waiting. We should exit
            break
        xbmc.log("hello addon! %s" % time.time(), level=xbmc.LOGDEBUG)

But still nothing in the logs...
Reply
#9
it's working fine at my end after i removed the comment.

have you enabled debuglogging in kodi?
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
#10
I've gotten past that, now with debugging enable.

Is there a way to restart the service without rebooting the entire system?

I tried:
kodi-send --action="XBMC.RunPlugin('plugin://service.control_red')"

The id in settings is in fact "service.control_red" it even says so in the logs when it boots initially.

But I get
ERROR: Unable to find plugin service.control_red'

When I had tried:
kodi-send --action="XBMC.RunAddon('service.control_red')"

I would get:
ERROR: RunAddon: unknown add-on id ''service.control_red'', or unexpected add-on type (not a script or plugin).

Is it possible, or should I just keep rebooting to test?
Reply
#11
It would appear that:

kodi-send --action="XBMC.RunScript(service.control_red)"

Did it. Yay.

Maybe that will help someone else.
Reply

Logout Mark Read Team Forum Stats Members Help
install add-on / structure0