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

Webparsing and Json file "RefExp Matching" error

$
0
0
Hi,
I'm having a little nightmare with webparsing trying to get my Pihole stats, i can capture all json file with

Code:

RegExp=(?siU)^(.*)$
but child measure won't extract index in this way and it will read all file as the parent, so i tried RegExp and for some reason i can't get it to work it give me and Error "RefExp Matching", this is my test code:

Code:

[msPiholeAPI]        Measure=WebParser        URL=http://192.168.100.11/admin/api.php        RegExp=(?siU)"domains_being_blocked":"(.*)".*"dns_queries_today":"(.*)"        UpdateDivider=600                [msGet1]        Measure=WebParser        URL=[msPiholeAPI]        StringIndex=1
Json page:

Code:

{"domains_being_blocked":"911,582","dns_queries_today":"36,074","ads_blocked_today":"6,962","ads_percentage_today":"19.3","unique_domains":"8,339","queries_forwarded":"21,903","queries_cached":"7,104","clients_ever_seen":"22","unique_clients":"12","dns_queries_all_types":"36,074","reply_UNKNOWN":"2,872","reply_NODATA":"2,355","reply_NXDOMAIN":"3,146","reply_CNAME":"12,087","reply_IP":"14,985","reply_DOMAIN":"131","reply_RRNAME":"8","reply_SERVFAIL":"0","reply_REFUSED":"0","reply_NOTIMP":"0","reply_OTHER":"0","reply_DNSSEC":"65","reply_NONE":"0","reply_BLOB":"425","dns_queries_all_replies":"36,074","privacy_level":"0","status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1733717412,"relative":{"days":0,"hours":7,"minutes":1}}}
can someone please give a little help ? :(
thank you

Statistics: Posted by develo — Yesterday, 5:34 pm — Replies 4 — Views 65



Viewing all articles
Browse latest Browse all 482

Trending Articles