View Single Post
Posts: 94 | Thanked: 61 times | Joined on Feb 2010 @ Shoreham
#1083
Clock Displayed as Text instead of numbers

This is posted here http://talk.maemo.org/showthread.php...e+clock&page=3

But though it made sense to put it with the other QBW stuff

Its a bit rough around the edges and could do with some tweaks, I would be interested to see any changes that people make

QBW code

Code:
[queen-beecon-header]
version=1.000000
checksum=19217036
[queen-beecon-exported-instance]
widgetType=1
widgetVisible=1
operationalStatus=0
hideCanvas=true
hideClickCanvas=true
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#808080808080
beecon_lt0_ImgFilename=
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#0000ffff0000
beecon_eq0_ImgFilename=
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffffffff0000
beecon_eq1_ImgFilename=
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=
widWidth=555
widHeight=110.24539877300613
instanceTitle=TextTime
instanceCmd=# echo -e "`date +'<span font=\\"15\\">%l:%M</span>%p - %A, %B %d'`"\n\nHR="`date +'%l'`"\nMIN="`date +'%M'`"\nMIN1="`date +'%p'`"\n\n# Convert HR no to text\nif [ $HR = 0 ] ; then HR="Zero"\nelif [ $HR = 1 ] ; then HR="One"\nelif [ $HR = 2 ] ; then HR="Two"\nelif [ $HR = 3 ] ; then HR="Three"\nelif [ $HR = 4 ] ; then HR="Four"\nelif [ $HR = 5 ] ; then HR="Five"\nelif [ $HR = 6 ] ; then HR="Six"\nelif [ $HR = 7] ; then HR="Seven"\nelif [ $HR = 8 ] ; then HR="Eight"\nelif [ $HR = 9 ] ; then HR="Nine"\nelif [ $HR = 10 ] ; then HR="Ten"\nelif [ $HR = 11 ] ; then HR="Eleven"\nelif [ $HR = 12 ] ; then HR="Twelve"\nfi\n\n# Convert MIN no to text\nif [ $MIN = 00 ] ; then MIN="Zero"\nelif [ $MIN = 01 ] ; then MIN="One"\nelif [ $MIN = 02 ] ; then MIN="Two"\nelif [ $MIN = 03 ] ; then MIN="Three"\nelif [ $MIN = 04 ] ; then MIN="Four"\nelif [ $MIN = 05 ] ; then MIN="Five"\nelif [ $MIN = 06 ] ; then MIN="Six"\nelif [ $MIN = 07 ] ; then MIN="Seven"\nelif [ $MIN = 08 ] ; then MIN="Eight"\nelif [ $MIN = 09 ] ; then MIN="Nine"\nelif [ $MIN = 10 ] ; then MIN="Ten"\nelif [ $MIN = 11 ] ; then MIN="Eleven"\nelif [ $MIN = 12 ] ; then MIN="Twelve"\nelif [ $MIN = 13 ] ; then MIN="Thirteen"\nelif [ $MIN = 14 ] ; then MIN="Foreteen"\nelif [ $MIN = 15 ] ; then MIN="Fifteen"\nelif [ $MIN = 16 ] ; then MIN="Sixteen"\nelif [ $MIN = 17 ] ; then MIN="Seventeen"\nelif [ $MIN = 18 ] ; then MIN="Eighteen"\nelif [ $MIN = 19 ] ; then MIN="Nineteen"\nelif [ $MIN = 20 ] ; then MIN="Twenty"\nelif [ $MIN = 21 ] ; then MIN="TwentyOne"\nelif [ $MIN = 22 ] ; then MIN="TwentyTwo"\nelif [ $MIN = 23 ] ; then MIN="TwentyThree"\nelif [ $MIN = 24 ] ; then MIN="TwentyFour"\nelif [ $MIN = 25 ] ; then MIN="TwentyFive"\nelif [ $MIN = 26 ] ; then MIN="TwentySix"\nelif [ $MIN = 27 ] ; then MIN="TwentySeven"\nelif [ $MIN = 28 ] ; then MIN="TwentyEight"\nelif [ $MIN = 29 ] ; then MIN="TwentyNine"\nelif [ $MIN = 30 ] ; then MIN="Thirty"\nelif [ $MIN = 31 ] ; then MIN="ThirtyOne"\nelif [ $MIN = 32 ] ; then MIN="ThirtyTwo"\nelif [ $MIN = 33 ] ; then MIN="ThirtyThree"\nelif [ $MIN = 34 ] ; then MIN="ThirtyFour"\nelif [ $MIN = 35 ] ; then MIN="ThirtyFive"\nelif [ $MIN = 36 ] ; then MIN="ThirtySix"\nelif [ $MIN = 37 ] ; then MIN="ThirtySeven"\nelif [ $MIN = 38 ] ; then MIN="ThirtyEight"\nelif [ $MIN = 39 ] ; then MIN="ThirtyNine"\nelif [ $MIN = 40 ] ; then MIN="Forty"\nelif [ $MIN = 41 ] ; then MIN="FortyOne"\nelif [ $MIN = 42 ] ; then MIN="FortyTwo"\nelif [ $MIN = 43 ] ; then MIN="FortyThree"\nelif [ $MIN = 44 ] ; then MIN="FortyFour"\nelif [ $MIN = 45 ] ; then MIN="FortyFive"\nelif [ $MIN = 46 ] ; then MIN="FortySix"\nelif [ $MIN = 47 ] ; then MIN="FortySeven"\nelif [ $MIN = 48 ] ; then MIN="FortyEight"\nelif [ $MIN = 49 ] ; then MIN="FortyNine"\nelif [ $MIN = 50 ] ; then MIN="Fifty"\nelif [ $MIN = 51 ] ; then MIN="FiftyOne"\nelif [ $MIN = 52 ] ; then MIN="FiftyTwo"\nelif [ $MIN = 53 ] ; then MIN="FiftyThree"\nelif [ $MIN = 54 ] ; then MIN="FiftyFour"\nelif [ $MIN = 55 ] ; then MIN="FiftyFive"\nelif [ $MIN = 56 ] ; then MIN="FiftySix"\nelif [ $MIN = 57 ] ; then MIN="FiftySeven"\nelif [ $MIN = 58 ] ; then MIN="FiftyEight"\nelif [ $MIN = 59 ] ; then MIN="FiftyNine"\n\nfi\necho  "${HR}${MIN}${MIN1}"
rememberMe=
cmdImgFilename=
cmdImgAngle=0
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=0
cmdImgVisibilityPosition=5
cmdJustify=0
cmdExtFont=Nokia Sans bold italic 12
cmdFontName=3
cmdFontSize=12
resImgFilename=
resImgAngle=0
resImgZoom=0
resFgRGB=1
resExtFgRGB=#c7c7c7c7c7c7
resTextAngle=0
resVisibilityPosition=5
resImgVisibilityPosition=3
resJustify=0
resExtFont=Hand Of Sean 50
resFontName=16
resFontSize=10
resWrapLongLines=false
progressAnimationFrames=4
progressAnimationTimer=4
progressAnimationPos=2
progressAnimationAtClickXY=false
progressAnimationBasename=
updOnStartup=true
updOnClick=true
multiClick=false
updOnDesktop=true
updOnSight=false
updOnOrientation=false
delayIndex=1
customIntervalSecs=0
updNeworkPolicy=0
GPSsettings=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
Attached Images
 
 

The Following 3 Users Say Thank You to Raif For This Useful Post: