Skip to content

Instantly share code, notes, and snippets.

@hasan-hasanov
Last active October 17, 2021 01:07
Show Gist options
  • Save hasan-hasanov/bb70902708ea2067b225592b67dd7128 to your computer and use it in GitHub Desktop.
Save hasan-hasanov/bb70902708ea2067b225592b67dd7128 to your computer and use it in GitHub Desktop.
Simple clock, date, weather theme for Rainmeter. In order to work correctly please fill the variables section. This skin is based on https://visualskins.com/skin/mond which looks like it is not supported currently.
[Rainmeter]
Update=1000
Author=Hasan-Hasanov
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
[Variables]
Unit=m
Format=H
Font=Cascadia Mono Bold
TextColor=White
FontWeight=800
City=Enter you city
AppId=OpenWeatherMap API key from here https://openweathermap.org/
[MeasureTime]
Measure=Time
Format="%#Format#:%M"
[MeasureAmPm]
Measure=Time
Format="%p"
[MeasureDay]
Measure=Time
Format=%A
[MeasureDate]
Measure=Time
Format=%d %B, %Y.
[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=600
Url=https://api.openweathermap.org/data/2.5/weather?q=#City#&mode=json&units=metric&appid=#AppId#
RegExp=(?siU)weather.*main":"(.*)".*main.*temp":(.*),
[MeasureTempDesc]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=1
[MeasureTempUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=2
[MeasureRound]
Measure=Calc
Formula=(ROUND(MeasureTempUnit))
[MeterDay]
Meter=String
MeasureName=MeasureDay
StringAlign=Center
StringCase=Upper
FontFace=#Font#
FontWeight=#FontWeight#
FontColor=#TextColor#
FontSize=(80)
X=(340)
Y=(0)
Text="%1"
InlineSetting=CharacterSpacing | 5 | 5
AntiAlias=1
DynamicVariables=1
[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Center
StringCase=Upper
FontWeight=#FontWeight#
FontFace=#Font#
FontColor=#TextColor#
FontSize=(20)
X=(340)
Y=(120)
Text="%1"
AntiAlias=1
[Meter24hClock]
Meter=String
MeasureName=MeasureTime
StringAlign=Center
StringCase=Upper
FontFace=#Font#
FontWeight=#FontWeight#
FontColor=#TextColor#
FontSize=(36)
X=(340)
Y=(160)
Text="%1"
AntiAlias=1
[MeterLocation]
Meter=String
MeasureName=MeasureRound
MeasureName2=MeasureTempDesc
StringAlign=Center
StringCase=Upper
FontFace=#Font#
FontWeight=#FontWeight#
FontColor=#TextColor#
FontSize=(36)
X=(340)
Y=(220)
Text=#City#, %1 °C, %2
AntiAlias=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment