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

Help: Rainmeter Skins • Re: RegExp Index Issues

$
0
0
It's official - RegExp is driving me mad. I cannot get the index to to work when parsing the string, even though RainRegExp says it's fine.

The debug log in Rainmeter never shows the WebParser fetching data for this skin.

The WebParser:

Code:

[MeasurePowerwallStats]Measure=WebParserhttp://internal.site/aggregatesUpdateRate=1RegExp="(?siU)"site".*instant_power": (.*),.*"battery".*instant_power": (.*),.*"load".*instant_power": (.*),.*"solar".*instant_power": (.*),"
The output from the /aggregates URL:
...

RainRegExp outputs 4 string indexes and their values as expected, but the Rainmeter skin displays all zeros as if the indexes aren't functioning.

What am I doing wrong? I'm running out of hair :/
There's nothing wrong with your regexp... your WebParser measure is missing the URL= option in front of the URL, as in URL=http://internal.site/aggregates. If you look at your Rainmeter About screen for the skin, the [MeasurePowerwallStats] measure should be returning a big chunk of JSON, but it's blank, thus the zeroes.

Also, your UpdateRate is really high... once per second? You sure you want that?

Statistics: Posted by SilverAzide — Today, 8:43 pm



Viewing all articles
Browse latest Browse all 1528

Trending Articles