Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xunleii/octoprint-psucontrol-webhooks
https://github.com/xunleii/octoprint-psucontrol-webhooks
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xunleii/octoprint-psucontrol-webhooks
- Owner: xunleii
- License: agpl-3.0
- Created: 2021-05-30T16:59:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-12T17:30:32.000Z (over 3 years ago)
- Last Synced: 2024-10-27T07:50:24.082Z (2 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OctoPrint PSU Control - Webhooks
Adds webhooks/API request support to OctoPrint-PSUControl as a sub-plugin.## Setup
- Install the plugin using Plugin Manager from Settings
- Configure this plugin
- Select this plugin as a Switching and/or Sensing method in [PSU Control](https://github.com/kantlivelong/OctoPrint-PSUControl)> **NOTE:** script Python can be written in order to manage the API response. You just
> need to setup `psu_state` with `on` or `off` (the response is stored in `response`).
>
> For example :
> ```python
> # the API responds with this JSON `{"psu_is_on?": true}`
> psu_state = 'on' if response.json()['psu_is_on?'] else 'off'
> ```## Support
Help can be found at the [OctoPrint Community Forums](https://community.octoprint.org)## Credits
This repository is mainly based on the [OctoPrint-PSUControl - TPLink](https://github.com/kantlivelong/OctoPrint-PSUControl-TPLink) plugin.