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

Update Taskbar World.inc #65

Merged
merged 1 commit into from
Feb 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions Skins/Enigma/Taskbar/World/World.inc
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
;---------------------------------------------------------------------
; MEASURES

[MeasureUTC]
Measure=Time
TimeZone=0

[MeasureUNIX]
Measure=Calc
Formula=MeasureUTC-11644473600

[MeasureTimeZone]
Measure=Plugin
Plugin=WebParser
UpdateRate=3600
Url=http://ws.geonames.org/timezone?lat=#CurrentCodeLat#&lng=#CurrentCodeLon#
RegExp=<dstOffset>(.*)</dstOffset>
Url=https://maps.googleapis.com/maps/api/timezone/xml?location=#CurrentCodeLat#,#CurrentCodeLon#&timestamp=[&MeasureUNIX]&sensor=false
RegExp=(?siU)<raw_offset>(.*)</dst_offset>
StringIndex=1
DynamicVariables=1
RegExpSubstitute=1
Substitute="(.*)</raw_offset>[^<]*<dst_offset>(.*)":"((\1+\2)/3600)"

[MeasureTime]
Measure=Time
Expand Down Expand Up @@ -75,4 +86,4 @@ MeasureName2=MeasureClock
[Bar]
Meter=BAR
MeterStyle=Style#Variant#Bar
MeasureName=MeasureBar
MeasureName=MeasureBar