Jump to content


Photo

How to make ananalog clock in the skin


  • Please log in to reply
48 replies to this topic

Re: How to make ananalog clock in the skin #21 Loui (PD1LOI)

  • Senior Member
  • 4,544 posts

+140
Excellent

Posted 15 December 2012 - 15:32

No OK I have here an example that it works.Only it doesn't work in the infobar. Try for yourself!

Re: How to make ananalog clock in the skin #22 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 15 December 2012 - 16:09

hmm, I don't understand what/where works for you now, I am afraid...
and to which of attached skins you're referring now?
1. in your first attachment, in skin.xml there were analog clock widgets in infobar screens (but with incorrect path to the clock-face, after fixing the path, everything should be ok)
2. in your second attachment there are no widgets for analog clock in infobar screens, so no wonder it does not appear... /?/
for me it's pretty clear without testing, but of course there is a chance I misunderstood something...
True sarcasm doesn't need green font...

Re: How to make ananalog clock in the skin #23 Loui (PD1LOI)

  • Senior Member
  • 4,544 posts

+140
Excellent

Posted 15 December 2012 - 16:31

This is the skin.xml ho it doesn't work in the infobar.Attached File  skin.xml   808.6KB   7 downloads

Re: How to make ananalog clock in the skin #24 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 15 December 2012 - 16:54

hmm, that is almost identical with one from your first attachment (but with corrected path)...
at the first glance it looks that analog clock should be displayed in infobar /?/
//you're sure you're not confusing versions of you skin?
True sarcasm doesn't need green font...

Re: How to make ananalog clock in the skin #25 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 15 December 2012 - 18:29

http://openpli.git.s...113b5368b824d36

Change this in Watches.py:

def draw_line(self, x0, y0, x1, y1):
  self.instance.drawLine(x0, y0, x1, y1, self.fColor)

Real musicians never die - they just decompose

Re: How to make ananalog clock in the skin #26 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 15 December 2012 - 23:12

not sure if I understood correctly (possibly not, I've truncated all 'draw_line' code to just two above lines/?/)
but after applying this change, clock hands are drawed, but they're all black (hence barely visible unless you have white clock-face ;))
//and yes, I got here home-made e2 with ecanvas changes included...

Edited by blzr, 15 December 2012 - 23:14.

True sarcasm doesn't need green font...

Re: How to make ananalog clock in the skin #27 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 16 December 2012 - 09:46

not sure if I understood correctly (possibly not, I've truncated all 'draw_line' code to just two above lines/?/)


Yes, that was the idea.

but after applying this change, clock hands are drawed, but they're all black (hence barely visible unless you have white clock-face


Hmm, maybe still something missing in the line draw code then. Probably this is the first time it was ever used...
Real musicians never die - they just decompose

Re: How to make ananalog clock in the skin #28 Loui (PD1LOI)

  • Senior Member
  • 4,544 posts

+140
Excellent

Posted 16 December 2012 - 10:03

<screen backgroundColor="transparent" flags="wfNoBorder" name="InfoBar" position="center,510" size="1280,400" title="InfoBar">
  <ePixmap alphatest="off" pixmap="Magic-HD-Common/infobar/hd.png" position="0,0" size="1282,220" zPosition="-1" />
  <widget alphatest="blend" backgroundColor="secondBG" position="23,76" render="Picon" size="100,60" source="session.CurrentService" transparent="1" zPosition="1">
	<convert type="ServiceName">Reference</convert>
  </widget>
  <widget backgroundColor="secondBG" font="prive3; 14" halign="left" noWrap="1" position="305,55" render="Label" size="500,17" source="session.CurrentService" transparent="1">
	<convert type="ServiceName">Provider</convert>
  </widget>
  <widget backgroundColor="secondBG" font="prive3; 28" foregroundColor="foreground" halign="left" position="220,75" render="ChannelNumber" size="80,36" source="session.CurrentService" transparent="1" valign="center" zPosition="1" />
  <widget backgroundColor="secondBG" font="prive3; 28" halign="left" position="305,75" render="Label" size="500,36" source="session.CurrentService" transparent="1" valign="center" zPosition="1">
	<convert type="ServiceName">Name</convert>
  </widget>
  <widget backgroundColor="secondBG" font="Regular; 24" foregroundColor="yellow" halign="center" noWrap="1" position="14,152" render="Label" size="120,30" source="global.CurrentTime" transparent="1" valign="center" zPosition="1">
	<convert type="ClockToText">ShortDate</convert>
  </widget>
  <widget backgroundColor="secondBG" font="prive3; 14" foregroundColor="selectedFG" halign="right" position="305,191" render="Label" size="620,18" source="session.CurrentService" transparent="1" zPosition="1">
	<convert type="CryptoInfo">VerboseInfo</convert>
  </widget>
  <widget backgroundColor="secondBG" font="Regular;25" foregroundColor="green" halign="left" position="220,130" render="Label" size="80,30" source="session.Event_Now" transparent="1" zPosition="1">
	<convert type="EventTime">StartTime</convert>
	<convert type="ClockToText">Default</convert>
  </widget>
  <widget backgroundColor="secondBG" font="prive3;25" foregroundColor="green" halign="left" noWrap="1" position="305,130" render="Label" size="620,30" source="session.Event_Now" transparent="1" zPosition="1">
	<convert type="EventName">Name</convert>
  </widget>
  <widget backgroundColor="secondBG" font="Regular; 24" foregroundColor="orange" halign="right" position="940,130" render="Label" size="120,30" source="session.Event_Now" transparent="1" zPosition="1">
	<convert type="EventTime">Remaining</convert>
	<convert type="RemainingToText">InMinutes</convert>
  </widget>
  <widget backgroundColor="secondBG" font="Regular;26" foregroundColor="yellow" halign="left" position="220,162" render="Label" size="80,30" source="session.Event_Next" transparent="1" zPosition="1">
	<convert type="EventTime">StartTime</convert>
	<convert type="ClockToText">Default</convert>
  </widget>
  <widget backgroundColor="secondBG" font="prive3; 25" halign="left" noWrap="1" position="305,162" render="Label" size="620,30" source="session.Event_Next" transparent="1" zPosition="1">
	<convert type="EventName">Name</convert>
  </widget>
  <widget backgroundColor="secondBG" font="Regular; 24" foregroundColor="listbox" halign="right" position="940,162" render="Label" size="120,30" source="session.Event_Next" transparent="1" zPosition="1">
	<convert type="EventTime">Duration</convert>
	<convert type="ClockToText">InMinutes</convert>
  </widget>
  <widget backgroundColor="un33333a" borderWidth="0" pixmap="Magic-HD-Common/infobar/pbar.png" position="center,115" render="Progress" size="840,8" source="session.Event_Now" transparent="0" zPosition="2">
	<convert type="EventTime">Progress</convert>
  </widget>
  <widget backgroundColor="secondBG" font="Regular;18" foregroundColor="orange" halign="center" position="1098,110" render="Label" size="50,20" source="session.CurrentService" transparent="1">
	<convert type="ServiceInfo">VideoWidth</convert>
  </widget>
  <eLabel backgroundColor="secondBG" font="Regular;16" foregroundColor="red" halign="center" position="1148,110" size="15,20" text="x" transparent="1" />
  <widget backgroundColor="secondBG" font="Regular;18" foregroundColor="orange" halign="center" position="1163,110" render="Label" size="50,20" source="session.CurrentService" transparent="1">
	<convert type="ServiceInfo">VideoHeight</convert>
  </widget>
  <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_dolby_on.png" position="905,76" render="Pixmap" size="60,24" source="session.CurrentService" zPosition="2">
	<convert type="ServiceInfo">IsMultichannel</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <ePixmap alphatest="on" pixmap="Magic-HD-Common/infobar/ico_format_off.png" position="1020,78" size="46,21" zPosition="1" />
  <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_format_on.png" position="1020,78" render="Pixmap" size="46,21" source="session.CurrentService" zPosition="2">
	<convert type="ServiceInfo">IsWidescreen</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_hd_on.png" position="1020,78" render="Pixmap" size="46,21" source="session.CurrentService" zPosition="4">
	<convert type="ServiceInfo">VideoWidth</convert>
	<convert type="ValueRange">800,2000</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_txt_on.png" position="973,76" render="Pixmap" size="40,24" source="session.CurrentService" zPosition="2">
	<convert type="ServiceInfo">HasTelext</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_crypt_on.png" position="855,76" render="Pixmap" size="40,21" source="session.CurrentService" zPosition="2">
	<convert type="ServiceInfo">IsCrypted</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_sub_on.png" position="812,76" render="Pixmap" size="36,24" source="session.CurrentService" zPosition="2">
	<convert type="ServiceInfo">SubservicesAvailable</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget alphatest="on" pixmap="Magic-HD-Common/buttons/rec.png" position="1216,80" render="Pixmap" size="20,20" source="session.RecordState" zPosition="3">
	<convert type="ConditionalShowHide">Blink</convert>
  </widget>
  <widget borderColor="background" borderWidth="2" pixmap="Magic-HD-Common/infobar/bar2.png" position="1085,136" render="Progress" size="150,20" source="session.FrontendStatus">
	<convert type="FrontendInfo">SNR</convert>
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1100,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="A" transparent="1" zPosition="2">
	<convert type="TunerInfo">TunerUseMask</convert>
	<convert type="ValueBitTest">1</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1130,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="B" transparent="1" zPosition="2">
	<convert type="TunerInfo">TunerUseMask</convert>
	<convert type="ValueBitTest">2</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1160,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="C" transparent="1" zPosition="2">
	<convert type="TunerInfo">TunerUseMask</convert>
	<convert type="ValueBitTest">4</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1190,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="D" transparent="1" zPosition="2">
	<convert type="TunerInfo">TunerUseMask</convert>
	<convert type="ValueBitTest">8</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_hd_on.png" position="1020,78" render="Pixmap" size="46,21" source="session.CurrentService" zPosition="4">
	<convert type="ServiceInfo">VideoWidth</convert>
	<convert type="ValueRange">800,2000</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="green" halign="left" position="1100,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="A" transparent="1" zPosition="3">
	<convert type="FrontendInfo">NUMBER</convert>
	<convert type="ValueRange">0,0</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="listbox" halign="left" position="1130,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="B" transparent="1" zPosition="3">
	<convert type="FrontendInfo">NUMBER</convert>
	<convert type="ValueRange">1,1</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="yellow" halign="left" position="1160,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="C" transparent="1" zPosition="3">
	<convert type="FrontendInfo">NUMBER</convert>
	<convert type="ValueRange">2,2</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="red" halign="left" position="1190,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="D" transparent="1" zPosition="3">
	<convert type="FrontendInfo">NUMBER</convert>
	<convert type="ValueRange">3,3</convert>
	<convert type="ConditionalShowHide" />
  </widget>
  <widget backgroundColor="secondBG" font="Regular;19" foregroundColor="green" position="1078,162" render="Label" size="100,25" source="session.CurrentService" text="DVB-S" transparent="1" zPosition="1" halign="center">
	<convert type="ServiceOrbitalPosition">
	</convert>
  </widget>
  <widget backgroundColor="transpBlack" font="Regular; 18" foregroundColor="red" halign="center" position="1178,162" render="Label" size="80,25" source="session.FrontendStatus" transparent="1">
	<convert type="FrontendInfo">SNR</convert>
  </widget>
  <ePixmap pixmap="Magic-HD-Common/infobar/clock_b.png" position="150,133" zPosition="1" size="62,60" alphatest="on" />
  <widget source="global.CurrentTime" render="Watches" position="151,132" size="62,60" zPosition="2" alphatest="on" foregroundColor="red">
	<convert type="ExtraNumText">secHand</convert>
  </widget>
  <widget source="global.CurrentTime" render="Watches" position="151,132" size="62,60" zPosition="4" foregroundColor="white" alphatest="on">
	<convert type="ExtraNumText">minHand</convert>
  </widget>
  <widget source="global.CurrentTime" render="Watches" position="163,142" size="40,40" zPosition="3" foregroundColor="white" alphatest="on">
	<convert type="ExtraNumText">hourHand</convert>
  </widget>
</screen>

This is my entire infobar, this way the clock displayed but without the .PNG background,Attached File  screenshot.jpg   106.28KB   66 downloadsWhats wrong?

Re: How to make ananalog clock in the skin #29 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 16 December 2012 - 10:25

hmm, code looks ok,
one thing that comes to mind -
there's no clock_b.png in given localisation (or it is broken/?/)

//and btw, for the future posting, you could place your code in [code=auto:0] tags, then it's more readable...
True sarcasm doesn't need green font...

Re: How to make ananalog clock in the skin #30 Loui (PD1LOI)

  • Senior Member
  • 4,544 posts

+140
Excellent

Posted 16 December 2012 - 10:43

It works don't ask me why, I have another png Attached File  screenshot.jpg   73.95KB   81 downloads file taken with the same settings, and color depth.

Thans BLZR for all

Edited by Loui (PD1LOI), 16 December 2012 - 10:44.


Re: How to make ananalog clock in the skin #31 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 16 December 2012 - 11:42

Congrats, nice clock!

But for my taste your skin contains too much color. I can imagine that you like it very much this way but all those different colors on one screen are somehow distracting me from
the info.

@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: How to make ananalog clock in the skin #32 Loui (PD1LOI)

  • Senior Member
  • 4,544 posts

+140
Excellent

Posted 16 December 2012 - 13:25

So I have the clock now sit on a reasonable place, I put my skin there so look at what you can complete in I've done. Some of us find these colors very clear others not. I'd say create there what of as you want.Attached File  skins_Met Klok.rar   2.06MB   14 downloadsAttached File  screenshot.jpg   96.79KB   106 downloadsAttached File  screenshot1.jpg   54.04KB   102 downloads

Edited by Loui (PD1LOI), 16 December 2012 - 13:29.


Re: How to make ananalog clock in the skin #33 littlesat

  • PLi® Core member
  • 56,620 posts

+695
Excellent

Posted 16 December 2012 - 13:39

I think the location is still a bit messy..... but I'm hapy you did fix it...

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


Re: How to make ananalog clock in the skin #34 .:MarcinO:.

  • Senior Member
  • 136 posts

+15
Neutral

Posted 16 December 2012 - 16:06

@Loui (PD1LOI) - maybe some transparent clock. ;)


Attached File  clock.png   3.29KB   50 downloads

DM 800SE HD - Open PLi 4.0

 


Re: How to make ananalog clock in the skin #35 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,492 posts

+118
Excellent

Posted 16 December 2012 - 21:28

Looking very Nice indeed!

on the Glassfibre 1GB DVB-C...


Re: How to make ananalog clock in the skin #36 Loui (PD1LOI)

  • Senior Member
  • 4,544 posts

+140
Excellent

Posted 17 December 2012 - 11:14

And how this looks? The clock is transparent.Attached File  screenshot.jpg   63.95KB   108 downloadsAttached File  screenshot1.jpg   167.74KB   113 downloads

Re: How to make ananalog clock in the skin #37 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,492 posts

+118
Excellent

Posted 17 December 2012 - 16:37

Also Nice....

on the Glassfibre 1GB DVB-C...


Re: How to make ananalog clock in the skin #38 Frenske

  • Forum Moderator
    PLi® Core member
  • 27,446 posts

+396
Excellent

Posted 17 December 2012 - 16:38

Looks nice. Keep on doing this job.

Mijn schotel is een T90 met 10 LNB's. Daarnaast voor de fun nog een draaibaar systeem met een Triax TD 78.

Dreamboxen heb ik niet meer echt actief. Verder heb ik ook nog een een VU+ duo2 met 500Gb harddisk + een VU+ Uno, Zero, Solo 4K, Ultimo 4K, Zero 4K, Uno 4Kse. + ook nog een Xtrend ET7x00. Daarnaast heb ik ook nog diverse andere modellen w.o. een Formuler F4, ET8500, ET7500, Mut@nt 2400HD, Xsarius Fusion HD se en verder nog wel het e.e.a. waarmee op verzoek vanalles wordt getest. Iemand moet het tenslotte doen. ;) :)
Los van de eerder genoemde modellen heb ik nog wel een rits aan testsamples als Mut@nt 2400HD, HD60, GB UE4K, GB Trio4K, Maxitec Multibox combo en Twin, Octagon sf8008, sf8008 mini en last but nog least enkele modellen van het Grieks Duitse Edision.

Voor centrale opslag van media gebruik ik een Qnap 219P 
met tweemaal 2 Tb harddisks + een Synology DS414 met 12 Tb Totale opslag.

-------------------------------------------------------------------------------------------
Many answers to your question can be found in our wiki: Just one click away from this "solutioncentre".

Als ik alles al wist hoefde ik ook niets te vragen. If I had all the knowledge I had no questions at all.


Re: How to make ananalog clock in the skin #39 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 17 December 2012 - 19:04

Is that clock being rendered with the new lineDraw? Or does that still only draw black lines?
Real musicians never die - they just decompose

Re: How to make ananalog clock in the skin #40 Loui (PD1LOI)

  • Senior Member
  • 4,544 posts

+140
Excellent

Posted 17 December 2012 - 21:17

Is that clock being rendered with the new lineDraw? Or does that still only draw black lines?

Attached File  screenshot.jpg   43.4KB   47 downloads Look with colors red seconde

Here the code

</widget>
<ePixmap alphatest="on" pixmap="Magic-HD-Common/logos/pli.png" position="25,650" size="300,25" />
<ePixmap pixmap="Magic-HD-Common/infobar/clock_b1.png" position="165,407" zPosition="1" size="150,150" alphatest="on" />
<widget source="global.CurrentTime" render="Watches" position="171,413" size="137,137" zPosition="2" alphatest="on" foregroundColor="red">
<convert type="ExtraNumText">secHand</convert>
</widget>
<widget source="global.CurrentTime" render="Watches" position="171,413" size="137,137" zPosition="4" foregroundColor="white" alphatest="on">
<convert type="ExtraNumText">minHand</convert>
</widget>
<widget source="global.CurrentTime" render="Watches" position="193,434" size="95,95" zPosition="3" foregroundColor="white" alphatest="on">
<convert type="ExtraNumText">hourHand</convert>
</widget>
</screen>

Attached File  Magic-HD-Common.rar   1.94MB   12 downloadsAnt here the pictures.


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users