How do you develop?

Alles zu Plugins
Antworten
Nachricht
Autor
totschi
Beginners
Beginners
Beiträge: 1
Registriert: 30 Mär 2025 11:15

How do you develop?

#1

Beitrag von totschi »

Hello everyone,

I'm relatively new to OpenATV, but I'm eager to contribute. Right now, I’m focusing on debugging an existing Python plugin and making some modifications.

Current Workflow:
So far, I have only applied small bug fixes. My process has been:
1. Modifying the .py files of the plugin.
2. Copying them via SCP to /usr/lib/enigma2/python/Plugins/Extensions/
3. Restarting the OpenATV GUI.
4. Running the plugin via the remote control to see the changes take effect.

This works for minor fixes, but it’s slow and inefficient for larger changes or when developing a new plugin.

First Question:
Is there a way to start my plugin’s main.py via SSH without restarting the OpenATV GUI every time?

Looking for a More Efficient Setup:
What’s the best workflow for developing and debugging OpenATV plugins efficiently? Ideally, I’d like to:
- Use an IDE like Eclipse (PyDev), PyCharm, or VS Code for development.
- Start an interactive debugging session where I can step through functions.
- Debug directly on my set-top box via SSH while seeing the plugin’s UI on the screen (or TV).

Second Question:
How can I achieve a full Python debugging experience on OpenATV as described above?

Thanks in advance for your help!
Benutzeravatar
hammu
Senior member
Senior member
Beiträge: 2340
Registriert: 20 Jun 2018 09:37
Wohnort: OWL
Receiver 1: Gigablue UE 4K mit 7.4 und 7.5
Receiver 2: Gigablue UHD TRIO4K mit 7.4 und 7.5
Receiver 3: Gigablue Quadplus mit 7.4
Receiver 4: Gigablue Ultra UE mit 7.4
Receiver 5: div. alte Boxen
Hat gedankt: 334 Mal
Hat Dank erhalten: 1225 Mal

Re: How do you develop?

#2

Beitrag von hammu »

I am afraid there will be no other way for debugging because a running GUI is required for any plugin.
But I'm not a developer.
You may use DebugLog for diagnostics. If you insert print statements into your code, you can output contents of variables or other debug informations to Logfile (/home/root/logs).
Maybe it is possible to create a script which is reading last changes of logfile simultaneously while testing your code.
That is just an idea. Never thought about ist further.
Antworten

Zurück zu „Plugins“