Jump to content


Photo

Enigma2 plugin making

plugins

  • Please log in to reply
7 replies to this topic

#1 microboi37

  • Senior Member
  • 74 posts

0
Neutral

Posted 12 November 2017 - 18:42

Hi all.

 

Is there a way to develop and debug enigma2 plugins with an IDE or something similar? Now I'm developing python plugins within a STB environment with Openpli and I have to restart Enigma2 to build pyo files everytime I want to verify changes. It's a pain in the ass making something bigger this way.



Re: Enigma2 plugin making #2 Trial

  • Senior Member
  • 1,127 posts

+34
Good

Posted 12 November 2017 - 18:52

Hi,

did you try "python <filename.py>" in command line?

 

ciao



Re: Enigma2 plugin making #3 microboi37

  • Senior Member
  • 74 posts

0
Neutral

Posted 12 November 2017 - 19:06

Hi,

did you try "python <filename.py>" in command line?

 

ciao

 

Yes I have but the plugin changes are not affected without an Enigma2 restart even if pyo file in flash is the latest. Executing from command like is OK, executing it from plugin manager is not OK, I have to restart Enigma2.

Is a way for making plugin screens at least?



Re: Enigma2 plugin making #4 WanWizard

  • PLi® Core member
  • 70,523 posts

+1,810
Excellent

Posted 12 November 2017 - 21:41

If I recall there is an option to flush the python cache, I've seen someone post it once, but I can't find it. It would indeed be handy if a develop mode could be added and this would happen automatically when enabled.


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 making #5 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 13 November 2017 - 09:19

The best practice to separate pure python stuff  from enigma stuff and put your python functions in one file and use main plugin to import these functions.This python file can be created and debugged in linux or windows environment.

Regarding screens are the most easy work for enigma with time but i think no good way to debug outside box,but also to make things a lot easier put all screens in xml file and include all images needed in same directory and load this skin xml when starts your plugin.



Re: Enigma2 plugin making #6 technic

  • Senior Member
  • 81 posts

+9
Neutral

Posted 20 November 2017 - 20:54

You can run enigma2 on linux PC or on virtual machine with ubuntu. It will restart much faster than on low-end stb. There is a repo with ubuntu setup, that I use: https://github.com/technic/e2testBox.

There was also a python boilerplate to reload plugin without restarting enigma. In plugin.py you have only code that imports plugin start function from other file and uses builtin 'reload' function to reload that imported file.



Re: Enigma2 plugin making #7 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 22 November 2017 - 12:21

@technic

 

Would you please help us with RPi boards? https://github.com/RaspberryPLi and https://github.com/MastaG/pli-oe-core

 

We need to use mouse/keyboard with RPi boards and PLi's enigma2.

 

Any help would be appreciated :)

 

Regards,

Persian Prince


Edited by Persian Prince, 22 November 2017 - 12:23.

Open Vision sources: https://github.com/OpenVisionE2


Re: Enigma2 plugin making #8 technic

  • Senior Member
  • 81 posts

+9
Neutral

Posted 24 November 2017 - 23:41

I don't have RPi and I don't know how the things I've done before may help you.

Do you have more specific questions / issues ?





Also tagged with one or more of these keywords: plugins

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users