{"id":28109965,"url":"https://github.com/tricera-energy/httpcontrol-panel","last_synced_at":"2025-08-17T03:41:52.178Z","repository":{"id":64669844,"uuid":"571649378","full_name":"TRICERA-energy/httpcontrol-panel","owner":"TRICERA-energy","description":"Panel to send HTTP post request to a grafana backend api via buttons, switches, textinput or sliders","archived":false,"fork":false,"pushed_at":"2024-01-30T12:41:19.000Z","size":556,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-14T03:33:04.295Z","etag":null,"topics":["grafana-panel","grafana-plugin","http","post"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TRICERA-energy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-28T15:31:42.000Z","updated_at":"2024-01-12T18:49:50.000Z","dependencies_parsed_at":"2023-02-14T15:46:04.073Z","dependency_job_id":null,"html_url":"https://github.com/TRICERA-energy/httpcontrol-panel","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TRICERA-energy/httpcontrol-panel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TRICERA-energy%2Fhttpcontrol-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TRICERA-energy%2Fhttpcontrol-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TRICERA-energy%2Fhttpcontrol-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TRICERA-energy%2Fhttpcontrol-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TRICERA-energy","download_url":"https://codeload.github.com/TRICERA-energy/httpcontrol-panel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TRICERA-energy%2Fhttpcontrol-panel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803531,"owners_count":24648688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grafana-panel","grafana-plugin","http","post"],"created_at":"2025-05-14T03:20:42.589Z","updated_at":"2025-08-17T03:41:52.157Z","avatar_url":"https://github.com/TRICERA-energy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Control Panel\n\n## Index\n\n- [Description](#description)\n- [Installation](#installation)\n- [Settings](#settings)\n  - [Connection](#connection)\n  - [Groups](#groups)\n  - [Controls](#controls)\n    - [Button](#button)\n    - [Switch](#switch)\n    - [Text Input](#text-input)\n    - [Slider](#slider)\n- [Panel](#panel)\n- [Development](#development)\n\n## Description\n\nThis panel plugin allows to publish data to a grafana backend api.\nIt is possible to define multiple groups with\nmultiple controllers of type [Button](#button), [Switch](#switch),\n[Text Input](#text-input) and [Slider](#slider).\n\n## Installation\n\n- Via the release binary:\n\n  Download the latest [Release](https://github.com/TRICERA-energy/httpcontrol-panel/releases) and unzip it into the grafana plugin folder.\n\n- Build your own binaries:\n\n  You can build the binaries by yourself.\n\n  1.  Clone this repository to your grafana plugin folder.\n  2.  Run `yarn` (Make sure you have nodejs and yarn installed)\n  3.  Run `yarn build`\n\n- Load the plugin directly into a grafana container\n\n  ```\n  docker run -d -p 3000:3000 -e \"GF_INSTALL_PLUGINS=https://github.com/TRICERA-energy/httpcontrol-panel/releases/download/v1.0.0/triceraenergy-httpcontrol-panel-1.0.0.zip;httpcontrol-panel\" --name=grafana grafana/grafana\n  ```\n\n## Settings\n\n### Connection\n\n![](/doc/connection.png)\n\nGrafana backend plugin api is located under\n`api/plugins/\u003cplugin-id\u003e/resources/`\n\n### Groups\n\nA new group can be added via the `Add Group` button.\n\n![](/doc/group.png)\n\n**Note:** You can't reorder the controls currently in the panel or group settings section. Make sure to add the controls in the order you want.\n\n### Controls\n\nA new control can be added via the `Add Control` button. Beside the _Name_, _Color_ and _Publish Topic_ each control type has specific settings.\n\n#### Button\n\nThe button sends the given _Value_ to the given _POST PATH_. For more customization an icon provided by grafana can be selected.\n\n![](/doc/button.png)\n\n#### Switch\n\nThe switch sends the given _Value On_ on true and the given _Value Off_ on false. Switches also listen to the given _API Listen Path_ and read there state from given _Listen Path_. This path should be a valid json path and the value should be boolean convertable.\n\nLet's assume the following message is read from the _API Listen Path_:\n\n```json\n{\n  \"switch\": true,\n  \"array\": [true, false, false, true]\n}\n```\n\nIf the _Listen Path_ is `switch` the state would be true.\nWith a _Listen Path_ of `array[1]` the state would be false.\n\n![](/doc/switch.png)\n\n#### Text Input\n\nText input acts like a [Button](#button) control with the difference that you insert the message directly in the panel instead in the settings. This allows to send different messages via one button.\n\n![](/doc/text-input.png)\n\n#### Slider\n\nWith the slider you can control a number range between _From_ and _To_ value. Like the [Switch](#switch) it listens to the given _API Listen Path_ and read there state from given _Listen Path_. The value should be number convertable.\n\n![](/doc/slider.png)\n\n## Panel\n\n![](/doc/panel.png)\n\nBy default the panel contains one `Error` tab which shows the last 200 errors occuried within the panel.\n\n![](/doc/panel-error.png)\n\n## Development\n\n1. Install dependencies\n\n   ```bash\n   yarn install\n   ```\n\n2. Build plugin in development mode or run in watch mode\n\n   ```bash\n   yarn dev\n\n   # or\n\n   yarn watch\n   ```\n\n3. Build plugin in production mode\n\n   ```bash\n   yarn build\n   ```\n\n4. Run the tests (using Jest)\n\n   ```bash\n   # Runs the tests and watches for changes\n   yarn test\n\n   # Exists after running all the tests\n   yarn lint:ci\n   ```\n\n5. Spin up a Grafana instance and run the plugin inside it (using Docker)\n\n   ```bash\n   yarn server\n   ```\n\n6. Run the E2E tests (using Cypress)\n\n   ```bash\n   # Spin up a Grafana instance first that we tests against\n   yarn server\n\n   # Start the tests\n   yarn e2e\n   ```\n\n7. Run the linter\n\n   ```bash\n   yarn lint\n\n   # or\n\n   yarn lint:fix\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricera-energy%2Fhttpcontrol-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftricera-energy%2Fhttpcontrol-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricera-energy%2Fhttpcontrol-panel/lists"}