Skip to content

Commit

Permalink
OWM now requires API key + full size clock on click
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Oct 11, 2015
1 parent d1537de commit 10c42e6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
30 changes: 26 additions & 4 deletions ColumnCenter.inc
Expand Up @@ -55,18 +55,18 @@ Y=-15r
; TIME DISPLAY
; ----------------------------------

[TimeBackground]
[ClockBackground]
Meter=Image
SolidColor=255,255,255
X=320
Y=405
W=160
H=75
LeftMouseUpAction=[!ShowMeterGroup "FullClock"]

[MeterTime]
[MeterClock]
Meter=String
MeasureName=MeasureTime
Text="%1"
MeterStyle=MainTextStyle
StringAlign=Center
FontSize=40
Expand All @@ -83,4 +83,26 @@ ClipString=2
X=640
Y=435
W=300
H=30
H=30

[FullClockBackground]
Meter=Image
SolidColor=0,0,0
X=0
Y=0
W=800
H=480
Group=FullClock
Hidden=1
LeftMouseUpAction=[!HideMeterGroup "FullClock"]

[FullMeterClock]
Meter=String
MeasureName=MeasureTimeFull
MeterStyle=MainTextStyle
StringAlign=Center
FontSize=140
X=400
Y=130
Group=FullClock
Hidden=1
6 changes: 5 additions & 1 deletion Measures.inc
Expand Up @@ -271,7 +271,7 @@ MaxValue=10000000
Measure=Plugin
Plugin=WebParser
UpdateRate=600
Url=http://api.openweathermap.org/data/2.5/weather?q=#WeatherQ#&lang=#WeatherLang#&mode=xml&units=metric
Url=http://api.openweathermap.org/data/2.5/weather?q=#WeatherQ#&lang=#WeatherLang#&mode=xml&units=metric&appid=#WeatherApiKey#
RegExp=(?siU)<city.*name="(.*)">.*<country>(.*)</country>.*<temperature value="(.*)".*<weather.*value="(.*)" icon="(.*)"></weather>

;[MeasureWeatherCity]
Expand Down Expand Up @@ -334,6 +334,10 @@ IfFalseAction=[!SetOption VolumeHandle ImageName #@#Images\volume_off.png][!Hide
Measure=Time
Format="%H:%M"

[MeasureTimeFull]
Measure=Time
Format="%H:%M:%S"

[MeasureDate]
Measure=Time
Format="%a. %#d %B %Y"
Expand Down
9 changes: 7 additions & 2 deletions Variables.inc
Expand Up @@ -7,15 +7,20 @@ MGPU=NVIDIA GeForce GTX 970

; CPU mode (0=bar graphs, 1=pie charts)
; You can also click on the vertical bars/pie chart zone to change the mode
CPUMode=1
CPUMode=0

; Query for http://openweathermap.org
WeatherQ=Lyon,fr

; Language for http://openweathermap.org
WeatherLang=fr

; API key for http://openweathermap.org
WeatherApiKey=

; Weather icons theme (0=white, 1=colorful)
; You can also click on the weather icon to change the theme
WeatherTheme=0
WeatherTheme=1

; Drives letters
Drive1=B:
Expand Down

0 comments on commit 10c42e6

Please sign in to comment.