Jump to content


Photo

Open PLi HD Skins


  • Please log in to reply
170 replies to this topic

#1 mrvica

  • Senior Member
  • 1,218 posts

+80
Good

Posted 10 March 2016 - 16:44

I have made some changes of PLi Skins to my taste, maybe you like them, I´ve changed yellow color to be a bit orange and put NumberZap in center with another background color

PLi_FullHD
<color name="yellow" value="#00e5b243"/>
<!-- NumberZap -->
<screen name="NumberZap" title="Channel" position="center,center" size="651,163" backgroundColor="transpBlack" flags="wfNoBorder">

PLi_HD
<color name="yellow" value="#00e5b243"/>
<!-- NumberZap -->
<screen name="NumberZap" title="Channel" position="center,center" size="434,109" backgroundColor="transpBlack" flags="wfNoBorder">

PLi_HD1
<color name="yellow" value="#00e5b243"/>
<!-- NumberZap -->
<screen name="NumberZap" title="Channel" position="center,center" size="434,109" backgroundColor="transpBlack" flags="wfNoBorder">

PLi_HD2
<color name="yellow" value="#00e5b243"/>
<!-- NumberZap -->
<screen name="NumberZap" title="Channel" position="center,center" size="434,109" backgroundColor="transpBlack" flags="wfNoBorder">

mrvica



Re: Open PLi HD Skins #2 cobus

  • Senior Member
  • 4,747 posts

+69
Good

Posted 10 March 2016 - 21:16

Do you have screenshots ?


Groetjes Cobus R

 

VU+ UNO 4K SE FBC DVB-C (8x) LCD4linux met Samsung SPF 75H

MUTANT HD66SE FBC DVB-C (3x)

MAXYTEC MULTIBOX COMBO

MUTANT HD60 DVB-S

 

 

Ziggo (digitaal) Kabel TV (FTV) op alle decoders met oa fallback tuner

 


Re: Open PLi HD Skins #3 mrvica

  • Senior Member
  • 1,218 posts

+80
Good

Posted 29 April 2016 - 19:10

I meant this, yellow color to be a bit orange and number zap backgrounded, not just transparent, if the picture is too bright you can´t see what you are entereing

Attached Files



Re: Open PLi HD Skins #4 mrvica

  • Senior Member
  • 1,218 posts

+80
Good

Posted 19 July 2016 - 17:00

some other improvment, I saw this in Holo skin http://forums.openpl...pic/34017-holo/ and can´t miss it anymore, here changes for PLi_HD1, it is just similair for all PLi skins



</widget>
    <widget source="ServiceEvent" render="Label" position="20,435" size="480,118" transparent="1" font="Regular;20" halign="block">
      <convert type="EventName">FullDescription</convert>
    </widget>
    <!--widget source="ServiceEvent" render="NextEpgInfo" position="20,650" size="480,25" transparent="1" foregroundColor="secondFG" noWrap="1" font="Regular;22"/-->
	<eLabel font="Regular;16" foregroundColor="transponderinfo" position="20,565" size="200,20" text="NEXT / LATER" transparent="1"/>
    <eLabel font="Regular;16" foregroundColor="transponderinfo" position="20,635" size="200,20" text="PRIME TIME" transparent="1"/>
    
	<widget alphatest="blend" backgroundColor="transparent" column0="0,128,foreground,Regular,22,0,0" column1="139,480,foreground,Regular,22,0,1" position="20,581" primetimeoffset="0" render="EventListDisplay" rowHeight="24" size="480,55" source="ServiceEvent">
		<convert type="EventList">primetime=no,eventcount=2</convert>
    </widget>
	<widget alphatest="blend" backgroundColor="transparent" column0="0,128,foreground,Regular,22,0,0" column1="139,480,foreground,Regular,22,0,1" position="20,650" primetimeoffset="0" render="EventListDisplay" rowHeight="26" size="480,30" source="ServiceEvent">
		<convert type="EventList">primetime=yes,eventcount=0</convert>
    </widget>
    <widget source="ServiceEvent"

you´ll need this renderer

http://forums.openpl...attach_id=70073

 

Attached Files



Re: Open PLi HD Skins #5 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 19 July 2016 - 18:21

We cannot use this because of the license..  :( Hopefully you've a dreambox... ;)

So when we made something like this we need to make a brand now own code for it...

 

# Coded by Dr.Best © 2013
# Support: www.dreambox-tools.info
# E-Mail: dr.best@dreambox-tools.info
#
# This plugin is open source but it is NOT free software.
#
# This plugin may only be distributed to and executed on hardware which
# is licensed by Dream Multimedia GmbH.
# In other words:
# It's NOT allowed to distribute any parts of this plugin or its source code in ANY way
# to hardware which is NOT licensed by Dream Multimedia GmbH.
# It's NOT allowed to execute this plugin and its source code or even parts of it in ANY way
# on hardware which is NOT licensed by Dream Multimedia GmbH.
#
# If you want to use or modify the code or parts of it,
# you have to keep MY license and inform me about the modifications by mail.
 

Edited by littlesat, 19 July 2016 - 19:03.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Open PLi HD Skins #6 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 19 July 2016 - 20:36

The famous 'closed source' story again....

One can wonder why a brand (and people around it) that has grown mature thanks to a helpful community allows such childish 'licences'.....



Re: Open PLi HD Skins #7 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 19 July 2016 - 21:11

And with the renderer and converter given I cannot get it working with the skin fraction posted....


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Open PLi HD Skins #8 Netwalker

  • Member
  • 1 posts

0
Neutral

Posted 15 October 2016 - 11:11

Hello mrvica,

 

i want the the primetime view in the channel selection too. But where i have to paste the text in the skin.xml. I also installed the renderer.

But when i change the skin.xml the image load the default skin.  



Re: Open PLi HD Skins #9 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 15 October 2016 - 11:47

Why do you want primetime view... when prime time is past it is gone... I can change it but I do not know a real good algorithm for a this and in addition it can get a wierd outcome. I can add an option in the renderer so the last item is primeyime when e.g. we are 18 hours before primetime... so in the evening past primetime it will show a next program. And without an extra place taken header (at the time stamp you see it's prime.
When you get default skin you get a typo on your changes.

Edited by littlesat, 15 October 2016 - 11:52.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Open PLi HD Skins #10 mrvica

  • Senior Member
  • 1,218 posts

+80
Good

Posted 15 October 2016 - 12:29

>>>> when prime time is past it is gone...
it is shown then for tomorrow´s prime time
I´ve done too much changes in my PLi-HD1 and I don´t want to revert them, I downloaded the skin from here:
https://github.com/l...Li-HD1/skin.xml
and then put the changes in it, just replace the skin.xml with this one

Attached Files



Re: Open PLi HD Skins #11 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 15 October 2016 - 12:43

it is shown then for tomorrow´s prime time

->Does not make real sense.... I would prefer to see a next service that same evening...

 

I also see you tried the HD1 skin... In the PLi-FullNightHD we have 3 rows here... but no primetime (yet)...

 

In this skin you could add it somehow by adapting the NextEpgInfo Renderer...

from Components.VariableText import VariableText
from Renderer import Renderer
from enigma import eLabel, eEPGCache, eServiceReference
from time import localtime, strftime
 
class NextEpgInfo(Renderer, VariableText):
  def __init__(self):
    Renderer.__init__(self)
    VariableText.__init__(self)
    self.epgcache = eEPGCache.getInstance()
    self.numberOfItems = 1
+    self showPrimeTime = 0
  GUI_WIDGET = eLabel
 
  def changed(self, what):
    self.text = ""
    reference = self.source.service
    info = reference and self.source.info
    if info:
      currentEvent = self.source.getCurrentEvent()
        if currentEvent:
          if not self.epgcache.startTimeQuery(eServiceReference(reference.toString()), currentEvent.getBeginTime() + currentEvent.getDuration()):
            if self.numberOfItems == 1:
              event = self.epgcache.getNextTimeEntry()
              if event:
                self.text = "%s: %s" % (pgettext("now/next: 'next' event label", "Next"), event.getEventName())
            else:
-              for x in range(self.numberOfItems):
+              for x in range(self.numberOfItems - self.showPrimeTime):
                 event = self.epgcache.getNextTimeEntry()
                 if event:
                   self.text = "%s\n%s %s" % (self.text, strftime("%H:%M", localtime(event.getBeginTime())), event.getEventName())
                   self.text = self.text and "%s%s" % (pgettext("now/next: 'next' event label", "Next"), self.text) or ""
               if self.showPrimeTime:
 >>>>>>>>>>>>>>>>>>>>>>>>>>add primetime stuff here<<<<<<<<<<<<<<<<<<<<<<
   def applySkin(self, desktop, parent):
     for (attrib, value) in self.skinAttributes:
       if attrib == "NumberOfItems":
         self.numberOfItems = int(value)
         self.skinAttributes.remove((attrib, value))
+      if attrib == "ShowPrimeTime": 
+       self.showPrimeTime = int(value) 
+        self.skinAttributes.remove((attrib, value))
     return Renderer.applySkin(self, desktop, parent)

Edited by littlesat, 15 October 2016 - 13:05.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Open PLi HD Skins #12 DrData

  • Senior Member
  • 99 posts

+2
Neutral

Posted 29 October 2016 - 16:41

I dont need/use a prime time row, because in the NextEpgInfo Renderer I use
8 items at the botom of the Channellist. So most times my prime time is included in the
8 items.
The skin is my own skin, but it is 98% identical to PLi-FullNightHD, which is a great skin.

Its not a new Renderer. The Trick is:
In my skin.xml I use the NextEpgInfo-Renderer twice.

The original PLi-FullNightHD-Skin has 20 channels in Channellist. My skin has 17 Channels in Channellist.

But I like the advantage to see the next 8 items in EPG.

 

 

Attached Files



Re: Open PLi HD Skins #13 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 31 October 2016 - 09:50

Its not a new Renderer. The Trick is:
In my skin.xml I use the NextEpgInfo-Renderer twice.

How do you tell the second NextEpgInfo-Renderer to continue where the first one has stopped?

Re: Open PLi HD Skins #14 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 31 October 2016 - 11:34

How do you tell the second NextEpgInfo-Renderer to continue where the first one has stopped? 

->

Could be done with a local variable or class... and clear this with a "primer" renderer... But somehow I do not like this idea.... 


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Open PLi HD Skins #15 DrData

  • Senior Member
  • 99 posts

+2
Neutral

Posted 31 October 2016 - 13:57

The 2nd Renderer at the right side shows 8 rows, but on the picture I posted you see only 4 Rows.
The Renderer on the right side starts at a higher Y-Position and I use a black graphic-square to
overlay the first 4 rows. (Working with Z-Position in skin). A Simple Trick.

In the source of the Renderer itself I only replace the word "Next" with "" and rename the
Renderer from NextEpgInfo.py to NextEpgInfo2.py to be save it will be not overwritten by an update.


At moment I am a little busy. But I will adapt my solution to the original PLi-FullNightHD skin
and post a final solution here later.
So everyone can test it and decide if it is usefull or not.



Re: Open PLi HD Skins #16 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 31 October 2016 - 15:36

Thanks, indeed a simple trick :)

Re: Open PLi HD Skins #17 DrData

  • Senior Member
  • 99 posts

+2
Neutral

Posted 31 October 2016 - 20:55

OK.....here we go.

This is for PLi-FullNightHD.


Installation:
copy NextEpgInfo2.py to /usr/lib/enigma2/python/Components/Renderer
copy (replace) skin.xml to /usr/share/enigma2/PLi-FullNightHD
Restart Enigma

@littlesat
If you think its usefull feel free to add it to your Git.
I know you like 100% clean solutions. My way to overlay 4 rows ist not 100% clean.
But....it works and for my personal use I like the advantage.
My Python programing is not good enough to modify the Renderer in a clean way.
 

 

Attached Files



Re: Open PLi HD Skins #18 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 31 October 2016 - 21:38

Works great, nice addition!

2maauc.png

 



Re: Open PLi HD Skins #19 cobus

  • Senior Member
  • 4,747 posts

+69
Good

Posted 31 October 2016 - 22:09

Indeed works great and I like it.

Groetjes Cobus R

 

VU+ UNO 4K SE FBC DVB-C (8x) LCD4linux met Samsung SPF 75H

MUTANT HD66SE FBC DVB-C (3x)

MAXYTEC MULTIBOX COMBO

MUTANT HD60 DVB-S

 

 

Ziggo (digitaal) Kabel TV (FTV) op alle decoders met oa fallback tuner

 


Re: Open PLi HD Skins #20 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 31 October 2016 - 23:16

This is just my meaning....

Having 3 rows of epg data for next, then and after then is sufficiant... It takes soo many place for nit that big addid value. Pressing the epg button can display the complete channel list or gmepg... Calling a function getepginfo2.py, ...3.py etc. is also not as it should be...

But still I think adding some kind of primetime function mit be helpfull...

P.s. Why do you need that many epg info on a channellist?

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users