Jump to content


Photo

Enigma2 plugin Development


  • Please log in to reply
12 replies to this topic

#1 phanikanth

  • Member
  • 4 posts

0
Neutral

Posted 11 January 2017 - 15:00

Hi 

 

I am learning to develop a Enigma2plugin   , Can some please give me some start up links for the same .

Also which settop box would be best to choose for , I see Openpli supports multiple settop boxes .

Do we have a simulator to test the Engima2 plugin  or i need to test it directly on the settop box..

Any information related to Plugin development would be of great help to me.. { Basically looking for the posts that would be helpful to a newbie like me }

Thanks for your time..

 

Regards

Phani

 

 


Edited by phanikanth, 11 January 2017 - 15:02.


Re: Enigma2 plugin Development #2 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 11 January 2017 - 15:24

I tnink most people develop directly on the box, which is the most logical path for an interpreted language.

 

I've read somewhere (but can't immediately find it) that you can add a bit of init code that allows you to update the code and test it immediately, instead of having to restart Enigma2 every time (because Python code is cached).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Enigma2 plugin Development #3 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 11 January 2017 - 15:44

For plugins development I recommend OpenpliPC.

It save a lot of time.



Re: Enigma2 plugin Development #4 phanikanth

  • Member
  • 4 posts

0
Neutral

Posted 11 January 2017 - 17:07

Thanks WanWizard and samsamsam , 

So if i understand correctly, using Openplipc , i can simulate a settopbox on my PC .. and test my enigma2 plugins over it..



Re: Enigma2 plugin Development #5 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 11 January 2017 - 17:09

Correct. The only thing you won't have are tuners, but you can easily use the fallback tuner configuration to overcome that.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Enigma2 plugin Development #6 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 11 January 2017 - 17:18

I would say you can simulate with it, but I'm not sure whether OpenPlipc is really uptodate. I myself write the code on my pc and then transfer it to the box to do the testing. Small error are fixed on the box via vi.
Regarding documentation you can find via google some things, but no really good documentation which contains everything. In most cases you have to look into other plugins how they have solved the problems. Or ask in forums.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Enigma2 plugin Development #7 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 11 January 2017 - 18:01

Combine the two.

 

Mount the filesystem of the box on your PC, and use your PC toolset to develop directly on the box.

 

And if you have a local disk, you can even consider cloning the appropriate repository on the box, then use a symlink to have Enigma use it. That way you don't have to copy files back and forth, and you have all benefits of git to your disposal.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Enigma2 plugin Development #8 phanikanth

  • Member
  • 4 posts

0
Neutral

Posted 11 January 2017 - 18:10

Thank you all for the valuable info .. 

 

which box do you suggest ?   what is the box most of you work with and has good amount of documentation :) .. What are the parameters to be considered while selecting the box..



Re: Enigma2 plugin Development #9 WanWizard

  • PLi® Core member
  • 70,563 posts

+1,816
Excellent

Posted 11 January 2017 - 18:37

The box is a piece of hardware. Like a PC or a laptop. They all do the same, and (from a plugin development point of view) all have more or less the same specifications. Documentation for all is the same: virtually none.

 

For boxes we support, you can have a look at the specs here: https://wiki.openpli.org/comparison. And besides specs, price is probably of consideration as well.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Enigma2 plugin Development #10 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 11 January 2017 - 19:52

This is one very old, but I think still valid "documentation" for building plugins. It's very basic.

https://dream.reichh...ugin-Erstellung

 

What plugin do you want to build? It's a little bit strange for me that you want to create plugins but you don't have a box yet. So the plugin you want to build is maybe already available.


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Enigma2 plugin Development #11 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 11 January 2017 - 20:28

Good routine to separate pure python code from enigma code,mean put all python functions and procedures in  file call it as example default.py and enigma code in another file and call it as example plugin.py file,and from plugin.py import all what needed from python from default.py.

by this way you can test python file(default.py) in pc python idle

all kodi addons are example on this way and all written by python and can be created,debuged on pc and working with enigma.

the most valuable source of learning is open source plugins,just test simple plugin on screen and see the code how perform different actions

while waiting for your box ,start learning basic python on pc.


Edited by mfaraj57, 11 January 2017 - 20:30.


Re: Enigma2 plugin Development #12 HHATZ

  • Member
  • 14 posts

0
Neutral

Posted 28 January 2017 - 21:20

Phani,

 

I do not know whether you found your documentation for plugin development.

 

I hit on the following tutorial in German, which is written for advanced developers. I am not in that categorie, so I can't judge whether it is any good.

 

PDF]Das enigma2-plugin Tutorial - espend.de

www.espend.de/sites/.../dreambox_enigma2_plugin-tutorial.pdf

 

 
Das enigma2-plugin. Tutorial von emanuel@i-have-a-dreambox.com deutsche Ausgabe 1 * Stand: 14.02.2010. Vorab: Das Plugin Tutorial ist für fortgeschrittene ...

 

 

Regards,

 

HHATZ



Re: Enigma2 plugin Development #13 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 29 January 2017 - 09:15

@HHATZ

The tutorial you mentioned is very basic,easy and for beginner and not written for advanced developer

good tutorial to start with


Edited by mfaraj57, 29 January 2017 - 09:16.



6 user(s) are reading this topic

0 members, 6 guests, 0 anonymous users