kaelri / enigma

A featured "suite" for the Windows system monitoring application, Rainmeter.
https://www.kaelri.com/project/enigma/
270 stars 93 forks source link

Incorrect world times #72

Closed jwhayman closed 10 years ago

jwhayman commented 10 years ago

Hi, I've tried to set multiple world clocks. The weather is displayed correctly, but the times for each city are set to my default city, rather than their correct times.

I had a look in the .ini files but couldn't find where this could be fixed.

Thanks in advance.

world clocks

justrajdeep commented 10 years ago

Hi,

Even i am facing the same issue

Might be solved by https://github.com/Kaelri/Enigma/pull/65 but i am not sure how to do it exactly.

I have looked through the faq section but nothing much there.

Geekbat commented 10 years ago

Having the same issue - tried the fix mentioned in #65 and either did it incorrectly or it doesn't fix the issue. Thanks!

jwhayman commented 10 years ago

I've sorted this out. The web service used by Enigma is no longer accessible without an account. To get it working, you need to:

fixed

justrajdeep commented 10 years ago

Hi Epiphron i have something like the following and it does not seem to work :(

[MeasureTimeZone]
Measure=Plugin
Plugin=WebParser
UpdateRate=3600
;Url=http://ws.geonames.org/timezone?lat=#CurrentCodeLat#&lng=#CurrentCodeLon#
Url=http://ws.geonames.org/timezone?lat=#CurrentCodeLat#&lng=#CurrentCodeLon#&username=XXXXXXXX
RegExp=<gmtOffset>(.*)</gmtOffset>
StringIndex=1

image

jwhayman commented 10 years ago

Have you tried reloading the skins?

Try going to the URL below in your web browser (replace the username string), what response do you receive from geonames? http://ws.geonames.org/timezone?lat=55.7496&lng=37.6237&username=YOUR_USERNAME_HERE

It should look like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<geonames>
<timezone tzversion="tzdata2014c">
<countryCode>RU</countryCode>
<countryName>Russia</countryName>
<lat>55.7496</lat>
<lng>37.6237</lng>
<timezoneId>Europe/Moscow</timezoneId>
<dstOffset>4.0</dstOffset>
<gmtOffset>4.0</gmtOffset>
<rawOffset>4.0</rawOffset>
<time>2014-06-30 14:26</time>
<sunrise>2014-06-30 04:48</sunrise>
<sunset>2014-06-30 22:17</sunset>
</timezone>
</geonames>
justrajdeep commented 10 years ago

I am getting the same.

justrajdeep commented 10 years ago

i have refreshed the skin, exited rainmeter and started it.

jwhayman commented 10 years ago

Are you editing the world.inc file in the sidebar directory or the taskbar directory? I'm using Enigma 4 patch 1

justrajdeep commented 10 years ago

Hi I am editing the World.inc file in the 'Sidebar\World' directory I am using Enigma 4 Patch 1. Just downloaded when u posted the solution

Geekbat commented 10 years ago

The geonames solution worked! Thanks!

justrajdeep commented 10 years ago

sadly for me it does not :(

maaudet-ca commented 9 years ago

@justrajdeep You need to activate your account for web services after you registerd and confirmed your e-mail address.

jwhayman commented 9 years ago

Actually, you can ignore my workaround 1acb9e4895e3c61157c954b5ab915f0bbb638b95 addresses this issue. You just need to use the code on Github, rather than the code available from the offficial site.

maaudet-ca commented 9 years ago

Indeed it works! And for DST as well. Thanks!

chieber commented 9 years ago

Thanks for the skin. I have updated the code for the world clocks works. Only issue for me is that DST time is showing an hour off.. I checked the code and I copied it correctly.

What else can I do to fix the DST?

buzzit33 commented 9 years ago

i don know what going on? before i had different timezone but all were same now i have change the time zone with different timezone and it has changed but again same date changed date in both. where i am wrong?

BillyRazzor commented 8 years ago

the correct should now be Url=http://api.geonames.org/timezone?lat=#CurrentCodeLat#&lng=#CurrentCodeLon#&username=YOUR_USERNAME_HERE