I'm trying to create my own skin and get weather data using webparser plugin. For some reasons ot doesn't work. It returns an empty response. In log file:
Code: Select all
DBUG (10:07:17.596) tick weather v2\weather.ini - [Current]: Fetching: http://api.open-meteo.com/v1/forecast?latitude=51.5287718&longitude=-0.2416807¤t_weather=true
DBUG (10:07:17.726) tick weather v2\weather.ini - [Current]: Fetching: Success!
DBUG (10:07:17.730) tick weather v2\weather.ini - [Current]: Parsing data...
ERRO (10:07:17.733) tick weather v2\weather.ini - [Current]: RegExp matching error (-1)
DBUG (10:07:17.736) tick weather v2\weather.ini - [Current]: Parsing data...done!
Code: Select all
{"latitude":51.52,"longitude":-0.24000025,"generationtime_ms":0.21696090698242188,"utc_offset_seconds":0,"timezone":"GMT","timezone_abbreviation":"GMT","elevation":33.0,"current_weather":{"temperature":5.4,"windspeed":7.3,"winddirection":171.0,"weathercode":61,"time":"2023-01-10T07:00"}}
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
--------------------------------------------------------------------------------------------------------------
[Current]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=600
URL=http://api.open-meteo.com/v1/forecast?latitude=51.5287718&longitude=-0.2416807¤t_weather=true
RegExp=(?siU)temperature":"(.*)"
--------------------------------------------------------------------------------------------------------------
[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[Current]
StringIndex=1
--------------------------------------------------------------------------------------------------------------
[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=32
Y=150
FontColor=ffffff
FontSize=17
StringAlign=Center
FontFace=Segoe UI
Antialias=1
Postfix="°C"
[MeterDay]
Meter=STRING
X=32
Y=40
FontColor=255, 255, 255, 220
FontSize=14
StringAlign=Center
FontFace=Segoe UI
Text="Today"
Antialias=1
Rainmeter 4.5.17.3700 (64-bit)
Windows 10 Pro 21H2 (build 19044.2364) 64-bit