Skin Label mit Text

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Skin Label mit Text

      Hallo, ich möchte bei einen beliebigen Skin ein Text Label, genauer gesagt vom Plugin bereitgestellten Text in die Infobar anzeigen lassen.
      Ich habe in Sachen "skin.xml" fast keine Ahnung, ich habe aber diese Zeile eingefügt und mir wird schon mal das Wort "hallo" angezeigt.

      Source Code

      1. <eLabel text="hallo:" position="60,60" size="60,122" font="Regular;17" backgroundColor="#00102e59" foregroundColor="#00cccccc" transparent="1" />
      Nun ist die Frage wie greife ich auf das Plugin.py zu?
    • Ein eigenes Plugin von dir ?
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Du könntest in eine Datei nach /tmp schreiben und mit einem Converter anzeigen lassen :
      Bild einer Internetadresse mit IB einblenden-1
      Bild einer Internetadresse mit IB einblenden-2
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Das hat jetzt soweit nach ein bisschen lesen und probieren super geklappt.
      Jetzt das Problem, und zwar ist z.B. der Skin in position="0,512" mal so gesagt.
      Die ganzen Elemente sind demnach auch so angeordnet, Wenn ich mein Text links oben angezeigt haben will, muss ich den Screen vergrößern (am besten 1080x1920). Aber danach hängt die InfoBar oben am Bildschirm rand, dann muss ich die ganzen Icons etc der Position anpassen, hat auch alles geklappt, ist aber mühselig ohne Ende.
      Jetzt mal noch die Frage, kann man (wenn ja wie) ein zusätzliches Screen anlegen, was mit der Infoleiste geöffnet wird?
    • Source Code

      1. <screen backgroundColor="transparent" flags="wfNoBorder" name="InfoBar" position="0,0" size="1280,720" title="Infobar">
      Wie sieht diese Zeile in deiner Infobar aus ?
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Häng den Screen für die Infobar mal an .
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Deinen Screen "Infobar" solltest anhängen .
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Ja, das wäre gut . ;)
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Display Spoiler

      <!-- Main infobar -->
      <screen backgroundColor="transparent" flags="wfNoBorder" name="InfoBar" position="0,0" size="1280,720" title="Infobar">
      <ePixmap position="0,0" zPosition="-1" size="1280,164" pixmap="Default-HD-red-dark/infobar-bg2.png" />
      </screen>
      <screen name="InfoBar" position="0,530" size="1280,164" title="InfoBar" backgroundColor="transparent" flags="wfNoBorder">
      <!-- Background -->
      <ePixmap position="0,0" zPosition="-1" size="1280,164" pixmap="Default-HD-red-dark/infobar-bg2.png" />
      <!-- Progressbar (current event duration)-->
      <ePixmap pixmap="Default-HD-red-dark/progress_bg.png" position="50,20" size="200,12" />
      <widget source="session.Event_Now" render="Progress" position="54,24" size="192,5" zPosition="1" pixmap="Default-HD-red-dark/progress_small.png" transparent="1">
      <convert type="EventTime">Progress</convert>
      </widget>
      <!-- Service name -->
      <widget source="session.CurrentService" render="Label" position="300,12" size="420,27" font="Regular;24" valign="top" noWrap="1" backgroundColor="#00263c59" transparent="1">
      <convert type="ServiceName">Name</convert>
      </widget>
      <!-- Signal Quality -->
      <eLabel text="SNR:" position="720,17" size="50,22" font="Regular;17" backgroundColor="#00102e59" foregroundColor="#00cccccc" transparent="1" />
      <widget source="session.FrontendStatus" render="Label" position="770,17" size="75,22" font="Regular;17" backgroundColor="#00102e59" foregroundColor="grey" transparent="1">
      <convert type="FrontendInfo">SNRdB</convert>
      </widget>
      <!-- Bit error rate -->
      <eLabel text="BER:" position="860,17" size="50,22" font="Regular;17" backgroundColor="#00102e59" foregroundColor="#00cccccc" transparent="1" noWrap="1" />
      <widget source="session.FrontendStatus" render="Label" position="910,17" size="75,22" font="Regular;17" backgroundColor="#00102e59" foregroundColor="grey" transparent="1" noWrap="1">
      <convert type="FrontendInfo">BER</convert>
      </widget>
      <!-- Audio icon (is there multichannel audio?) -->
      <ePixmap pixmap="Default-HD-red-dark/icons/ico_dolby_off.png" position="995,30" size="57,20" zPosition="1" alphatest="blend" />
      <widget source="session.CurrentService" render="Pixmap" pixmap="Default-HD-red-dark/icons/ico_dolby_on.png" position="995,30" size="57,20" zPosition="2" alphatest="blend">
      <convert type="ServiceInfo">IsMultichannel</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Videoformat icon (16:9?) -->
      <ePixmap pixmap="Default-HD-red-dark/icons/ico_format_off.png" position="1063,30" size="36,20" zPosition="1" alphatest="blend" />
      <widget source="session.CurrentService" render="Pixmap" pixmap="Default-HD-red-dark/icons/ico_format_on.png" position="1063,30" size="36,20" zPosition="2" alphatest="blend">
      <convert type="ServiceInfo">IsWidescreen</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Teletext icon (is teletext available?) -->
      <ePixmap pixmap="Default-HD-red-dark/icons/ico_txt_off.png" position="1111,30" size="33,20" zPosition="1" alphatest="blend" />
      <widget source="session.CurrentService" render="Pixmap" pixmap="Default-HD-red-dark/icons/ico_txt_on.png" position="1111,30" size="33,20" zPosition="2" alphatest="blend">
      <convert type="ServiceInfo">HasTelext</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- HDTV icon -->
      <widget source="session.CurrentService" render="Pixmap" pixmap="Default-HD-red-dark/icons/ico_hd_off.png" position="1155,30" size="29,20" zPosition="1" alphatest="blend">
      <convert type="ServiceInfo">VideoWidth</convert>
      <convert type="ValueRange">0,720</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.CurrentService" render="Pixmap" pixmap="Default-HD-red-dark/icons/ico_hd_on.png" position="1155,30" size="29,20" zPosition="2" alphatest="blend">
      <convert type="ServiceInfo">VideoWidth</convert>
      <convert type="ValueRange">721,1980</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Crypt icon (encrypted service?) -->
      <ePixmap pixmap="Default-HD-red-dark/icons/ico_crypt_off.png" position="1195,30" size="26,20" zPosition="1" alphatest="blend" />
      <widget source="session.CurrentService" render="Pixmap" pixmap="Default-HD-red-dark/icons/ico_crypt_on.png" position="1195,30" size="26,20" zPosition="2" alphatest="blend">
      <convert type="ServiceInfo">IsCrypted</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Time -->
      <widget source="global.CurrentTime" render="Label" position="50,54" size="70,24" font="Regular;22" foregroundColor="grey" backgroundColor="background" transparent="1">
      <convert type="ClockToText">Default</convert>
      </widget>
      <!-- Channellogo (Picon) -->
      <widget source="session.CurrentService" render="Picon" position="48,97" zPosition="1" size="100,60" alphatest="blend">
      <convert type="ServiceName">Reference</convert>
      </widget>
      <!-- tuners in use? -->
      <eLabel text="A" position="180,138" zPosition="1" size="10,15" font="Regular;15" foregroundColor="grey" backgroundColor="#004e5a74" transparent="1" />
      <eLabel text="B" position="200,138" zPosition="1" size="10,15" font="Regular;15" foregroundColor="grey" backgroundColor="#004e5a74" transparent="1" />
      <eLabel text="C" position="220,138" zPosition="1" size="10,15" font="Regular;15" foregroundColor="grey" backgroundColor="#004e5a74" transparent="1" />
      <eLabel text="D" position="240,138" zPosition="1" size="10,15" font="Regular;15" foregroundColor="grey" backgroundColor="#004e5a74" transparent="1" />

      <widget source="session.TunerInfo" render="FixedLabel" text="A" position="180,138" size="10,15" zPosition="2" font="Regular;15" foregroundColor="yellow" backgroundColor="#004e5a74" transparent="1">
      <convert type="TunerInfo">TunerUseMask</convert>
      <convert type="ValueBitTest">1</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.TunerInfo" render="FixedLabel" text="B" position="200,138" size="10,15" zPosition="2" font="Regular;15" foregroundColor="yellow" backgroundColor="#004e5a74" transparent="1">
      <convert type="TunerInfo">TunerUseMask</convert>
      <convert type="ValueBitTest">2</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.TunerInfo" render="FixedLabel" text="C" position="220,138" size="10,15" zPosition="2" font="Regular;15" foregroundColor="yellow" backgroundColor="#004e5a74" transparent="1">
      <convert type="TunerInfo">TunerUseMask</convert>
      <convert type="ValueBitTest">4</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.TunerInfo" render="FixedLabel" text="D" position="240,138" size="10,15" zPosition="2" font="Regular;15" foregroundColor="yellow" backgroundColor="#004e5a74" transparent="1">
      <convert type="TunerInfo">TunerUseMask</convert>
      <convert type="ValueBitTest">8</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.FrontendInfo" render="FixedLabel" text="A" position="180,138" size="10,15" zPosition="3" font="Regular;15" foregroundColor="green" backgroundColor="#004e5a74" transparent="1">
      <convert type="FrontendInfo">NUMBER</convert>
      <convert type="ValueRange">0,0</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.FrontendInfo" render="FixedLabel" text="B" position="200,138" size="10,15" zPosition="3" font="Regular;15" foregroundColor="green" backgroundColor="#004e5a74" transparent="1">
      <convert type="FrontendInfo">NUMBER</convert>
      <convert type="ValueRange">1,1</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.FrontendInfo" render="FixedLabel" text="C" position="220,138" size="10,15" zPosition="3" font="Regular;15" foregroundColor="green" backgroundColor="#004e5a74" transparent="1">
      <convert type="FrontendInfo">NUMBER</convert>
      <convert type="ValueRange">2,2</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.FrontendInfo" render="FixedLabel" text="D" position="240,138" size="10,15" zPosition="3" font="Regular;15" foregroundColor="green" backgroundColor="#004e5a74" transparent="1">
      <convert type="FrontendInfo">NUMBER</convert>
      <convert type="ValueRange">3,3</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Blinking pixmap (recording in progress?) -->
      <widget source="session.RecordState" render="Pixmap" position="300,65" size="34,21" pixmap="Default-HD-red-dark/skin_default/icons/icon_rec.png" alphatest="blend">
      <convert type="ConditionalShowHide">Blink</convert>
      </widget>
      <!-- Event (now) -->
      <ePixmap pixmap="Default-HD-red-dark/icons/icon_event.png" position="355,69" size="20,13" alphatest="on" />
      <widget source="session.Event_Now" render="Label" position="390,63" size="70,24" font="Regular;22" backgroundColor="background" transparent="1">
      <convert type="EventTime">StartTime</convert>
      <convert type="ClockToText">Default</convert>
      </widget>
      <widget source="session.Event_Now" render="Label" position="460,63" size="650,24" font="Regular;22" backgroundColor="background" transparent="1">
      <convert type="EventName">Name</convert>
      </widget>
      <widget source="session.Event_Now" render="Label" position="1120,63" size="100,24" font="Regular;22" backgroundColor="background" halign="right" transparent="1">
      <convert type="EventTime">Remaining</convert>
      <convert type="RemainingToText">InMinutes</convert>
      </widget>
      <!-- Event (next) -->
      <widget source="session.Event_Next" render="Label" position="390,95" size="70,24" font="Regular;22" backgroundColor="background" foregroundColor="grey" transparent="1">
      <convert type="EventTime">StartTime</convert>
      <convert type="ClockToText">Default</convert>
      </widget>
      <widget source="session.Event_Next" render="Label" position="460,95" size="650,24" font="Regular;22" backgroundColor="background" foregroundColor="grey" transparent="1">
      <convert type="EventName">Name</convert>
      </widget>
      <widget source="session.Event_Next" render="Label" position="1120,95" size="100,24" font="Regular;22" backgroundColor="background" foregroundColor="grey" halign="right" transparent="1">
      <convert type="EventTime">Duration</convert>
      <convert type="ClockToText">InMinutes</convert>
      </widget>
      <!-- Red button (is recording possible?) -->
      <ePixmap pixmap="Default-HD-red-dark/buttons/button_red_off.png" position="420,135" size="20,20" alphatest="on" />
      <widget source="RecordingPossible" render="Pixmap" pixmap="Default-HD-red-dark/buttons/button_red.png" position="420,135" size="20,20" zPosition="1" alphatest="on">
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- <widget source="ShowRecordOnRed" render="FixedLabel" text="Record" position="450,135" size="160,22" zPosition="1" font="Regular;18" foregroundColor="#007f848d" backgroundColor="#00182946" transparent="1">
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="RecordingPossible" render="FixedLabel" text="Record" position="450,135" size="160,22" zPosition="1" font="Regular;18" backgroundColor="#00182946" transparent="1">
      <convert type="ConditionalShowHide" />
      </widget> -->
      <!-- Red button, Hbbtv (only if record is not on red, for now) -->
      <!-- <widget source="HbbtvApplication" render="Pixmap" pixmap="Default-HD-red-dark/buttons/button_red.png" position="420,135" size="20,20" zPosition="1" alphatest="on">
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="HbbtvApplication" render="Label" position="450,135" size="160,22" zPosition="1" font="Regular;18" backgroundColor="#00182946" transparent="1">
      <convert type="HbbtvApplicationInfo">Name</convert>
      </widget> -->
      <widget source="session.CurrentService" render="Pixmap" position="420,135" size="20,20" zPosition="2" pixmap="Default-HD-red-dark/buttons/button_red.png" alphatest="on">
      <convert type="ServiceInfo">HasHBBTV</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="session.CurrentService" render="FixedLabel" text="HBBTV" position="450,135" size="160,22" zPosition="1" font="Regular;18" backgroundColor="#00182946" transparent="1">
      <convert type="ServiceInfo">HasHBBTV</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Green button (is subservices available?) -->
      <ePixmap pixmap="Default-HD-red-dark/buttons/button_green_off.png" position="620,135" size="20,20" alphatest="on" />
      <widget source="session.CurrentService" render="Pixmap" pixmap="Default-HD-red-dark/buttons/button_green.png" position="620,135" size="20,20" zPosition="1" alphatest="on">
      <convert type="ServiceInfo">SubservicesAvailable</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <eLabel text="Subservices" position="650,135" size="160,22" font="Regular;18" foregroundColor="#007f848d" backgroundColor="#00182946" transparent="1" />
      <widget source="session.CurrentService" render="FixedLabel" text="Subservices" position="650,135" size="160,22" zPosition="1" font="Regular;18" backgroundColor="#00182946" transparent="1">
      <convert type="ServiceInfo">SubservicesAvailable</convert>
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Yellow button (is timeshift possible?) -->
      <ePixmap pixmap="Default-HD-red-dark/buttons/button_yellow_off.png" position="820,135" size="20,20" alphatest="on" />
      <widget source="TimeshiftPossible" render="Pixmap" pixmap="Default-HD-red-dark/buttons/button_yellow.png" position="820,135" size="20,20" zPosition="1" alphatest="on">
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="ShowTimeshiftOnYellow" render="FixedLabel" text="Timeshift" position="850,135" size="160,22" zPosition="1" font="Regular;18" foregroundColor="#007f848d" backgroundColor="#00182946" shadowOffset="-1,-1" transparent="1">
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="TimeshiftPossible" render="FixedLabel" text="Timeshift" position="850,135" size="160,22" zPosition="1" font="Regular;18" backgroundColor="#00182946" transparent="1">
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Yellow button (used for audio on boxes with new rc?) -->
      <widget source="ShowAudioOnYellow" render="Pixmap" pixmap="Default-HD-red-dark/buttons/button_yellow.png" position="820,135" size="20,20" zPosition="1" alphatest="on">
      <convert type="ConditionalShowHide" />
      </widget>
      <widget source="ShowAudioOnYellow" render="FixedLabel" text="Audio" position="850,135" size="85,22" zPosition="1" font="Regular;18" backgroundColor="#00182946" transparent="1">
      <convert type="ConditionalShowHide" />
      </widget>
      <!-- Blue button (is extensions available?) -->
      <ePixmap pixmap="Default-HD-red-dark/buttons/button_blue_off.png" position="1020,135" size="20,20" alphatest="on" />
      <widget source="ExtensionsAvailable" render="Pixmap" pixmap="Default-HD-red-dark/buttons/button_blue.png" position="1020,135" size="20,20" zPosition="1" alphatest="on">
      <convert type="ConditionalShowHide" />
      </widget>
      <eLabel text="Extensions" position="1050,135" size="160,22" font="Regular;18" foregroundColor="#007f848d" backgroundColor="#00182946" transparent="1" />
      <widget source="ExtensionsAvailable" render="FixedLabel" text="Extensions" position="1050,135" size="160,22" zPosition="1" font="Regular;18" backgroundColor="#00182946" transparent="1">
      <convert type="ConditionalShowHide" />
      </widget>
      </screen>
    • Anhang als Datei wäre besser !

      Kopier den Anhang nach /usr/share/enigma2/Default-HD-red-dark/allScreens und aktiviere den Skinpart dann in
      den VTI - Skineinstellungen (Pro aktivieren - dann Gelb) .

      Schau mal, ob alles an der richtigen Position ist .
      Files
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Keine Ahnung obs da Skinparts gibt .

      Sonst kopierst den Screen in deine skin.xml und ersetzt den alten Screen .
      skin.xml vorher sichern !!!.

      Die Zeilen mit <skin> und </skin> nicht mitkopieren !
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110
    • Ich habe es jetzt manuell kopiert, und mein widget mit eingefügt, siehe da es ist alles so, wie ich es mir vorgestellt habe, links oben in der Ecke mein Text.

      du hast quasi die screen Größe geändert und dadurch funzt es.
      Hast du die ganzen positionen manuell oder mit Hilfe eines Converters geändert?
    • Satfan444 wrote:

      Hast du die ganzen positionen manuell ............. geändert?
      Nein .

      Konnte es aber wegen der fehlenden Bilder nicht testen - aber schön zu hören dass es funktioniert hat . :)
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      KAPIERVORGANG beendet.

      Zubehör : Philips 46PFL-9705 / 37PFL-9604, Samsung HT-E6759W, Samsung SPF 107H-105P-87H, Qnap TS-251+, Harmony 650, Fritzbox 7490, Cisco WAP4410N, Netgear M4100-D12G, TPLink HS100/HS110/LB110