[BUG] pi-hole widget does not display data from API #1628
Labels
🐛 Bug
[ISSUE] Ticket describing something that isn't working
🕸️ Inactive
🛑 No Response
[ISSUE] Response was requested, but has not been provided
Environment
Self-Hosted (Bare Metal)
System
Firefox 126.0.2 and Chromium Version 126.0.6478.114
Version
3.1.1
Describe the problem
Dashy displays the widget correctly but unpopulated with data except for Active Clients field which shows "Undefined/Undefined".
Additional info
I set up the pi-hole-stats widget as follows:
I have created a proxy server for the pihole server which adds the header Access-Control-Allow-Origin: * and I can verify that this is set in the response:
The pihole server returns this JSON:
{"domains_being_blocked":"161,604","dns_queries_today":"48,829","ads_blocked_today":"10,490","ads_percentage_today":"21.5","unique_domains":"4,020","queries_forwarded":"30,186","queries_cached":"7,323","clients_ever_seen":"16","unique_clients":"16","dns_queries_all_types":"48,829","reply_UNKNOWN":"965","reply_NODATA":"6,344","reply_NXDOMAIN":"815","reply_CNAME":"11,853","reply_IP":"26,375","reply_DOMAIN":"301","reply_RRNAME":"138","reply_SERVFAIL":"1,894","reply_REFUSED":"0","reply_NOTIMP":"0","reply_OTHER":"0","reply_DNSSEC":"6","reply_NONE":"0","reply_BLOB":"138","dns_queries_all_replies":"48,829","privacy_level":"0","status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1719476443,"relative":{"days":0,"hours":1,"minutes":0}}}
I do not see errors in the browser console.
Please tick the boxes
The text was updated successfully, but these errors were encountered: