Skip to content

Instantly share code, notes, and snippets.

@RupertAvery
Last active November 18, 2023 04:51
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save RupertAvery/f02797bca5eb791dd00183c1c3c1020a to your computer and use it in GitHub Desktop.
Save RupertAvery/f02797bca5eb791dd00183c1c3c1020a to your computer and use it in GitHub Desktop.
Ageo date and time weather fix

Ageo date and time weather fix

This fixes the weather API for Ageo Rainmeter skin. (https://www.deviantart.com/hiphopium/art/Ageo-788359446)

Get an API Key

First of all, we will need an API key from WeatherApi.com. Go to https://www.weatherapi.com/ and register for free.

On the dashboard you will see:

API Key: <characters and number>

for example:

API Key: 0123456789abcdef0123456789abcde

Note the api key, we will use it in a bit.

Edit Time and Date.ini

With Ageo loaded, right click on the Time and Date skin and click Edit Skin. A Notepad will open with the file C:\Users\<YOUR USERNAME>\Documents\Rainmeter\Skins\Ageo\Time and Date\Time and Date.ini

Choose one of the files attached here, Celcius or Farenheit.

Copy the text in the the file you selected here and completely replace the contents of the Notepad file.

Update the API Key and Location

Look for the [MeasureCurrent] section in Notepad and look at the Url setting.

[MeasureCurrent]
...
Url=http://api.weatherapi.com/v1/current.xml?key=YOUR API KEY&q=YOUR LOCATION
...

Replace YOUR API KEY with the weather.com API Key and YOUR LOCATION with a US Zipcode, UK Postcode, Canada Postalcode, IP address, Latitude/Longitude (decimal degree) or city name.

for example:

Manila, Philippines

Url=http://api.weatherapi.com/v1/current.xml?key=0123456789abcdef0123456789abcde&q=Manila

Beverly Hills

Url=http://api.weatherapi.com/v1/current.xml?key=0123456789abcdef0123456789abcde&q=90210

Look at https://www.weatherapi.com/docs/#intro-request under Request Parameters q parameter for more info.

Finish up

Save the file. Right-click the Time and Date skin and click Refresh skin

Enjoy!

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
LeftMouseDoubleClickAction=!ToggleConfig "Ageo\Settings" "Settings.ini"
[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=1.05
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureCheckNetwork]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
OnChangeAction=[!CommandMeasure MeasureCurrent "Update"]
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=900
Url=http://api.weatherapi.com/v1/current.xml?key=YOUR API KEY&q=YOUR LOCATION
RegExp=".*<name>(.*)</name>.*<temp_c>(.*)</temp_c>.*<condition><text>(.*)</text><icon>(.*)</icon>.*<wind_kph>(.*)</wind_kph>.*<humidity>(.*)</humidity>"
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureLocation]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=1
[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=2
[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3
Substitute=#Conditions#
[MeasureWindSpeed]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=5
[MeasureHumidity]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=6
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureTime]
Measure=Time
Format="%#Format#:%M"
[MeasureAmPm]
Measure=Time
Format="%p"
[MeasureDay]
Measure=Time
Format="%A"
Substitute=#Date#
[MeasureDate]
Measure=Time
Format="%d"
Substitute=#Date#
[MeasureMonth]
Measure=Time
Format="%B"
Substitute=#Date#
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Left
FontFace=Gobold Bold
FontColor=0,0,0
FontSize=(250*#Scale#)
X=(0*#Scale#)
Y=(0*#Scale#)
Text="%1"
AntiAlias=1
InlineSetting=GradientColor | 90 | #Color2#,1 ; 0.10 | #Color2#,220 ; 0.50
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterMonth]
Meter=String
MeasureName=MeasureMonth
StringAlign=Left
FontFace=Porter
FontColor=#Color1#
FontSize=(56*#Scale#)
X=(95*#Scale#)
Y=(170*#Scale#)
Text="%1"
AntiAlias=1
[MeterDay]
Meter=String
MeasureName=MeasureDay
StringAlign=Left
StringCase=Upper
FontFace=Porter
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(45*#Scale#)
Y=(435*#Scale#)
Text="%1"
AntiAlias=1
Angle=(Rad(-90))
InlineSetting=CharacterSpacing | 7 | 7
;-------------------------------------------------------------
;-------------------------------------------------------------
[Meter24hClock]
Meter=String
MeasureName=MeasureTime
StringAlign=Left
FontFace=Porter
FontColor=#Color1#
FontSize=(16*#Scale#)
X=(100*#Scale#)
Y=(260*#Scale#)
Text="%1"
AntiAlias=1
Hidden=#Hidden#
[Meter12hClock]
Meter=String
MeasureName=MeasureTime
MeasureName2=MeasureAmPm
StringAlign=Left
FontFace=Porter
FontColor=#Color1#
FontSize=(16*#Scale#)
X=(0*#Scale#)r
Y=(0*#Scale#)r
Text="%1 %2"
AntiAlias=1
Hidden=#Hidden2#
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLine]
Meter=Shape
X=(100*#Scale#)
Y=(300*#Scale#)
Shape=Rectangle 0,0,(85*#Scale#),(1.5*#Scale#) | Fill Color #Color1# | StrokeWidth 0 | Stroke Color #Color1#,0
UpdateDivider=-1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterWeatherInfo]
Meter=String
MeasureName=MeasureLocation
MeasureName2=MeasureWeatherCond
MeasureName3=MeasureWeatherTemp
MeasureName4=MeasureHumidity
MeasureName5=MeasureWindSpeed
StringAlign=Left
FontColor=#Color1#
FontFace=Glacial Indifference
FontSize=(13*#Scale#)
X=(100*#Scale#)
Y=(340*#Scale#)
Text="#Actual weather in# %1 #CRLF##is# %2 at %3°C#CRLF#with humidity at %4% and wind speed at %5kph"
AntiAlias=1
[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
LeftMouseDoubleClickAction=!ToggleConfig "Ageo\Settings" "Settings.ini"
[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=1.05
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureCheckNetwork]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
OnChangeAction=[!CommandMeasure MeasureCurrent "Update"]
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=900
Url=http://api.weatherapi.com/v1/current.xml?key=YOUR API KEY&q=YOUR LOCATION
RegExp=".*<name>(.*)</name>.*<temp_f>(.*)</temp_f>.*<condition><text>(.*)</text><icon>(.*)</icon>.*<wind_mph>(.*)</wind_mph>.*<humidity>(.*)</humidity>"
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureLocation]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=1
[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=2
[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3
Substitute=#Conditions#
[MeasureWindSpeed]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=5
[MeasureHumidity]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=6
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureTime]
Measure=Time
Format="%#Format#:%M"
[MeasureAmPm]
Measure=Time
Format="%p"
[MeasureDay]
Measure=Time
Format="%A"
Substitute=#Date#
[MeasureDate]
Measure=Time
Format="%d"
Substitute=#Date#
[MeasureMonth]
Measure=Time
Format="%B"
Substitute=#Date#
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Left
FontFace=Gobold Bold
FontColor=0,0,0
FontSize=(250*#Scale#)
X=(0*#Scale#)
Y=(0*#Scale#)
Text="%1"
AntiAlias=1
InlineSetting=GradientColor | 90 | #Color2#,1 ; 0.10 | #Color2#,220 ; 0.50
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterMonth]
Meter=String
MeasureName=MeasureMonth
StringAlign=Left
FontFace=Porter
FontColor=#Color1#
FontSize=(56*#Scale#)
X=(95*#Scale#)
Y=(170*#Scale#)
Text="%1"
AntiAlias=1
[MeterDay]
Meter=String
MeasureName=MeasureDay
StringAlign=Left
StringCase=Upper
FontFace=Porter
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(45*#Scale#)
Y=(435*#Scale#)
Text="%1"
AntiAlias=1
Angle=(Rad(-90))
InlineSetting=CharacterSpacing | 7 | 7
;-------------------------------------------------------------
;-------------------------------------------------------------
[Meter24hClock]
Meter=String
MeasureName=MeasureTime
StringAlign=Left
FontFace=Porter
FontColor=#Color1#
FontSize=(16*#Scale#)
X=(100*#Scale#)
Y=(260*#Scale#)
Text="%1"
AntiAlias=1
Hidden=#Hidden#
[Meter12hClock]
Meter=String
MeasureName=MeasureTime
MeasureName2=MeasureAmPm
StringAlign=Left
FontFace=Porter
FontColor=#Color1#
FontSize=(16*#Scale#)
X=(0*#Scale#)r
Y=(0*#Scale#)r
Text="%1 %2"
AntiAlias=1
Hidden=#Hidden2#
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLine]
Meter=Shape
X=(100*#Scale#)
Y=(300*#Scale#)
Shape=Rectangle 0,0,(85*#Scale#),(1.5*#Scale#) | Fill Color #Color1# | StrokeWidth 0 | Stroke Color #Color1#,0
UpdateDivider=-1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterWeatherInfo]
Meter=String
MeasureName=MeasureLocation
MeasureName2=MeasureWeatherCond
MeasureName3=MeasureWeatherTemp
MeasureName4=MeasureHumidity
MeasureName5=MeasureWindSpeed
StringAlign=Left
FontColor=#Color1#
FontFace=Glacial Indifference
FontSize=(13*#Scale#)
X=(100*#Scale#)
Y=(340*#Scale#)
Text="#Actual weather in# %1 #CRLF##is# %2 at %3°F#CRLF#with humidity at %4% and wind speed at %5mph"
AntiAlias=1
@alby9988
Copy link

alby9988 commented Feb 8, 2021

Hello and thank you for making this fix to the skin. However I have a question, I am not english and not really good at coding but I was trying to use the translate function that is provided with the skin, unfortunately, the first two part of the sentence work whereas the rest (especially the conditions part) does not work, how can I fix this? thanks in advance.
Edit: I also wanted to ask you if you know how to scale the box where there is the weather sentence, because it has become quite long and don't know how to add another line so it becomes 4 lines instead of 3. thanks again.

@AliAkinK
Copy link

AliAkinK commented Apr 7, 2021

Make sure you replace the entire text with one of the two codes he attached at the end (Celcius or Fahrenheit). You must delete all the code and put the new one he attached. Then you can change the API key.

Don't worry about the length of the lines, as long as you didn't press [enter] that is okay.

@amx87
Copy link

amx87 commented May 16, 2021

it seems that the weather doesnt work for uk weather codes, i put in an american code it works fine but one from the uk doesnt do anything, any ideas on a fix?

@RadAldred
Copy link

THANK YOU SO MUCH for this fix! Thank you to AliAkinK above who mentioned that we have to replace the entire code rather than just input our keys and locations. I just wanted to add that, just in case anyone else is as confused as I was, there is no Celsius or Fahrenheit attachment in the Ageo folder itself. In the Time and Day.ini document that opens in Notepad when you select Edit Skin, you have to replace that ENTIRE code with either the Celsius or Fahrenheit codes attached in the post, then enter your key and location as explained. Thank you again for this fix, thanks Ali!!

@RenaudAlly
Copy link

Works! Thank you so much.

@Ruba-dollofroz
Copy link

thank u very much it fixed ,but do have a code for (Bendon ,or Conky Vision 2,or Enmon ,SimpliMaX )skins anyone of them
thank u

@SaputraBSD
Copy link

thanks! but... the info is not showing anymore, i pasted a new one's is not work anymore, any suggestions?

@kord65
Copy link

kord65 commented Aug 3, 2023

Success!! Thank you!

@Arex2403
Copy link

image_2023-11-18_155051924
I want to fix this and I am from Melbourne. I tried the methods above however I cannot fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment