johnholbrook / streamdeck-pihole

Streamdeck plugin for monitoring & controlling Pi-hole
https://apps.elgato.com/plugins/us.johnholbrook.pihole
32 stars 5 forks source link

Silly question: how to input multiple IPs/APIs #4

Closed Greenysmac closed 2 years ago

Greenysmac commented 2 years ago

I'm a hack.

I have this installed - works great for one of my Pi; but I have two - and I clearly don't have the configured correctly in the plugin. Advice on how to get both working?

Thanks.

johnholbrook commented 2 years ago

Hmm... so this is not something I was able to easily test myself, but looking through the code, I think it should work just fine if you set the address of the Pi-hole instance you want to control in the property inspector (settings area) for each individual action.

What have you put in the "address" field for each action?

Are you able to reach each Pi-hole instance from a web browser via the same computer?

Greenysmac commented 2 years ago

Nothing as frustrating as forgetting to hit "comment". Sigh.

Hmm... so this is not something I was able to easily test myself, but looking through the code, I think it should work just fine if you set the address of the Pi-hole instance you want to control in the property inspector (settings area) for each individual action.

I've put it both in there.

My two piholes have the same API key;

What have you put in the "address" field for each action?

10.0.1.200 and 10.0.1.201

I've tried a space, a comma and a semicolon

Are you able to reach each Pi-hole instance from a web browser via the same computer?

100% I even have ways to toggle via a browser or an application - just love the idea of this via a streamdeck.

Happy to send you a screen shot/recording of anything that would be helpful

johnholbrook commented 2 years ago

My two piholes have the same API key;

I've tried a space, a comma and a semicolon

Are you trying to configure a single action on the stream deck to toggle both of your pi-hole instances with a single button press? If so, that configuration is not directly supported. What you could do is either:

  1. Configure two separate actions (on two separate keys), each action configured to toggle one of your pi-hole instances, or
  2. Set up a "multi action" in the stream deck software, within which you could set up two different actions, one configured for each of your pi-hole instances. Setting up a multi-action would give you the ability to toggle both instances with a single keypress, but you wouldn't be able to see whether each instance is enabled or disabled from the stream deck.
Greenysmac commented 2 years ago

Ahh. Got it. Somehow through your documentation I thought I could control two piholes with one streamdeck

Configure two separate actions (on two separate keys), each action configured to toggle one of your pi-hole instances, or

That's what I've done.

Set up a "multi action" in the stream deck software, within which you could set up two different actions, one configured for each of your pi-hole instances. Setting up a multi-action would give you the ability to toggle both instances with a single keypress, but you wouldn't be able to see whether each instance is enabled or disabled from the stream deck.

I'd done that too - but lose your cool display. Thanks so much for your time!