Can't print webparser value
Posted: May 14th, 2020, 7:58 am
Hello,
i'm writing a very simple weather skin but can't print on screen any value I get from webparser.
I'm retrieving the data from:
http://api.openweathermap.org/data/2.5/weather?id=3110044&mode=xml&appid=aaf61c6d02e79b07215a7f91adcb3e76
I'm running this code for try if I can extract the TIMEZONE from the XML and print it on screen (later, I need to parse the icon code on the xml, but if I can't out this to work...)
But nothing appears.
WebParserDump is correctly loaded, I've tried RainRegExp and the output is correct (it must be 7200), and the WebParserTest skin has all lights green.
I don't know what happens.
Somebody can help? Please?
i'm writing a very simple weather skin but can't print on screen any value I get from webparser.
I'm retrieving the data from:
http://api.openweathermap.org/data/2.5/weather?id=3110044&mode=xml&appid=aaf61c6d02e79b07215a7f91adcb3e76
I'm running this code for try if I can extract the TIMEZONE from the XML and print it on screen (later, I need to parse the icon code on the xml, but if I can't out this to work...)
Code: Select all
[Rainmeter]
Update=1000
[Variables]
LocationID=3110044
[MeasureParent]
Measure=WebParser
URL=http://api.openweathermap.org/data/2.5/weather?id=#LocationID#&mode=xml&appid=aaf61c6d02e79b07215a7f91adcb3e76
RegExp=(?siU)<timezone>(.*)</timezone>
Debug=2
[MeasureChild1]
Measure=WebParser
URL=[MeasureParent]
StringIndex=1
[MeterChild1]
Meter=string
measurename=MeasureChild1
FontSize=100
WebParserDump is correctly loaded, I've tried RainRegExp and the output is correct (it must be 7200), and the WebParserTest skin has all lights green.
I don't know what happens.
Somebody can help? Please?