yashsingh1/xdaforums huggingface dataset:
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Moon phase is another so called "complication". It shows the phases of the moon in an extra display. Because in modern watches the clock maker tried to show the 3D-movement of the Moon with a 2D dial, you can't compare the image on the clock with the image in the night sky. You can see full and new moon and if it is waning or waxing moon. The formula I used is only right until 2019 (because it accounts for the leap years 2012 and 2016). I think until then you changed your phone ;)

The moon phase movement is very slow. It is not the moon movement on the dayly night sky, but the movement of the phases of the moon. So the moon in the dial needs 14 days from left to right (in Northern hemisphere). It describes the lunar month (full moon - new moon - full moon, 29 days). You can see it in the screenshots (look at the date). If you install the Addon for Southern hemisphere in the next post the movement is in the other direction (right to left)..

See also next post
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
AddOns for moonphase clocks

Southern Hemisphere

At the development I read that the big clock makers who were all in the Northern Hemisphere made only clocks where you can see the phases of the moon only like at the Northern Hemisphere (NH). The Southern Hemisphere will see each phase rotated through 180°. So I made an AddOn for all who are living there (named SH). It changes the the movement of the Moon (against clockwise). There are two versions, one for the clocks with second hand (both normal and carbon) and one for the Tourbillons.

Co0kiemonster

And for all who are fond of Co0kiemonster because of this great mod this addon substitutes the Moon with Co0kie. :)
[HD2 Windows Mobile 6.5 Themes and Apps] spyrale:
:eek: amazing, thanks friend!
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
Awesome job mate.....

Rreally Really Impressive !
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
Congrats for all your work on clock complications!

The new ones are another highlight for CHT-enhanced devices

It is simply amazing to see all the possibilities!

Too bad Lüm-Tec doesn´t have yet moon-phase...
[HD2 Windows Mobile 6.5 Themes and Apps] unthoughtknown:
Like the noob I am I crashed my HD2 with one of the clocks :(

I installed the CHT 1.8.5 clock rat_2665 seconds + date.cab clock. It worked fine, but all the "fun" parts where missing (like the Tourbillion and date). Since the different parts of the clock where described in the post below (including manila files), I thought it was smart to take them and place in the Windows directory. Now the device is freezing on the PIN-input screen (doesnt matter whether I input a PIN or not). It's not booting to the Home screen ever.

I cant manipulate files from my PC, it says I couldnt access them (Allthough I can still access the device and browse through through the files).

Is there anything I can do besides flashing it? :(
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
If you would the tourbillon clock you should install the cab with the tourbillon. ;). If you copied some manila files from the zip to the windows directory (hope you took the zip for CHT 1.8.5) then that's basically just another way for installing the clock. The files in the zip are only for the analog clock. So your failure shouldn't happen. I think you crashed something in manila or windows mobile during the copying process. Can you get in the windows screen and deactivate Sense in the windows today settings? Then you could install CHT again. But I think you are more a candidate for a hard reset :(
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Why don't move moon disk?

Dear rat_2665;

I congratulate you've made a very successful business. I have a question. 1.8.5.1 I am using the CHT.

Although times have changed but the moon does not move the circle. Does not return.

:confused:
[HD2 Windows Mobile 6.5 Themes and Apps] negawolf:
Hi rat, perfect timing, I'm just about requesting the hero clock for CHT 1.8.5 but u've already made it.

Thanx a lot!
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
The moon phase movement is very slow. It is not the moon movement on the dayly night sky, but the movement of the phases of the moon. So the moon in the dial needs 14 days from left to right (in Northern hemisphere). It describes the lunar month (full moon - new moon - full moon, 29 days).You can see it in the screenshots at my post - look at the date. If you install the Addon for Southern hemisphere the movement is in the other direction (right to left).
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Now I know my friend. I was thinking something like that. Would you make your 24 hour rotating disk? 12:00 AMMoon - 12:00 PM Sun samples.;)
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
This movement is possible. But for this you have the clock. ;) BTW sunrise and sunset are not aligned with the sun and the moon on the dial (and at new moon you have full moon). So because my mod is an image of the moonphase complication on real clocks I don't want to change it. But I will post the details, so everyone can change it for himself.
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
If you give me the relevant file will work together, we share one.

1E1A6CCD_manila

1EC5924B_manila

2A87D392_manila

4BDFBA48_manila

7126E342_manila
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
thankyou mate:)
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
very nice (BTW I thought of something like your black silver style at the making)
[HD2 Windows Mobile 6.5 Themes and Apps] traianescu:
a little mod made yesterday night:

the manila file: View attachment 20F62884_manila.zip

i have messed up my registry settings and i can not set back am/pm to be shown on your clock... :(
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Do you use it with the carbon components or the standard ones? And how did you activate AMPM in the first way (because Italy doesn't have AMPM)?

Edit: 1EC5924B_manila for everytime AMPM attached. It does only work with the moonphase (without Tourbillon) clocks

Edit: I withdraw the file because it isn't a solution.
[HD2 Windows Mobile 6.5 Themes and Apps] traianescu:
this one is a mod from your golden clock... but i think i have to mod the hands... a light colour, i think ... and a little larger, for visibility

my rom is with english language, the regional settings are for Italy, right... but i don't want to hard reset the phone... i am still searching for a solution under registry... if i set under registry "h.mm.ss tt" works for everything, but still not showing am/pm on your clock... before messing the registry am/pm was showing fine :(
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Turkey is not a PM-AM

NOTE:

the rat lovers look forward to offering 12pm and 12am moon rotating disc.
[HD2 Windows Mobile 6.5 Themes and Apps] traianescu:
Thank you, rat_2665

i remade the cab, working the am/pm, but show 3 dots, too :eek:

the cab: View attachment 346986
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Sorry, my failure. The three dots stand for "no value". So this is not a solution. You need to activate AMPM in WM. Only then there is a value. Did you try to use an AMPM region with Italian settings?
[HD2 Windows Mobile 6.5 Themes and Apps] Philysubsailor:
AWESOME!

You are much smarter then me! Congratulations on a job well done!

I LOVE IT! Works perfect....
[HD2 Windows Mobile 6.5 Themes and Apps] firesnakess:
Hello!!

I want to install the 24h moon and sun rotatory, its made it yet? is it finished?

thanks..!
[HD2 Windows Mobile 6.5 Themes and Apps] ancola66:
Analog Clock with Big Secondhand Flow now Support Co0kie Home Tab 1.8.5 :) :

http://xdaforums.com/showpost.php?p=6665496&postcount=39
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Hm, I'm a kind of stubborn about this. Like I said in a post above I reproduced a real "complication" and I'd like to leave it at that. If someone else would like to produce a 24h turning sun moon disk so I don't stand against this but I won't do it.

At least a tip: take the 24 rotation movement formula for hourhand I described in this post, adapt it to the moonphase variable and substitute in the lua file in the moonphase function line 57 - 93 (look in the zip file in post 114). Then compile it.
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
m9editorm'm using Lua script does not open and you can not do, but what could be the problem.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
You have to decompile the 1EC5924B_manila (right click) in m9editor. Then you can edit the lua script. Because m9editor often produces failures at decompiling, I took co0kies source code files for editing (with Notepad 2, look in the 3rd post). But you can take my lua file in the zip. Save it after editing in the script directory of m9editor as 1EC5924B_manila.lua and compile it (once more with right clock on the file).
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Clock with day of week

At a request by Jaguaralani I made a version with a day of the week display. It shows the day of the week with two letters like in the local date on the home screen. The color ist the same as AMPM. You can set it with the AMPM settings in CHT Editor.

In the lua script 1EC5924B_manila you have to add:

-- day of week
DayOfWeek1 = function()
local weekday1
weekday1 = machineStatus.CurrentTime.Value:GetDateString(Locale:GetString("IDS_DATEFORMAT"))
weekday1 = string.sub(weekday1, 1, 2)
weekday.String = tostring(weekday1)
local val = (AnalogAMPMColor / 10) * 255
weekday.Color = Color(val, val, val, 255)
end

DayOfWeek1()

machineStatus.CurrentTime.OnValueChanged:connect(DayOfWeek1)

In the mode9 file 1E1A6CCD_manila you have to add a new text object after AMPM:

<Object>Type="GLESText"

<Property> Name=Instance Name Value="weekday"

<Property> Name=Position Value="PosX=84 PosY=-120 PosZ=0"

<Property> Name=String Value="weekday"

<Property> Name=Font Name Value="Helvetica Neue OTS"

<Property> Name=Font Path Value="..\..\HelveticaNeueOTS.TTF"

<Property> Name=Font Size Value="20"

<Property> Name=Size Value="Width=50 Height=50"

Edit: I use the normal date for the days of the week. That can be the reason for issues if the system fond is too great or too small and sometimes if the display of the first two letters in the local language is too wide. Position and the size of the letters can be changed like in every object. For further information look in post 3.

The AddOn for the Southern Hemisphere is an extra cab. Install at first the version of the clock you like. For deinstallation use only the cab in the first post.

EDIT[25/06/2010]: I reposted the AMPM version. The cab didn't work.
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
thankyou friend you are good, not only the best clocks but also explaining and sharing lot of information. Thanks!

ps- maybe that glesstext needs property color added:rolleyes:
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Don't work chef:confused:
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
hi leo, i also use manila kitchen http://xdaforums.com/showthread.php?t=528548 for decompile and recompile lua filed
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
I´m also going "Tourbillon" now, one more nice watch to choose from... ;)

Will have to fine tune a bit the date fonts, but otherwise, I like it... :o

Thanks rat_2665 for all the incredible templates and for sharing!
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Why day colour Black.:confused:

weekday.Color = Color(val, val, val, 255)

weekday.Color = Color(val, 255, 255, 255).....Solution?
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
You can set a constant color in the mode9 file or a variable color in the lua file. I connected the color of the day letters with the color of AMPM.

local val = (AnalogAMPMColor / 10) * 255
weekday.Color = Color(val, val, val, 255)

If you use AMPM you will select a color for reading AMPM in the clock, so it is for both useful, if you don't use AMPM, you anyhow can set the color in CHTEditor at the AMPM color settings.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
That's good looking. We have to hire some security for our expensive watches. :)
[HD2 Windows Mobile 6.5 Themes and Apps] poyensa:
ok rat, thanks again!
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
thanx mate,

that's really awesome

gonna tst it right now .........
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Was okay. Thank you. Chief:)
[HD2 Windows Mobile 6.5 Themes and Apps] negawolf:
Rat, I've installed the hero with date version. It works! Gonna see tommorow whether the date will work.Thanx!
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Thaks poyensa but I have manila kitchen lui script not open help me pls...:confused:
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
My FeedBack [ CARBON CLOCK+WeekDays ]

------------------------------------------

ROM Miri V16 COM2 - CHT 1.8.5

1-Installed AM/PM-WeekDays-Date -------} Didint work, I get the clock face but both clock hands are stuck reading 12 AM, date is 0 and no Weekday, ( the AM/PM window is there, the date window is to small to encounter both the date + the day ).

2-Installed the non AM/PM Version, it works very nice, showing the date + weekday through the bigger window, but the are a bit mal aligned....

Thanx rat..2665
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Hm, the difference between AMPM and non AMPM should only be the file of the clockface. I'll check out the cab.

For the latter: can you post me a screenshot?

PS: I used the normal date for the days of the week. That can be the reason for issues if the system fond is too great and sometimes if the display of the first two letters in the local language is too wide.
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
Thanx for the follow up !
[HD2 Windows Mobile 6.5 Themes and Apps] negawolf:
have just installed hero clock with ampm date. And everything works fine. The date change as it should. Thanx rat.
[HD2 Windows Mobile 6.5 Themes and Apps] negawolf:
Wow, u are a doctor too?
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
We wait dear rat_2665
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
I already answered to that request in post 125 and 138. ;)

@ Jaguaralani

I reposted the cab for "day of week / AMPM" carbon clock. It didn't work, sorry. For all: the "misalignment" is caused by the use of the system fonts. The date numbers are "hardwired" as pictures on a disk for matching the numbers on the clock. So there naturally is some difference.
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
Thanx mate, will give a try.......

Much appreciated.
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Dear rat;

How do manial.lua to manila ?
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
Finally finished my 3 complication watches which were only possible thanks to rat_2665 - and guess what, I found even some lumed models! :D
[HD2 Windows Mobile 6.5 Themes and Apps] AllanJH:
Hero clock with HTC instead of CHT?

Any chance of a version of the Hero clock with the text "HTC" instead of "CHT?"

Thanks!
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Yes, look here. This is an addon for HTC background. Install at first the CHT clock and then the related addon.
[HD2 Windows Mobile 6.5 Themes and Apps] nirvanax:
i now is to dificult but i love to see this clock in cht ;)
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
There was already a request for this clock I answered. So short: Sorry, it is not possible.
[HD2 Windows Mobile 6.5 Themes and Apps] spyrale:
hey man, these are beautiful, hope to see them online soon :D
[HD2 Windows Mobile 6.5 Themes and Apps] Merlcat:
Nice

what is the name of the Clock :D
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Black Pearl on http://hd3complication.com/
[HD2 Windows Mobile 6.5 Themes and Apps] firesnakess:
I love this three clocks!!

Good job!!

You can put the Cab?

I want to install it too.

Thanks!!..

i love this watches!!
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
I think I won´t put those cabs online. I do have official permission from Lüm-Tec with the lumed watches, but not from this manufacturer.

If you want the clocks, send me a PM with your e-mail address - but you are asked not to share or re-post the cabs anytime anywhere. Simple rule.
[HD2 Windows Mobile 6.5 Themes and Apps] snowblind2142:
Thank you!

Nice clocks buddy!

My favorite and now permanent, your version of Lechu's magnificent Hero clock!

Its B-E-A-UTIFUL!!!!!! :D

Fits perfectly with my Dusk theme! Thanks!
[HD2 Windows Mobile 6.5 Themes and Apps] pablo11:
Thanks a lot for all the hard work. Best clocks available as far as I'm concerned:)

One thing I noticed is that when I install Jags black rimmed version it messes up cht. Shame because I love the black rim.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
If you use CHT 1.8.5 then it is so. Jaguaralanis versions are not updated yet. Workaround should be the installation of his clock (without restart) and then the copying of 1E1A6CCD_manila and 1EC5924B_manila from my CHT 1.8.5 Tourbillon zip in post#3 to your windows directory with Total Commander or Resco Explorer.

Edit: The old clock overwrites also the crucial file 7c60907d_manila. So you have to backup and recopy this file too or to wait for a new cab I will post today evening.

Edit: The new cab contains both the versions for CHT 1.7 and CHT 1.8.5.
[HD2 Windows Mobile 6.5 Themes and Apps] pablo11:
Thanks mate. I'll give it a try.

Edit: Copied the files into windows dir and reset but still have the black curtain covering quick links and missallignment???
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Please see the edit in post 175.
[Desire Android Development] The Professor:
Kubino was spot on - the misc overwrite was what caused the issue. If you modify a misc.img to include your CID and flash it back to mtd0, you will restore functionality. I can confirm that USB, BT, FM, recovery all work again on my Desire. The only thing we're not certain about is whether the ROM value in misc.img matters at all, but it doesn't appear to.

Stupid amounts of props go to IEF and adam235 at MoDaCo and kubino here. Thanks to all of you, so much.

MOD EDIT:

below is the post, as this was a combined effort, we don't need to link to modaco.....

As most of you know, people have been hard at work to fix the USB issues we've been seeing due to recovery setting us into USB debugmode.

After unsuccessful attempts to change the kernel commandline , eg. to:

board_bravo.disable_uart3=0

board_bravo.usb_h2w_sw=0

we've been successful in discovering (with the help of XDA-developers) that these switches are stored in the first NAND partition, mtd0, or 'misc'.

You must be rooted to try the following, it seems you can't write to mtd0 without root.

Do step 1 again if you have to.

Also, SD card functionality has to work. For this, do 'fastboot oem enableqxdm 0' in fastboot mode.

Steps involved:

1. Find out your CID. Go into fastboot mode, and do 'fastboot oem boot'.

The log will say something like the following:

CODE

#INFOTAG:Ramdisk OK

#INFOTAG:smi ok, size = 0

#INFOTAG:hwid 0x0

#INFOTAG:skuid 0x21F04

#INFOTAG:hero panel = 0x0

#INFOTAG:engineerid = 0x0

#INFOMCP dual-die

#INFOMCP dual-die

#INFOTAG:mono-die = 0x0

#INFODevice CID is not super CID

#INFOCID is HTC__E11

In this specific case, the CID is HTC__E11.

2. Get the following mtd0.img from the attached files below

Edit this image to the CID you found above with a hex editor.

Optionally, you can use this CID generator by stevebrush instead. Untested by me, but it should work properly.

//Edit: Updated link location for stevebrush. Thanks a ton for the generator!

3. Get flash_image from the attached files below

Move this to /data/ , and flash the modified image using:

"/data/flash_image misc /data/mtd0.img"

You can move both mtd0.img and flash_image by putting it on your sdcard, and issueing the following command in a terminal emulator:

'cat /sdcard/flash_image > /data/flash_image'

'cat /sdcard/mtd0.img > /data/mtd0.img'

You might have to do 'chmod u+x /data/flash_image' before you run the commands (or chmod 755 /data/flash_image)

4. Repeat step 3 a couple of times if it doesn't seem to work well.

5. All done! Reboot, you should have normal usb connectivity. Post your 'fastboot oem boot' log and intermediate steps if it fails.

Credits:

-kubino @ XDA for providing us with the 'misc' information

-TheProfessor @ irc.freenode.net #modaco for being the first test subject + debugging

-adam235 @ irc.freenode.net #modaco for being a test subject as well + debugging

-SgtDavePwnage @ irc.freenode.net #modaco -> moral support + debugging

-DrMon @ irc.freenode.net #modaco -> being brave enough to test on his non-bricked device!
[Desire Android Development] PascalMARTIN:
That's great news !

Good work to all !

Now that you know what the problem was, any chance to fix what was causing it in the recovery / flashing / rooting / anything process, to avoid bricking in the future (even if usb-bricking doesn't seem to be much of a problem anymore) ?
[Desire Android Development] kubino99:
at least we've learned how to enter debug mode on Desire :)
[Desire Android Development] The Professor:
Next steps are to try and get recovery running from SD. IEF has made a ton of good strides there recently - hopefully we can get that rockin'.
[Desire Android Development] shawe_ewahs:
People, if you have a different CID and need to hex edit the file, share here and say also for what CID is edited and for what ROM number.
[Desire Android Development] The Professor:
I edited mine, since my CID was HTC__E11. Attached if somebody else would like to give it a try. This has ROM version 1.15.405.3 listed in it.
[Desire Android Development] mardox:
does this fix everything? i sent my desire for repar yeserday DOH! i was just wondering if this will fix the super battery drain that happens after a brick?
[Desire Android Development] The Professor:
This fixes everything. Obviously we can't be 100% sure on battery life yet, but now that we're out of the debug mode, I can't imagine it would continue. I'll report back after a day.
[Desire Android Development] martinlong78:
This is brilliant chaps! I've backed up my misc fs already ;-) Even though I mush have flashed about 10 times without any issue.
[Desire Android Development] The Professor:
If you've flashed and not run into issues, it might be worth checking out your misc.img in a hex editor anyway just to see what state it's in. It should start with your CID and contain some other strings, including a ROM version. Make sure it's still good.
[Desire Android Development] adam235:
the problem with the radio gets fixed too!
[Desire Android Development] martinlong78:
My misc.img, if anyone is interested. :-P

misc.img
[Desire Android Development] alpinux:
Thats what haykuro asked me too. Is it possible to use jtag this way?
[Desire Android Development] kubino99:
I think we can do lot of things via qualcomm diag devices but I don't know yet how :( If there is anyone who know how to use/connect the device to QPST/QXDM I'm sure we can do a lot with that.
[Desire Android Development] The Professor:
adam235 has been playing with that on an XP machine.
[Desire Android Development] alpinux:
I also tried to get in contact with cmonex. She (and others) did the sspl and the hspl for the htc hd2...
[Desire Android Development] ieftm:
I'm currently working on a serial cable interface for the HTC Desire.

Unfortunately, my electronics skills are 'teh sux0rs' , so it could take while :D
[Desire Android Development] kubino99:
Did he found something interesting ? it should be possible via QPST have full control over the device. Most interesting looks to me disabling NAND write protection.
[Desire Android Development] kubino99:
it shouldn't be neccessary because when you enter debug mode (previous called as USB brick ;-) ) you get 3 serial devices :

Qualcomm HS-USB Modem 9002
Qualcomm HS-USB Diagnostics 9002 (COMx)
Qualcomm HS-USB NMEA 9002 (COMx)

but unfortunately I don't know about anyone who successfully connected the QPST tools.
[Desire Android Development] alpinux:
sorry ... wrong post