Created
April 5, 2020 20:54
-
-
Save jmbeach/2067567793e8d7f83ee2a2185f39da81 to your computer and use it in GitHub Desktop.
Simple Weather Rainmeter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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