Posts by Lululla

    API Management in AGP (Advanced Graphics Renderer)

    The AGP system utilizes several APIs (TMDB, OMDB, TVDB, Fanart) to fetch information about movies and other content. The management of API keys is designed to be flexible, offering two main methods:

    1. Direct Configuration (Development): API keys are set directly in the code within the API_KEYS dictionary.

    2. File-Based Configuration (Production): API keys are loaded from text files located in the Enigma2 skin directory. These files should be named according to the API (tmdb_api, omdb_api, etc.). If the file exists, the key is read from it; otherwise, default keys are used.

    The function _load_api_keys() is used to automatically load the keys, and in case of errors or missing files, the system falls back to default keys.

    Key Features:

    • Flexibility: Keys can be configured either through files or directly in the code.

    • File Configuration Priority: Files in the skin directory take precedence over default keys.

    • Multithreaded Access Synchronization: API access is protected by a lock to avoid conflicts in a multithreaded context.

    Benefits:

    • Ease of Management: Using external files for keys enables centralized and simple management, especially in production environments.

    • Easy Updates: Keys can be easily updated without modifying the code.

    • Flexibility in Deployment: Suitable for both developers (who can insert keys directly in the code) and production environments (where keys are separated).




    Gestione delle API in AGP (Advanced Graphics Renderer)

    Il sistema AGP utilizza diverse API (TMDB, OMDB, TVDB, Fanart) per ottenere informazioni sui film e altri contenuti. La gestione delle chiavi API è configurata per essere flessibile, con due metodi principali:

    1. Configurazione diretta (sviluppo): Le chiavi API vengono impostate direttamente nel codice, nel dizionario API_KEYS.

    2. Configurazione tramite file (produzione): Le chiavi API vengono caricate da file di testo nel percorso della skin di Enigma2. Questi file devono essere chiamati con il nome dell'API (tmdb_api, omdb_api, etc.). Se il file esiste, la chiave viene letta da lì, altrimenti vengono utilizzate le chiavi di default.

    La funzione _load_api_keys() è utilizzata per caricare automaticamente le chiavi, e in caso di errore o di file mancanti, il sistema fa affidamento sulle chiavi di default.

    Caratteristiche principali:

    • Flessibilità: Si possono configurare le chiavi API tramite file o direttamente nel codice.

    • Priorità ai file di configurazione: I file nella skin hanno la precedenza sulle chiavi di default.

    • Sincronizzazione accessi multithread: L'accesso alle API è protetto da un lock per evitare conflitti in un contesto multithread.

    Benefici:

    • Semplicità di gestione: L'uso di file esterni per le chiavi consente una gestione centralizzata e semplice, specialmente in ambienti di produzione.

    • Facilità di aggiornamento: Le chiavi possono essere facilmente aggiornate senza modificare il codice.

    • Flessibilità nel deployment: Adatto sia per sviluppatori (che possono inserire direttamente le chiavi nel codice) che per ambienti di produzione (dove le chiavi sono separate).

    Questo approccio permette di mantenere il sistema sicuro e modulare, rispettando la necessità di flessibilità per l'uso in vari ambienti.



    SETUP API_KEYS INT O FILE: Agp_apikeys.py

    Code
    API_KEYS = {
    "tmdb_api": "3c3efcf47c3577558812bb9d64019d65",
    "omdb_api": "cb1d9f55",
    "thetvdb_api": "a99d487bb3426e5f3a60dea6d3d3c7ef",
    "fanart_api": "6d231536dea4318a88cb2520ce89473b",
    }


    or import / set in to plugin Aglare setup ;)




    Best Regards :thank_you2:

    🇬🇧 Parental Rating (AglareParentalX)

    AglareParentalX is a renderer that shows graphical age rating icons using data from EPG or PosterX-generated metadata.

    🎯 Rating sources:

    • Event text (e.g., "FSK 16", "12+") PosterX
    • .json files (Rated: "PG-13") Fallback to a default icon if no data is found

    🧩 Supports multiple rating formats: TV (TV-Y, TV-PG, TV-14, etc.) Movies (G, PG, PG-13, R, NC-17) Automatically mapped to FSK: PG-13 → 16, TV-MA → 18

    🖼️ Required icons should be located at: bash

     /usr/share/enigma2//parental/ FSK_0.png, FSK_6.png, FSK_12.png, FSK_16.png, FSK_18.png, FSK_UN.png

    📦 If not found, the system attempts to create the directory and logs any missing files.


    ===================

    🇮🇹 Controllo Parentale (AglareParentalX)

    Il renderer AglareParentalX visualizza icone grafiche per il controllo parentale basandosi sulle informazioni dell'evento EPG o dai metadati salvati da PosterX.

    🎯 Fonti del rating:

    • Testo dell'evento (es. "FSK 16", "12+")

    • File JSON generati da PosterX (Rated: "PG-13")

    • Fallback a un'icona predefinita se nessuna informazione è disponibile

    🧩 Supporta rating multipli:

    • TV (TV-Y, TV-PG, TV-14, ecc.)

    • Film (G, PG, PG-13, R, NC-17)

    • Conversione automatica verso FSK: PG-13 → 16, TV-MA → 18

    🖼️ Le icone devono trovarsi in:


    /usr/share/enigma2/<skin>/parental/FSK_0.png, FSK_6.png, FSK_12.png, FSK_16.png, FSK_18.png, FSK_UN.png


    📦 Se mancano, il sistema tenta di crearne la cartella e segnala gli errori a log.




    Code
    <widget render="AgpParentalX"
        source="session.Event_Now"
        position="637,730"
        size="50,50"
        zPosition="3"
        transparent="1"
        alphatest="blend"/>


    Code
    Icons
    /usr/share/enigma2/<skin>/parental/
    ├── FSK_0.png
    ├── FSK_6.png
    ├── FSK_12.png
    ├── FSK_16.png
    ├── FSK_18.png
    └── FSK_UN.png

    🇬🇧 Info Events

    AGP includes a powerful system to display detailed information about EPG events (movies, TV shows) using metadata from TMDb ad OMDB

    🧠 The data is fetched and cached automatically in .json format.

    ⚙️ Available display modes:

    • setup on plugin aglare

    ================

    🇮🇹 Info Eventi

    AGP offre un sistema avanzato per mostrare informazioni aggiuntive sugli eventi (film, serie TV) direttamente dall'EPG o dai metadati TMDb.

    🧠 Le informazioni vengono recuperate e salvate in cache automaticamente in formato .json.

    ⚙️ Modalità di visualizzazione disponibili:

    • tramite plugin setup

    📝 Esempio di template personalizzato:

    Code
    <widget source="ServiceEvent" render="AgpInfoEvents"
        position="100,400"
        size="600,300"
        font="Regular;18"
        transparent="1"
        zPosition="5"/>

    🎭 I generi vengono automaticamente convertiti dagli ID TMDb in nomi leggibili:

    Code
    [28, 12] → "Action, Adventure"

    🇬🇧 Star Rating System

    AGP includes AglareStarX, a renderer that displays content ratings using stars or percentage formats.

    ⭐️ Supported sources:

    • TMDB (default)
    • IMDB
    • OMDB

    ⚙️ Configurable display modes:

    • from plugin setup

    =================

    🇮🇹 Sistema di Valutazione con Stelle

    AGP integra AglareStarX, un renderer dedicato alla visualizzazione del punteggio dei contenuti tramite stelle o percentuali.

    ⭐️ Fonti supportate:

    • TMDB (predefinito)

    • IMDB

    • OMDB

    ⚙️ Modalità di visualizzazione configurabili:

    • configurazione da plugin setup

    Le opzioni possono essere configurate tramite:


    FILE STRUCTURE


    Code
    /usr/share/enigma2/<skin>/skin_default/
    ├── starsbar_empty.png
    └── starsbar_filled.png

    🇮🇹 Sistema di Log a Colori e Debug Centralizzato

    AGP include un sistema avanzato di logging con output a colori, utile per identificare immediatamente eventuali problemi o attività durante il debug.

    📁 Tutti i file di log vengono salvati nella cartella /tmp/agplog/ e includono:

    • Backdrop/PosterX.log – main renderer log
    • Backdrop/PosterX_errors.log – captured error messages
    • Bakdrop/PosterAutoDB.log – automatic handling log
    • Backdrop/PosterAutoDB.log - automatic handling log

    🧹 È possibile pulire facilmente tutti i log tramite il metodo clear_all_log() automatico:

    🔍 In questo modo l'ambiente di debug rimane pulito e facile da monitorare.


    🇬🇧 Colored Logging System and Centralized Debug

    AGP includes an advanced colored logging system, making it easy to spot issues and debug activity at a glance.

    📁 All log files are stored in /tmp/agplog/ and include:

    • Backdrop/PosterX.log – main renderer log

    • Backdrop/PosterX_errors.log – captured error messages

    • Bakdrop/PosterAutoDB.log – automatic handling log

    • Backdrop/PosterAutoDB.log - automatic handling log

    🧹 You can clean up all log files using the built-in clear_all_log() automatic method


    🔍 This keeps your debugging environment clean and easy to monitor.

    🇬🇧 Automatic Disk Space Management AGP includes a smart disk space management system.At runtime, it checks the available space in the poster folder:

    • If the disk space is sufficient ✅, the download continues as normal.
    • If free space falls below the configured threshold ❗️, the system automatically deletes older files (based on their age), until enough space is available. You can configure these settings

    in /etc/agp.conf: [storage] min_space = 100 ; minimum required space in MB max_age = 30 ; max age of files in days Default values (if the config file is missing):

    🧹 Requires at least 100 MB free, and files older than 30 days will be removed.

    ========================

    🇮🇹 Gestione automatica dello spazio su disco

    AGP include un sistema intelligente per il controllo dello spazio disponibile.

    Durante l'esecuzione, viene verificata la disponibilità di spazio nella cartella dei poster:

    • Se lo spazio è sufficiente ✅, il download procede normalmente.

    • Se lo spazio libero scende sotto la soglia configurata ❗️, il sistema elimina automaticamente i file più vecchi (in base alla data di creazione), fino a ripristinare spazio sufficiente.

    I parametri possono essere configurati nel file /etc/agp.conf:

    Code
    [storage]
    min_space = 100      ; Minimum space required in MB
    max_age   = 30        ; Maximum file age in days

    Valori di default (in assenza del file):

    🧹 Minimo 100 MB liberi e file più vecchi di 30 giorni vengono rimossi.

    🇬🇧 Posters and Backdrops: Automatic Daily Download Posters and backdrops

    are automatically downloaded every day, based on the time set via the scan_time parameter.
    If not specified in the widget, a globally configured default time will be used (e.g. "02:00").
    ✅ The system analyzes all installed channel lists and downloads only the contents of channels that have EPG available.
    🔁 The operation is repeated every day automatically, even after EPG updates.
    🕓 It is recommended to set the time in night bands (e.g. 02:00–04:00).

    In this way, the download is optimized and does not overload the device.

    Update: The poster and backdrop download system is now managed through the setup Plugin,

    where the time and minutes for the download can be set.

    =========================

    🇮🇹 Poster e Backdrop: Download Giornaliero Automatico

    Italiano: I poster e i backdrop vengono scaricati automaticamente ogni giorno, in base all'orario impostato tramite il parametro scan_time.

    Se non specificato nel widget, verrà utilizzato un orario di default configurato globalmente (es. "02:00").

    ✅ Il sistema analizza tutte le liste canali installate e scarica solo i contenuti dei canali che hanno EPG disponibile.

    🔁 L’operazione si ripete ogni giorno automaticamente, anche dopo aggiornamenti EPG.

    🕓 Consigliato impostare l'orario in fasce notturne (es. 02:00–04:00).


    Aggiornamento: Il sistema di download dei poster e backdrop è ora gestito tramite il Plugin di setup,

    dove è possibile impostare l'orario e i minuti per il download.


    In questo modo, il download è ottimizzato e non sovraccarica il dispositivo.

    Key Features:

    • 🌙 Low-traffic hours recommended (e.g., 02:00-04:00)
    • 🔄 Daily automatic execution (runs at specified time)
    • ⏸️ Pauses during active viewing (no system impact)


    pasted-from-clipboard.png

    Hi everyone,

    I'm excited to introduce my new AGP (Aglare Graphics Plugin) renderers, designed specifically for Aglare FHD Skin.

    🔹 Fully compatible with:

    • Infobar

    • Channel list

    • EventView

    • EPG

    • Dynamic Backdrops

    🔹 Key features:

    • TMDB / TVDB / IMDB / Fanart / Google support

    • Auto-scheduled download (scan_time)

    • Custom folder paths (USB, RAM, HDD)

    • Smart cache with auto-clean

    • cornerRadius and zPosition supported

    🔹 Example usage (skin.xml):

    Code
    <widget source="ServiceEvent" render="AglarePosterX" size="185,278" nexts="1" />
    <widget source="Event" render="AglareBackdropX" size="680,1000" nexts="2" />

    📁 Suggested paths:

    Code
    POSTER_FOLDER = "/media/usb/posters"
    BACKDROP_FOLDER = "/media/usb/backdrops"

    🔧 Advanced setup, TMDB API key, and more are available in the full GitHub README.

    🔐 License & Usage Policy

    ✅ You are free to use these renderers except for a 1 skinners ;)

    Do not remove or change credits in the files

    📩 Please contact me if you plan to use them in a project (a simple DM or post is fine)

    👤 Developer: Lululla

    🔗 Based on digiteng with major enhancements

    📜 License: CC BY-NC-SA 4.0 (No commercial use)




    =======================================================


    Ciao a tutti,

    sono felice di presentarvi i miei nuovi renderer grafici avanzati AGP ottimizzati per Aglare FHD Skin.

    Li sto testando attivamente e sono già pienamente integrati con i componenti di Aglare.

    🔹 Compatibili con:

    • Infobar

    • Channel List

    • EventView

    • EPG

    • Backdrop dinamici

    🔹 Caratteristiche principali:

    • Supporto TMDB / TVDB / IMDB / Fanart / Google

    • Download automatico dei poster e backdrop programmabile (scan_time)

    • Percorsi personalizzabili (USB, RAM, HDD)

    • Sistema di cache intelligente e auto-cleaning

    • Supporto per corner radius e zPosition

    🔹 Esempio uso (skin.xml):

    Code
    <widget source="ServiceEvent" render="AglarePosterX" size="185,278" nexts="1" />
    <widget source="Event" render="AglareBackdropX" size="680,1000" nexts="2" />

    📁 Percorsi suggeriti:

    Code
    POSTER_FOLDER = "/media/usb/posters"
    BACKDROP_FOLDER = "/media/usb/backdrops"

    🔧 Configurazione avanzata, API key TMDB, e altri dettagli disponibili nel README completo su GitHub.

    🔐 Licenza & Condizioni d’uso

    ✅ I renderer sono gratuiti e possono essere usati da chiunque (eccetto 1)

    Non rimuovere o modificare i crediti nei file

    📩 Se li usi in un progetto, fammi sapere! (è sufficiente un messaggio privato o sul thread)

    👤 Sviluppatore: Lululla

    🔗 Basati su digiteng (con ampi miglioramenti)

    📜 Licenza: CC BY-NC-SA 4.0 (No uso commerciale)



    Thank's odem2014


    picon_default.png?raw=true



    Here you will find all the instructions for use and download


    Belfagor2005/AGPTEAM

    try (not tested but.. the code is simply


    1. Resolution Parameters: Consolidated all resolution-specific settings into parameter dictionaries (HD and SD) to avoid code duplication.
    2. Modular Methods:
      • setup_weather_display(): Main method that orchestrates the display setup
      • process_day_data(): Handles processing for each day's weather data
      • generate_day_elements(): Generates the skin elements for each day
    3. Error Handling: Added proper error checking for precipitation data to prevent the IndexError you encountered.
    4. Specific exception handling for different operations
    5. More informative error messages (printed to console)
    6. Graceful fallbacks when things go wrong
    7. Replaced the long chain of if/elif statements with a dictionary lookup
    8. Much more efficient (O(1) lookup time vs O(n) for if/elif chain)
    9. Easier to maintain and modify
    10. Split the function into smaller, focused helper functions

    overwrite to

    usr\lib\enigma2\python\Plugins\Extensions\TheWeather

    Copy this turkish.sources.xml to etc/epgimport and delete the same source in rytec.satellites.xml. There are some changes for the Turkish epg compared to the one you have now.I deleted it for you, so copy both files.

    The author (doglover3920) did the same for Poland XMLTV in rytec.sources.xml and added a separate xml file for Poland epg. Maybe Lululla could also add the latest changes from EPGImport-Sources git.

    I can't test because that satellite is not available to me.

    they are the same sources

    now I split them but nothing changed..

    before they were in rytec-source now they are in a separate file

    i don't know

    WORK PLUGINS LIST

    • AirNet-FNC
    • AJPanel
    • ARD mediathek
    • Arte mediathek #####only for Betatester
    • BackUpFlash
    • BirthdayReminder
    • Chefkoch
    • Clear Mem
    • CleverTanken
    • E2iPlayer
    • EPG Refresh
    • EPGImport
    • Epg Importer
    • Filecommander
    • FritzCall
    • IPtoSAT
    • InfobarTunerstate
    • Ipchecker
    • JediMakerXstream
    • Key AdderXStreamity
    • Mediathek viewweb
    • Netzkino
    • Newsreader (rss)
    • OpenATV Status
    • Piconupdater
    • Pluto TV
    • Rakuten TV
    • SRF Mediathek
    • VPN Manager
    • Vavoo
    • Werbezapper
    • Wireguard 15.0(siehe Posting 28)
    • XKlass
    • XStreamity
    • ZDF mediathek
    • chromium
    • e2m3u2bouquet
    • ffmpeg
    • orfteletext
    • serviceapp




    DON'T WORK PLUGINS LIST

    • OpenatvReader
    • Plexdream
    • ORF.at IPTV



    topic moved

    hi

    has anyone tested on openpli image with old enigma2 box plugin has been installed without problems and it works very well with new enigma2 box but on old box channel list comes but channels do not work

    major details please


    if possible a telnet debug is needed Thanks

    I have tested on Vu+duo dreambox one -920 plugin works on all image without problems ...my friend has dreambox 8000 with openpli develop builds I installed vavoo without problems channel list comes but no channel works tested many countries tested with change dns to 8.8.8.8 and serviceapp also it is the same

    major details please

    if possible a telnet debug is needed Thanks



    shot config serviceapp
    shot config vavoo


    debug telnet please:


    Code
    init 4
    killall -9 enigma2
    ENIGMA_DEBUG_LVL=4 enigma2.sh > /tmp/debug.log 2>&1 &



    and put here

    /tmp/debug.log

    I copied epgshare.sources.xml into epgimport, but it doesn't find the epg for Samsung TV Plus as well as Pluto TV (US) which I have in my userbouquet. In Update in STVP plugin it still doesn't give the epg after downloading. Can someone attach a screenshot that has today's epg.Epg for TV channels works normal. Thanks.

    Maybe the answer is here from their forum.


    Quote

    Are you happy with the sources I built?

    Now I wonder. :hmmmm:

    207 downloads for the channels.zip file

    • But do you know that it is the same one that is in the ipk plugin??? :smirking face:
    • Of course, can you read what I wrote? :face with rolling eyes:
    • Have you built the servicereferences? :face with rolling eyes:
    • Are you ready to share what you have done? :scratch_one-s_head:

    If you are not.. then it means that everyone likes ready-made food.. :face vomiting:


    I hope to be proven wrong :face with monocle: