[wip] Unit Converter Plus

I'm working on the AveScripter port of most useful thingy from Apple Dashboard. It's a Unit Converter widget, you all know it. There was already one for AveDesk, but it was huge, and to speak true, sometimes it behaves strangely ON MY PC, and also there are invalid constants in the release THAT I HAVE HERE (try to convert 24 hours into days).

This desklet has Plus in its name because I tried to make it very easy to customize the units. You can have as much units and groups as you wish (you'll see some extra units in the Length group), you can have them in your own native language, you can reorder them as you like, you can set up your own conversion constants - they all are stored in XML file (scheme is attached). And the desklet itself is made to show the power of XML data storages and technologies. This work was my very first experiment with the XPaths - and it was successful.

Here's an archive with the latest pre-release I have here. The conversion routine works properly and without any known problems for this moment. Desklet misses the following things yet: currency conversion (I dunno what and into what to convert - haven't seen it in action); time display in Time group; settings and precision(tho the backside and flip are there already); saving the params like current group and units; installer. In all other respects it's a full working desklet. As this is WIP (Work In Progress) thread, not a release, I offer you non-official download of pre-release in RAR package. Of course, you use it on your own risk now :)

Download Unit Converter Plus (pre-release) for AveScripter (~155 KB)

#342788

Thanks a lot. :)

You are a desklet making machine.

#342798

Your a mad man doing all these converts!!! :)

#342805

Just tried it and so far works great! :D

Thanks :)

#342820

very phat, thanks

#342830

wicked cool, my man. i like how the graphic changes depending on whether it's area or pressure, etc. but...it appears to be blank for time. part of pre-release-edness?

#342831

There seemed to be a small hickup at the start: 20 kilograms equaled 42,..... grams :confused: when I resaved the .JS file all worked correctly tho.

really cool, and especially really smartly done. I like the way of how you declared the units in a seperate XML file :)

#342855

wicked cool, my man. i like how the graphic changes depending on whether it's area or pressure, etc. but...it appears to be blank for time. part of pre-release-edness?

Sorry, the time display is not working now (I pointed that in first post). That's what I'm working on now. There also will be at least one new unit group, that the original widget misses

#343051

Sorry, the time display is not working now (I pointed that in first post). That's what I'm working on now. There also will be at least one new unit group, that the original widget misses

so you did. i guess i'm busted for not reading the whole post. sorry...and thx again for the cool widget(s)!

#343053

Mac users! I need some help!!! Please, those of you who owns a Tiger' powered Mac and is not afraid to walk the thin line, contact me with PM shortly!

#344278

Nice little desklet ;). This looks like it has the potential to be very powerful. Just one note for future releases--"Celcius" is actually spelled "Celsius." I know I could correct this myself for my version, but when you release this...

Thanks!

-NC

#344779

Thank you, NC!

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

EDIT: 2006-02-17

Work goes on slowly. I could make the time display in the time group (only 24h for now), saving the current group, units and input value. Alas, I cannot put this new version for public access, because it works only under new (unreleased) version of AveScripter, that Phil has kindly provided to me. So, we'll all have to wait until Phil releases the new version of engine.

EDIT: 2006-07-28

OK, there has been no news on this widget, but now I can definitely say I have made one more step: UC+ now updates its currencies from the web. As soon as I debug it's behaviour when online (I dunno yet, it can fail and spoil all the data) I'll release a public beta.

#344876