Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget help please #1348

Closed
4 tasks done
adm2k opened this issue Oct 17, 2023 · 15 comments
Closed
4 tasks done

Widget help please #1348

adm2k opened this issue Oct 17, 2023 · 15 comments
Labels
✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed 🔨 Fixed 🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@adm2k
Copy link

adm2k commented Oct 17, 2023

Question

Just started using Dashy and seem to have an issue with the pi-hole widget. I have spent several hours researching and can't seem to resolve. I have checked and rechecked the Pi-Hole API and it is correct.

Here is my config:
widgets:
- type: pi-hole-stats
updateInterval: 60
useProxy: true
options:
hostname: ip address of pi-hole servere/admin
apiKey: goes here...

Error message:
image

From console:
image

Any help is very much appreciated!

al...

Category

Setup and Deployment

Please tick the boxes

@adm2k adm2k added the 🤷‍♂️ Question [ISSUE] Further information is requested label Oct 17, 2023
@liss-bot
Copy link
Collaborator

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@adm2k

This comment has been minimized.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 18, 2023
@CrazyWolf13
Copy link
Collaborator

Anyone?

Can you share the specific part or your full dashy config.yml?
Maybe replace things like api keys.
Which pi-hole version are you on? Not the new 6 beta right?

@adm2k
Copy link
Author

adm2k commented Oct 20, 2023

Here is the "pi-hole" part of the config file whuch I shared originally:
widgets:

  • type: pi-hole-stats
    updateInterval: 60
    useProxy: true
    options:
    hostname: xxx.xxx.xx.xx/admin
    apiKey: xxxxxxxxxxxxxxxxxxxx

I have tried replacing the api key:

Pi-hole version 5.17.2

Thanks for your help!

@CrazyWolf13
Copy link
Collaborator

Here is the "pi-hole" part of the config file whuch I shared originally:
widgets:

  • type: pi-hole-stats
    updateInterval: 60
    useProxy: true
    options:
    hostname: xxx.xxx.xx.xx/admin
    apiKey: xxxxxxxxxxxxxxxxxxxx

I have tried replacing the api key:

Pi-hole version 5.17.2

Thanks for your help!

Can you test for me without proxy and then test with the hostname only being http://{ip}:{Port} without /admin, Because uncaught a could be due to the /a...

@adm2k
Copy link
Author

adm2k commented Oct 20, 2023

I removed the /admin and still getting the same original error. Alson removing th /admin lands on the default Lightpd web page.

@adm2k
Copy link
Author

adm2k commented Oct 20, 2023

I removed the proxy as well

also, for reference I tested in Heimdall using the same ip and api key and it works.

@CrazyWolf13

This comment has been minimized.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 21, 2023
@CrazyWolf13
Copy link
Collaborator

Here is the "pi-hole" part of the config file whuch I shared originally:
widgets:

  • type: pi-hole-stats
    updateInterval: 60
    useProxy: true
    options:
    hostname: xxx.xxx.xx.xx/admin
    apiKey: xxxxxxxxxxxxxxxxxxxx

I have tried replacing the api key:

Pi-hole version 5.17.2

Thanks for your help!

Can you try exatly this hostname with http? :

http://{ip}:{port}

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 21, 2023
@adm2k
Copy link
Author

adm2k commented Oct 21, 2023

I don't use a port to access PI-Hole. Just 192.168.86.xx/admin

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 22, 2023
@CrazyWolf13
Copy link
Collaborator

I don't use a port to access PI-Hole. Just 192.168.86.xx/admin

Please share the following as files not just screenshots or pastes:
Your dashy conf.yml
and your dashy log

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 22, 2023
@Lissy93
Copy link
Owner

Lissy93 commented Oct 23, 2023

Because it's getting a 500 for the CORS proxy, I'm wondering if that endpoint isn't working in your instance. Have you tried manually calling the /cors-proxy with PostMan or something, to see if it's actually accessible?

Depending on how you're running Dashy and Pi-Hole, you might not need to proxy the request for Pi-Hole widget (unless you've got a web server or something in front of Pi-Hole).

Can you provide details on your environment, and how are you running Dashy? (like Docker, bare metal, etc?).

Have you checked out the Widget Errors in the Troubleshooting guide?

And just to double-check, the API key you're using is the WEBPASSWORD found in /etc/pihole/setupVars.conf, right?

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 23, 2023
@smetroid
Copy link

smetroid commented Nov 11, 2023

Not sure if it's the same problem I am having, but on my end the widget renders, however, there is no data. Looking at the code I found that the Target-URL does not have the summary and auth variables. I am not sure how they are supposed to be passed to cors-proxy.

Config:

 56   - name: Today
 57     icon: far fa-rocket
 58     widgets:
 59     - type: clock
 60       options:
 61         timeZone: America/********
 62         hideDate: false
 63         use12hour: true
 64     - type: pi-hole-stats
 65       updateInterval: 20
 66       useProxy: true
 67       options:
 68         hostname: http://192.168.***.***
 69         apiKey: ONE_RANDOM_TOKEN

image

Update 1:

It seems the master changes are not part of the 2.1.1 release

https://github.com/Lissy93/dashy/blob/2.1.1/src/components/Widgets/PiHoleStats.vue

Update 2:

Seems to work just fine if widget has the master changes
image

@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Nov 11, 2023
@Crayzei
Copy link

Crayzei commented Jan 21, 2024

I'm having the same problem--is there a resolution for the pi-hole widgets? Thanks.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jan 21, 2024
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 25, 2024
@Lissy93
Copy link
Owner

Lissy93 commented Feb 27, 2024

@Crayzei - yes this is fixed in :latest and there'll be a new tagged version of Dashy released in the coming days.

This issue was caused by a change in the Pi Hole API spec. You'll need both the latest version of Pi-Hole, and the latest version of Dashy.

@CrazyWolf13 CrazyWolf13 added ✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed 🔨 Fixed labels Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed 🔨 Fixed 🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants