Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 807

Weather • Open-Meteo Weather API

$
0
0
I am aiming to use Open-Meteo API, but I still tried to follow the methods u said but It's still not working, plus I spent hours created a weather widgets that displays Letters IM LITERALLY CRYING :? :? help a boy out please good sir :rosegift: :rosegift:
Sorry about that, was a little tired yesterday when replying and I referred to the WeatherCom API instead of the Open-Meteo one. That being said, you have all the instructions you need to either create or convert a skin to use the Open-Meteo API on the first page of this thread, and they are not that different from the WeatherCom API ones.

So, just extract the contents of the @includeFiles.zip linked on that page to your @Resources folder in your skin, and then use something like this in Mini_weather.ini file:

Code:

[Variables]@includeVariables=#@#OpenMeteoAPIVariables.inc@includeTranslation=#@#OpenMeteoAPIEnglish.inc[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1---Measures---@includeForecast=#@#OpenMeteoAPIMeasures5Day.inc---Meters---[LargeShape]Meter=ShapeShape=Rectangle 0,0,308,100 | Fill LinearGradient Gradient | StrokeWidth 0Gradient=90 | 50,50,50,200 ; 0.0 | 100,100,100,150 ; 1.0Padding=2,2,2,2AntiAlias=1[MeterCondition]Meter=StringMeasureName=@CurrentConditionsClipString=1W=200X=15Y=25FontFace=PlanerFontSize=20FontColor=255,255,255AntiAlias=1[MeterLocation]Meter=StringMeasureName=@LocationNameX=2rY=60FontFace=PlanerFontSize=12FontColor=255,255,255AntiAlias=1[Divider]Meter=ImageSolidColor=255,255,255,150X=228Y=15H=75W=2AntiAlias=1[Icon]Meter=ImageMeasureName=@CurrentIconImagePath=#@#IconsX=16RY=15W=50AntiAlias=1[MeterTemp]Meter=StringStringAlign=CenterMeasureName=@CurrentTemperatureX=([Icon:X] + [Icon:W] / 2)Y=RFontFace=PlanerFontSize=16FontColor=255,255,255FontWeight=500Postfix="[\x00B0]"AntiAlias=1
For some reason, when trying to use @includeForecast=#@#OpenMeteoAPIMeasures.inc, the skin exhibits an abnormally high CPU usage, so I had to use the 5Day variant there. Yes, I know about the slight appearance of "[#]" while weather data is retrieved, but I didn't bother to workaround that, even eclectic-tech uses another string to cover that, in his sample skin from the first page of this thread. As for changing the location and such, you do it by editing the corresponding stuff in the ...\[SkinFolder]\@Resources\OpenMeteoAPIVariables.inc file. In the sample skin posted by eclectic-tech, this setting up process is a bit more user friendly, but the skin you mentioned didn't have that and was made for an entirely different weather source, i.e. the weather.com one.

I guess for more details about the inner workings of his skin structure, eclectic-tech's input would be needed. :D

Statistics: Posted by Yincognito — Yesterday, 2:58 pm — Replies 42 — Views 19103



Viewing all articles
Browse latest Browse all 807

Trending Articles