The weather icon is not displayed, although the code finds the correct one
Hello, I find the weather code, and pull up the picture corresponding to the code that is specified in the openweathermap API, but for some reason the picture is not displayed...
Code is here:
Hello, I find the weather code, and pull up the picture corresponding to the code that is specified in the openweathermap API, but for some reason the picture is not displayed...
Code is here:
Code:
[Rainmeter]Update=1000AccurateText=1[Metadata]Name=NothingOSAuthor=XLSTWAVEInformation=Weather widget white number 2Version=1.0License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0[Variables]FontColor=89888aAPIKey=3250388b47cd33e49672d37a0d02b931Unit=metricLatitude=43.3552Longitude=77.4525URL=https://api.openweathermap.org/data/2.5/weather?lat=#Latitude#&lon=#Longitude#&units=#Unit#&appid=#APIKey#IconPath=#@#icons\[WidgetContainer]Meter=ShapeShape=Rectangle 0,0,200,200,30,30 | StrokeWidth 0 | Fill Color FFFFFPadding=10,10,10,10[Unit]Measure=StringString=#Unit#RegExpSubstitute=1Substitute="metric":"°C","imperial":"°F"[Weather]Measure=WebParserURL=#URL#UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, Gtk) Chrome/124.0.0.0 Safari/537.36RegExp=(?siU)\{.*"weather":\[\{.*"main":(.*),.*"description":(.*),"icon":"(.*)".*\}\].*"main":\{.*"temp":(.*),.*"feels_like":(.*),.*"temp_min":(.*),.*"temp_max":(.*),.*"pressure":(.*),.*"humidity":(.*)\}.*"visibility":(.*),.*"wind":\{.*"speed":(.*),.*"deg":(.*),.*"gust":(.*)\}.*"clouds":\{.*"all":(.*)\}.*"dt":(.*),.*"sys":\{.*"country":(.*),.*"sunrise":(.*),.*"sunset":(.*)\}.*"timezone":(.*),.*"name":(.*),.*\}UpdateRate=600Debug=1[Main]Measure=WebParserURL=[Weather]StringIndex=1RegExpSubstitute=1Substitute='(?:^"|"$)':""[Temp]Measure=WebParserURL=[Weather]StringIndex=4RegExpSubstitute=1Substitute='(?:^"|"$)':""[IconCode]Measure=WebParserURL=[Weather]StringIndex=3RegExpSubstitute=1Substitute='(?:^"|"$)':""[MeasureDate]Measure=TimeFormat=%A[RoundTemp]Measure=CalcFormula=Round(Temp)[MeasureScript]Measure=ScriptScriptFile=#CURRENTPATH#LuaUTF8.luaUpdateDivider=-1[TempText]Meter=StringX=30Y=150FontFace=NDOT 47 (inspired by NOTHING)FontSize=24FontColor=#FontColor#AntiAlias=1MeasureName=RoundTempMeasureName2=UnitText=%1 %2[IconCodeDisplay]Meter=StringX=30Y=100FontFace=NDOT 47 (inspired by NOTHING)FontSize=12FontColor=#FontColor#AntiAlias=1MeasureName=IconCodeText=Icon Code: %1[CheckIcon]Measure=CalcFormula="FileExist('#IconPath##IconCode#.png')"IfCondition=MeasureEquals1IfTrueAction=[!ShowMeter WeatherIconTest][!SetOption WeatherIconTest ImageName "#IconPath##IconCode#.png"][!UpdateMeter *][!Redraw]IfFalseAction=[!HideMeter WeatherIconTest]DynamicVariables=1[WeatherIconTest]Meter=ImageImageName=#IconPath##IconCode#.pngX=50Y=50W=50H=50DynamicVariables=1Hidden=1
Statistics: Posted by xlstwave — Today, 1:25 pm — Replies 3 — Views 56