Kodi Community Forum
Kodi addon generator - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Kodi addon generator (/showthread.php?tid=305664)

Pages: 1 2 3


Kodi addon generator - Razze - 2017-02-03

The brand new kodi addon generator is here.
It will get you up and coding your kodi addons in a matter of minutes.

Image

What exactly does it do?
It generates a structure with directories and files, which you will need and you can basically start to add your code in between.
We're also trying to get you to use best practices, to make your and our life better Smile

At the moment of this post, it has generators for the most common addon types, but you might find the addon type you want missing. Please let us know or contribute it yourself Wink

All you need is nodejs --> https://nodejs.org/
And git --> https://git-scm.com/

So when you have installed that, just open up a commandline and install yeoman via
PHP Code:
npm install -g yo 

Then install the kodi generator via
PHP Code:
npm install -g generator-kodi-addon 

You can find infos about the latest package here:
https://www.npmjs.com/package/generator-kodi-addon

And contribute here:
https://github.com/xbmc/generator-kodi-addon

If you have questions, please let us know


RE: Kodi addon generator - Dangelus - 2017-02-03

Awesome Smile


RE: Kodi addon generator - braz - 2017-02-03

When I read the first few lines I started thinking this was an early April fool's joke. Glad to see it's not! Wink


RE: Kodi addon generator - ironic_monkey - 2017-02-03

'all you need is node.js'. lol Wink

EDIT: since this can be read as an offense: all i meant to point out is that node.js isn't exactly the world's lightest dependency, so the formulation made me lol a bit, was all.


RE: Kodi addon generator - Razze - 2017-02-10

new generator version pushed to npm, run `npm update -g generator-kodi-addon` and you should be good to go

(2017-02-03, 11:09)ironic_monkey Wrote: 'all you need is node.js'. lol Wink

EDIT: since this can be read as an offense: all i meant to point out is that node.js isn't exactly the world's lightest dependency, so the formulation made me lol a bit, was all.

Big Grin


RE: Kodi addon generator - Hedda - 2017-02-17

(2017-02-03, 01:07)Razze Wrote: All you need is nodejs --> https://nodejs.org/
Oh, that could maybe be a good way for a Kodi addon to enable "Actions On Google"?

https://developers.google.com/actions/

Google at least have a client library for Actions on Google that uses Node.js so perhaps their library could make it easier to create actions for the Google Assistant for Kodi?

https://github.com/actions-on-google/actions-on-google-nodejs

...or does Team Kodi already a unified plan for how to implement voice control?

Might be a good idea for Kodi to have a unified API or library for voice control addons like Google Assistant, Amazon Alexa, Apple Siri, Microsoft Cortana, and Samsung Viv?


RE: Kodi addon generator - Razze - 2017-02-19

(2017-02-17, 16:24)Hedda Wrote:
(2017-02-03, 01:07)Razze Wrote: All you need is nodejs --> https://nodejs.org/
Oh, that could maybe be a good way for a Kodi addon to enable "Actions On Google"?

https://developers.google.com/actions/

Google at least have a client library for Actions on Google that uses Node.js so perhaps their library could make it easier to create actions for the Google Assistant for Kodi?

https://github.com/actions-on-google/actions-on-google-nodejs

...or does Team Kodi already a unified plan for how to implement voice control?

Might be a good idea for Kodi to have a unified API or library for voice control addons like Google Assistant, Amazon Alexa, Apple Siri, Microsoft Cortana, and Samsung Viv?

That's completely offtopic and missing the point of this generator and topic Smile


RE: Kodi addon generator - Don_black00 - 2017-02-21

@Razze, Does this generator only create the basic setup files and code. does it help with regex a site that you want use for your addon. I guess I would think generator as a front end and then there is so much built in the back-end that anyone can create a plugin with out any coding knowledge, but that does not seem to be the case.


RE: Kodi addon generator - Martijn - 2017-02-21

Only the basic structure. The rest is up to you


RE: Kodi addon generator - robweber - 2017-04-06

(2017-02-21, 06:06)Don_black00 Wrote: I would think generator as a front end and then there is so much built in the back-end that anyone can create a plugin with out any coding knowledge, but that does not seem to be the case.

Seriously? Guess the team should get to work on some sort of Python AI that can take all your ideas and just write the code for you huh?


RE: Kodi addon generator - pinoytracker - 2017-04-12

got an error

'git ' is not reconized as an internal or external command


RE: Kodi addon generator - Martijn - 2017-04-12

(2017-04-12, 16:41)pinoytracker Wrote: got an error

'git ' is not reconized as an internal or external command
Then you don't have git installed


RE: Kodi addon generator - Razze - 2017-04-12

Correct, you will have to have git installed https://git-scm.com/
I'll meniton it in the first post, thanks!


RE: Kodi addon generator - pinoytracker - 2017-04-13

(2017-04-12, 22:41)Razze Wrote: Correct, you will have to have git installed https://git-scm.com/
I'll meniton it in the first post, thanks!

Oh my bad overlook that process =)
Thanks


RE: Kodi addon generator - skoosh2017 - 2017-06-17

_-----_ ╭──────────────────────────╮
| | │ Welcome to the awesome │
|--(o)--| │ generator-kodi │
`---------´ │ generator! │
( _´U`_ ) ╰──────────────────────────╯
/___A___\ /
| ~ |
__'.___.'__
´ ` |° ´ Y `




? Choose the type of addon you want to create. Plugin
? Your addon will provide the following media types.
◯ audio
◯ image
◯ executable
◯ game
❯◯ video
>> You need check at least one.

Help please...... how do you check selections?