Skip to content

Instantly share code, notes, and snippets.

@jmbeach
Created April 5, 2020 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmbeach/2067567793e8d7f83ee2a2185f39da81 to your computer and use it in GitHub Desktop.
Save jmbeach/2067567793e8d7f83ee2a2185f39da81 to your computer and use it in GitHub Desktop.
Simple Weather Rainmeter
[Rainmeter]
Update=1000
[Metadata]
Author=DD.921
Version=1.2
License=Creative Commons: Attribution-Noncommercial-ShareAlike 4.0
Description=Displays the weather
Instructions=
//////////////////////////////////////////////////////////////
[Variables]
@include=#@#Variables.ini
@include2=#@#Languages\#Language#.inc
//////////////////////////////////////////////////////////////
[Background]
Meter=Image
SolidColor=255,0,0,1
X=0
Y=0
W=300
H=40
//////////////////////////////////////////////////////////////
[MeasureDegree]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url="file:///C:/Users/jared/Documents/Rainmeter/Skins/Minimalist%202/Weather/degree.txt"
RegExp=(.*)
StringIndex=1
Debug=2
[MeasureWeather]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3600
Url="https://api.openweathermap.org/data/2.5/weather?units=Imperial&id=4623560&appid=<your-api-key>"
RegExp=(?siU)\"description\":.*\"(.*)\",.*\"temp\":.*([0-9]+)[.][0-9]+,
StringIndex=2
Debug=2
[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeather]
StringIndex=2
[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeather]
StringIndex=1
-------------------------------------------------------------
[Weather]
Meter=String
MeterStyle=allString | subString
MeasureName=MeasureWeatherTemp
MeasureName2=MeasureDegree
MeasureName3=MeasureWeatherDesc
X=300
Y=0
Text=%3 | %1 %2F
FontFace=Segoe UI Light
FontColor=255,255,255,200
FontSize=12
StringAlign=Right
StringStyle=Bold
AntiAlias=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment