Kodi Community Forum
Qlock2 - Word Clock in Text for XBMC (Replica of Biegert & Funk CLOCKTWO) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Qlock2 - Word Clock in Text for XBMC (Replica of Biegert & Funk CLOCKTWO) (/showthread.php?tid=87761)

Pages: 1 2 3 4 5 6


- freaksworth - 2010-12-21

fix for the german code:
visible tag of control 10102 ("Uhr") has to be:
Code:
<visible>Control.isVisible(10004) + ![System.Time(01:00,01:05)|System.Time(13:00,13:05)]</visible>



- V-Turn - 2010-12-21

Fraincs Wrote:
ppic Wrote:i may try to make a french layout
S'il-vous-plaît Smile
S'il-vous-plaît!
Image


- Maxoo - 2010-12-21

surrounded Big Grin


- Fraincs - 2010-12-21

V-Turn Wrote:S'il-vous-plaît!
Image

pretty / beau


- freaksworth - 2010-12-21

... my version of a german/english extendable multilanguage wordclock. Wink
http://pastebin.com/YwB6YVs8
http://pastebin.com/XwSYxbjX (german)
http://pastebin.com/e90NaKsS (english)


- KiSUAN - 2010-12-21

Jezz_X Wrote:square is so last week Tongue (And before you ask no I can't share the code because it doesn't work proper (update)

I'm too tired to take SS, upload & stuff, but I finish the English version to rectangle, uploaded in my GIT repo, take a look to the xml if you want or download the MOD, tomorrow I`ll make the German one.


- garebear - 2010-12-21

freaksworth Wrote:my version of a german/english extendable multilanguage wordclock. Wink
http://pastebin.com/YwB6YVs8
...

So I'm browsing the web, minding my own business, when all of a sudden I click a link and a TWO POINT FIVE THOUSAND LINE xml file jumps out at me Big Grin

This reminds me of that GameBoy emulator in JavaScript and that 11-bit ALU implemented in C pre-processor - things that make amazing, paradigm-shifting tech demos and equally amazing nightmares of code for anyone hoping to abstract and extend the data in the future.

I love this clock's design and, IMHO, a new C++ GUI control class encapsulating the clock's behavior should most likely replace the xml beast; feed it a basic strings.xml and language matrix and let it do it's thing in codespace.

Have any coders approached you about this direction? I'm such a fan of your dedication toward programming it in XBMC's skin engine that I feel motivated to take on the challenge of a C++ implementation Smile

Edit: This would be the perfect lead-in for turning this clock into a screen saver (:


- KiSUAN - 2010-12-22

Image

https://github.com/KiSUAN/skin.night.purity/blob/master/720p/Includes_Qlock.xml


- Jezz_X - 2010-12-22

Here let me share some simpler code for the Minutes part that doesn't require id's that may break with certain skins and has way simpler visible conditions and will work in any skin

http://xbmc.pastebin.com/BdR0TFFd


- KiSUAN - 2010-12-22

Nice


- freaksworth - 2010-12-22

... is this
Code:
<enable>!substring(system.time(mm),0,right)</enable>
documented? Wink


- Jezz_X - 2010-12-22

indeed it is http://wiki.xbmc.org/?title=List_of_Boolean_Conditions


- freaksworth - 2010-12-22

.. indeed. Oo (damn, again), sry

Shorter Version:
http://pastebin.com/zRATdneZ


- KiSUAN - 2010-12-22

More info yet in http://wiki.xbmc.org/index.php?title=InfoLabels, same place where I learn about the System.Language, very important info that isn't as easy to find as the boolean conditions as it's a lost list that isn't linked to any other page, guide or whatever.

This page should be linked from this SubString(info,string,[Left or Right]) in the boolean list to say one.

Edit:

I added the link to the Boolean conditions list were infolabels were refered, my first wiki (as not just xbmc) contribution ever Big Grin


- humferier - 2011-01-10

V-Turn Wrote:S'il-vous-plaît!

Voilà
Image

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<layout>
  <background all="I,L,B,E,S,T,G,U,N,E,J,D,E,U,X,K,V,T,R,O,I,S,Q,U,A,T,R,E,D,O,U,Z,E,C,I,N,Q,S,I,X,S,E,P,T,H,U,I,T,N,E,U,F,D,I,X,O,N,Z,E,Y,H,E,U,R,E,S,M,O,I,N,S,Z,L,E,D,I,X,E,T,X,B,M,C,Q,U,A,R,T,V,I,N,G,T,-,C,I,N,Q,G,T,I,C,D,E,M,I,E,T,A,C" />

<!--French Layout -->
  <time all = "1,2,4,5,6"
       m00 = "61,62,63,64,65"
       m05 = "61,62,63,64,65,95,96,97,98"
       m10 = "61,62,63,64,65,75,76,77"
       m15 = "61,62,63,64,65,78,79,84,85,86,87,88"
       m20 = "61,62,63,64,65,89,90,91,92,93"
       m25 = "61,62,63,64,65,89,90,91,92,93,94,95,96,97,98"
       m30 = "61,62,63,64,65,78,79,103,104,105,106,107"
       m35 = "61,62,63,64,65,67,68,69,70,71,89,90,91,92,93,94,95,96,97,98"
       m40 = "61,62,63,64,65,67,68,69,70,71,89,90,91,92,93"
       m45 = "61,62,63,64,65,67,68,69,70,71,73,74,84,85,86,87,88"
       m50 = "61,62,63,64,65,67,68,69,70,71,75,76,77"
       m55 = "61,62,63,64,65,67,68,69,70,71,95,96,97,98"
       h01 = "8,9,10"
       h02 = "12,13,14,15,66"
       h03 = "18,19,20,21,22,66"
       h04 = "23,24,25,26,27,28,66"
       h05 = "34,35,36,37,66"
       h06 = "38,39,40,66"
       h07 = "41,42,43,44,66"
       h08 = "45,46,47,48,66"
       h09 = "49,50,51,52,66"
       h10 = "53,54,55,66"
       h11 = "56,57,58,59,66"
       h12 = "29,30,31,32,33,66"
       shiftHour = "0"
       shiftOnHalfHour ="1"
       shiftOn20 ="0"
  />
</layout>

Copy the code in a file called "layout.xml" place that file in script.qlock\resources\layout\French