Thread Rating:
  • 1 Vote(s) - 5 Average
[MOD] Working Analog Clock
#1
Thumbs Up 
I don't know why team Blackbolt didn't make the little analog clock work.
But I wanted it to work, so here it is.
If you look at the code, it's pretty basic. I also totally suck at Photoshop, so if you don't like my images, make your own.

It's accurate to within 4 minutes. Big Grin
Screenshot:
Image




Analog Clock MOD
Reply
#2
MacGyver Wrote:I don't know why team Blackbolt didn't make the little analog clock work.
But I wanted it to work, so here it is.
If you look at the code, it's pretty basic. I also totally suck at Photoshop, so if you don't like my images, make your own.

It's accurate to within 4 minutes. Big Grin
Screenshot:
Image




Analog Clock MOD

The time of day string matching was not in XBMC I believe when the clock was designed. We where so busy with everything else, it didnt cross our mind to go back and do this. We're looking at adding this function to our next build, thank you.
Team Blackbolt - Digital Design

Twitter.com/TeamBlackbolt | TeamBlackbolt.co.uk
Reply
#3
is this no longer available becoz its possibly gonna be in the next releaseHuh?
Reply
#4
Limited time offer.
Reply
#5
Me maybe adding the option to have the clock work like this in the next release in the new year. Unsure though if it will be the first new release or the second. We have a few bug fixes that we want to get out sooner than waiting for new features like this to be coded.
Team Blackbolt - Digital Design

Twitter.com/TeamBlackbolt | TeamBlackbolt.co.uk
Reply
#6
I pretty much need to have this.
MacGyver, could you put it back up somewhere,
or paste in the magic?
Thanks
An neat minimalist mod would be to make the clock the same
size as the bottom button, with no text clock/date.
Reply
#7
id78 Wrote:I pretty much need to have this.
MacGyver, could you put it back up somewhere,
or paste in the magic?
Thanks
An neat minimalist mod would be to make the clock the same
size as the bottom button, with no text clock/date.

We're adding this to ellipsis in the form of an option to enable a Tru-Animated Clock, but this addition may not come to our next beta update, Beta 1.2. We may have to wait till 1.3 to complete this. You can look for our update within the next week or two.
Team Blackbolt - Digital Design

Twitter.com/TeamBlackbolt | TeamBlackbolt.co.uk
Reply
#8
id78, here's the jist of it. and 24 little .png files of a clock painstakingly altered to be the 12 hours of the day, and 12 minutes of the day, (I told you it was only accurate to 4 min) Smile

<include name="clock1">
<posx>0</posx>
<posy>0</posy>
<width>50</width>
<height>50</height>
</include>

<include name="anaclock">
<!-- minutes-->
<control type="image">
<include>clock1</include>
<texture>empty2.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),00,Right) | substring(system.Time(hh:mm),01,Right) | substring(system.Time(hh:mm),02,Right) | substring(system.Time(hh:mm),03,Right) | substring(system.Time(hh:mm),04,Right)</visible>
<texture>12.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),05,Right) | substring(system.Time(hh:mm),06,Right) | substring(system.Time(hh:mm),07,Right) | substring(system.Time(hh:mm),08,Right) | substring(system.Time(hh:mm),09,Right)</visible>
<texture>1.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),10,Right) | substring(system.Time(hh:mm),11,Right) | substring(system.Time(hh:mm),12,Right) | substring(system.Time(hh:mm),13,Right) | substring(system.Time(hh:mm),14,Right)</visible>
<texture>2.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),15,Right) | substring(system.Time(hh:mm),16,Right) | substring(system.Time(hh:mm),17,Right) | substring(system.Time(hh:mm),18,Right) | substring(system.Time(hh:mm),19,Right)</visible>
<texture>3.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),20,Right) | substring(system.Time(hh:mm),21,Right) | substring(system.Time(hh:mm),22,Right) | substring(system.Time(hh:mm),23,Right) | substring(system.Time(hh:mm),24,Right)</visible>
<texture>4.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),25,Right) | substring(system.Time(hh:mm),26,Right) | substring(system.Time(hh:mm),27,Right) | substring(system.Time(hh:mm),28,Right) | substring(system.Time(hh:mm),29,Right)</visible>
<texture>5.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),30,Right) | substring(system.Time(hh:mm),31,Right) | substring(system.Time(hh:mm),32,Right) | substring(system.Time(hh:mm),33,Right) | substring(system.Time(hh:mm),34,Right)</visible>
<texture>6.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),35,Right) | substring(system.Time(hh:mm),36,Right) | substring(system.Time(hh:mm),37,Right) | substring(system.Time(hh:mm),38,Right) | substring(system.Time(hh:mm),39,Right)</visible>
<texture>7.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),40,Right) | substring(system.Time(hh:mm),41,Right) | substring(system.Time(hh:mm),42,Right) | substring(system.Time(hh:mm),43,Right) | substring(system.Time(hh:mm),44,Right)</visible>
<texture>8.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),45,Right) | substring(system.Time(hh:mm),46,Right) | substring(system.Time(hh:mm),47,Right) | substring(system.Time(hh:mm),48,Right) | substring(system.Time(hh:mm),49,Right)</visible>
<texture>9.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),50,Right) | substring(system.Time(hh:mm),51,Right) | substring(system.Time(hh:mm),52,Right) | substring(system.Time(hh:mm),53,Right) | substring(system.Time(hh:mm),54,Right)</visible>
<texture>10.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),55,Right) | substring(system.Time(hh:mm),56,Right) | substring(system.Time(hh:mm),57,Right) | substring(system.Time(hh:mm),58,Right) | substring(system.Time(hh:mm),59,Right)</visible>
<texture>11.PNG</texture>
</control>
<!-- hours -->
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),12,Left)</visible>
<texture>12h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),1:,Left)</visible>
<texture>1h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),2:,Left)</visible>
<texture>2h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),3:,Left)</visible>
<texture>3h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),4:,Left)</visible>
<texture>4h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),5:,Left)</visible>
<texture>5h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),6:,Left)</visible>
<texture>6h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),7:,Left)</visible>
<texture>7h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),8:,Left)</visible>
<texture>8h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),9:,Left)</visible>
<texture>9h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),10,Left)</visible>
<texture>10h.PNG</texture>
</control>
<control type="image">
<include>clock1</include>
<visible>substring(system.Time(hh:mm),11,Left)</visible>
<texture>11h.PNG</texture>
</control>

</include>


Feel free to cut and paste at will, so that no one else has to suffer through typing all this crap from scratch ever again. Hopefully this makes it easier for anyone else that wants to add an analog clock to their skin.
Reply
#9
For those interested here is the code actually used in ellipsis (accurate to the second hehe)...

<control type="image">
<description>Clock Second</description>
<posx>0</posx>
<posy>0</posy>
<width>51</width>
<height>51</height>
<texture>clock\seconds\$INFO[System.Time(ss)].png</texture>
</control>
<control type="image">
<description>Clock Minute</description>
<posx>0</posx>
<posy>0</posy>
<width>51</width>
<height>51</height>
<texture>clock\minutes\$INFO[System.Time(mm)].png</texture>
</control>
<control type="image">
<description>Clock Hour</description>
<posx>0</posx>
<posy>0</posy>
<width>51</width>
<height>51</height>
<texture>clock\hours\$INFO[System.Time(hh)].png</texture>
</control>
Currently working on Ellipsis 1.3 Updates. Update Requests Here.

Ellipsis for XBMC 1.2.1 Click here to download & for SVN details.

Twitter.com/TeamBlackbolt | Facebook.com/TeamBlackbolt1 | TeamBlackbolt.co.uk
Reply



[MOD] Working Analog Clock51