Skip to content

Instantly share code, notes, and snippets.

@jmbeach
Created Apr 5, 2020
Embed
What would you like to do?
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