Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect world times #72

Closed
jwhayman opened this issue Jun 5, 2014 · 17 comments
Closed

Incorrect world times #72

jwhayman opened this issue Jun 5, 2014 · 17 comments

Comments

@jwhayman
Copy link

jwhayman commented Jun 5, 2014

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
Copy link

Hi,

Even i am facing the same issue

Might be solved by #65 but i am not sure how to do it exactly.

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

@Geekbat
Copy link

Geekbat commented Jun 28, 2014

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

@jwhayman
Copy link
Author

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:

  • Register an account with http://www.geonames.org/
  • Enable your account for web services access http://www.geonames.org/enablefreewebservice
  • Modify the Sidebar/World/World.inc file so that the Url value in the [MeasureTimeZone] section reads:
    Url=http://ws.geonames.org/timezone?lat=#CurrentCodeLat#&lng=#CurrentCodeLon#&username=YOUR_GEONAMES_USERNAME_HERE
  • Reload the skin and it should work.

fixed

@justrajdeep
Copy link

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
Copy link
Author

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
Copy link

I am getting the same.

@justrajdeep
Copy link

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

@jwhayman
Copy link
Author

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

@justrajdeep
Copy link

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
Copy link

Geekbat commented Jul 1, 2014

The geonames solution worked! Thanks!

@justrajdeep
Copy link

sadly for me it does not :(

@maaudet-ca
Copy link

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

@jwhayman
Copy link
Author

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

@maaudet-ca
Copy link

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

@chieber
Copy link

chieber commented Oct 25, 2014

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants