cloudspout / cloudspout-button-panel

Grafana panel to integrate with any kind of HTTP/REST API
MIT License
50 stars 35 forks source link

Rest integration now showing #23

Closed Wailshire closed 3 years ago

Wailshire commented 3 years ago

Hello, i installed multiple times the button to do post request, but today i installed it, and there is no option for the rest integration, the button shows in the dashboard, but i dont have any options to edit it, i cant even change the text. is there a new update or im missing something? Thanks !

Wailshire commented 3 years ago

nevermind, i used the link provided by grafana to install the plugin, but now i used the one for this repository and worked perfectly, i think the grafana link is outdated

JnMik commented 3 years ago

Thanks, so we just need to install it from the git clone command in the proper folder and run the yarn commands, right ? I'll test that

derjust commented 3 years ago

@Wailshire Yes the new version is pending addition to Grafana. Using the Grafana CLI to install the new version directly works to get the new version:

grafana-cli --pluginUrl https://github.com/cloudspout/cloudspout-button-panel/releases/download/7.0.5/cloudspout-button-panel.zip \
  plugins install cloudspout-button-panel
JnMik commented 3 years ago

Yep I got it working, thanks guys :)

So I managed to control a digital output (let's say it could be a light), be creating 2 buttons to control it, and one stats panels to show its state.

ss1

Imagine if your button could have a "GET" separate http call to fetch its status and choose a color according to the response, all of this could be merge in 1 button :P

Just an idea, in case it could touch your heart @derjust :D lol !

Thanks guys

derjust commented 3 years ago

@JnMik Yes you can also use

git clone

But probably the Grafana CLI is easier to use

grafana-cli --pluginUrl https://github.com/cloudspout/cloudspout-button-panel/releases/download/7.0.5/cloudspout-button-panel.zip \
  plugins install cloudspout-button-panel

or the following ENV variable (works also for Grafana-in-Docker): GF_INSTALL_PLUGINS=https://github.com/cloudspout/cloudspout-button-panel/releases/download/7.0.5/cloudspout-button-panel.zip;cloudspout-button-panel

derjust commented 3 years ago

Imagine if your button could have a "GET" separate http call to fetch its status and choose a color according to the response, all of this could be merge in 1 button :P

I will think about it - but this combo of 3 items is what I have, too (Note: Turning the panel of the button transparent makes them look a bit nicer):

Screen Shot 2020-10-25 at 11 03 13 PM