Posts: 10
Joined: Aug 2015
Reputation:
0
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?
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
can you post a download link to your addon so we can have a look?
Posts: 17,859
Joined: Jul 2011
Reputation:
371
you need to restart Kodi for starters after you put it there
Posts: 10
Joined: Aug 2015
Reputation:
0
2015-08-21, 10:33
(This post was last modified: 2015-08-21, 10:35 by variab1e.)
It seems to have appeared
Posts: 10
Joined: Aug 2015
Reputation:
0
The add on is now there.
But yes, the service does not seem to run. I am tailing the log file.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
2015-08-21, 15:20
(This post was last modified: 2015-08-21, 15:21 by ronie.)
it's working fine at my end after i removed the comment.
have you enabled debuglogging in kodi?
Posts: 10
Joined: Aug 2015
Reputation:
0
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?
Posts: 10
Joined: Aug 2015
Reputation:
0
It would appear that:
kodi-send --action="XBMC.RunScript(service.control_red)"
Did it. Yay.
Maybe that will help someone else.