[release] Timezone2

With Hyral's blessings, this is an update to his Timezoneavedesk configuration.

This update deals with the meter on the left of the config. In the original, the meter was static and with the help of a script, it is now dynamic. (Unfortunately, the times are still loaded from the weather.com feed, so this config is still ideal for broadband users only.)

Thanks goes out to Hyral for his original config and permission to release this update and also to judge who guided me so I could finish this script.

Note: The meter updates every minute and as a result, when first loaded the reading may be incorrect for the first minute. (I didn't actually time it, but a minute is a safe estimate.)

Here's a preview pic showing all included configs but the Toronto config:

timezone_clocks.jpg

Timezone2.zip

Attachment: Timezone2.zip

#212354

This is very cool. I really like the idea of multiple zones and the meter. However, I'm a little concerned about hitting weather.com every minute per config.

Isn't there a way to calculate based on Greenwich Mean Time. Then, one config could hit weather.com (or some other time reference) and then do math for the other cities. That would eliminate 1 zone per config.

Just a suggestion/thought.

#212363

davidliv, I have given it some thought and it probably would be quite simple if not for the various Daylight Saving Time and Summer Time settings across the globe.

Perhaps, there is someone more skillful in VBScript that can devise a script to accomodate for all the variance. Is there a way to query information on the difference from GMT of a location given a location and time?

Of course, if users won't mind updating the configs manually, it is possible to provide a config which requires only the difference from GMT value of the location, the location name itself, and the user's own time difference from GMT. However, the user would need to be mindful of clock changes of that timezone. (EU's SummerTime, the various US DST timezone changes, and other countries who change their clocks on different days to accomodate for their location to harness more daylight -- then again, if all you care for is Japan, I think they're one of the few countries that do not have any clock changes.)

edit: Maybe I can work on the manual version.

#212371

Good idea mimeryme ! thanks mate.

/aviel

#212390

I was looking around for other time services and of course came across the atomic clock. The daylight image is pretty cool and would make a cool desklet.

What about calculating time against the PC clock's current time. That would eliminate the need for the web connection.

Atomic Clock & Daylight Image

#212400

Using the PC clock's current time for local time is trivial, but for other locations' times it is not as easy.

#212485

Thanks a lot mimeryme!

Awesome work!

And about the time weather thing, is there a way just add a certain number to the time?

Like 7 plus 2 would be 9 o'clock... And so on... :huh:

Maybe someone can help write a script?

I think it's pretty easy...

edit: Actually I give it a shot.. :D

#212494

It looks like you can get the current users' timezone using the win32_OperatingSystem class (WMI class). I'd love to play with this, but I don't have the time right now. Here is a link to msdn...

MSDN - Win32_OperatingSystem

#212525

I found this script, but it looks like it only runs on Exchange servers. Too bad.

#212560

great job mime' :D

#212574

if anyoen is interested, i made a tiny modification to this script. i work w/multiple timezones so i set it up to show all the timezones and locations i work in and show the temp as well. it's pretty simple and i'm sort of new at this but i'm guessing that i can paste the INI and people can just make the change on their own. i'm not sure if i need permission on this since it's only a tiny addition but if so i'll ask the author.

anyway, i love the script and the only change i wish we could make would be to run this script off of the local PC and just offset the time. i can't use it on my business laptop b/c i'm not always connected so it won't query the time. maybe someone can come up w/that. also, i'd love to see someone create overlays for this so it has a nice shadow. i might try messing around w/it. it would make a great script look even better.

here's a pic of my mod:

timezone_weather.jpg

#212580