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

Help: Rainmeter Skins • Re: Webparsing and Json file "RefExp Matching" error

$
0
0
Thanks @balala , after few testing i noticed something different between the two ".json" files from yesterday:

from xxx/admin/api.php (which won't work and give error: "RegExp matching error (-1)")

Code:

{"domains_being_blocked":911582,"dns_queries_today":28479,"ads_blocked_today":3772,"ads_percentage_today":13.244847,"unique_domains":8707,"queries_forwarded":18472,"queries_cached":6176,"clients_ever_seen":22,"unique_clients":10,"dns_queries_all_types":28479,"reply_UNKNOWN":2344,"reply_NODATA":2395,"reply_NXDOMAIN":3079,"reply_CNAME":9569,"reply_IP":10501,"reply_DOMAIN":129,"reply_RRNAME":11,"reply_SERVFAIL":0,"reply_REFUSED":0,"reply_NOTIMP":0,"reply_OTHER":0,"reply_DNSSEC":11,"reply_NONE":0,"reply_BLOB":440,"dns_queries_all_replies":28479,"privacy_level":0,"status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1733717412,"relative":{"days":1,"hours":7,"minutes":7}}} 
from xxx/admin/api.php?summary (this one work) which is the same link i pulled .json file while making this post yesterday but i didn't bother to test it :D (my bad):

Code:

{"domains_being_blocked":"911,582","dns_queries_today":"28,260","ads_blocked_today":"3,749","ads_percentage_today":"13.3","unique_domains":"8,708","queries_forwarded":"18,311","queries_cached":"6,141","clients_ever_seen":"22","unique_clients":"10","dns_queries_all_types":"28,260","reply_UNKNOWN":"2,312","reply_NODATA":"2,386","reply_NXDOMAIN":"3,067","reply_CNAME":"9,457","reply_IP":"10,452","reply_DOMAIN":"129","reply_RRNAME":"11","reply_SERVFAIL":"0","reply_REFUSED":"0","reply_NOTIMP":"0","reply_OTHER":"0","reply_DNSSEC":"11","reply_NONE":"0","reply_BLOB":"435","dns_queries_all_replies":"28,260","privacy_level":"0","status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1733717412,"relative":{"days":1,"hours":7,"minutes":8}}}
Pihole API documentation (old 2017)
https://discourse.pi-hole.net/t/pi-hole-api/1863
summaryRaw

Gives statistics in raw format (no number formatting applied)
No authorization necessary
summary (default if no parameters are given)

Gives statistics in formatted style
No authorization necessary
thank you all again for the help :thumbup:

Statistics: Posted by develo — Today, 11:56 am



Viewing all articles
Browse latest Browse all 1507

Trending Articles