-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Add Enclosure plugin Outputs as configurable actions #1123
Comments
Is there a way to do this (work around) until V3 comes out? |
I don't know of any. I'm not that familiar with Enclosure Plugin. Best guess would be to check whether you can define custom GCodes and just send those from OctoDash. |
Enclosure seems to provide an API to trigger outputs: You can request all current gpio status with
Regular GPIO
OUTPUT_ID is the automatic generated number id from octoprint-enclosure setting It would be great to have a switch available for this. I to actually have a relay connected to my gpios, which switch the power to the printer and led on/off. |
I actually wrote that API for the enclosure plugin (mainly to retrieve the temperatures). Should be fairly easy to achieve, it will just be a dumb toggle though, since the custom actions aren't able to handle states. |
Is your feature request related to a problem? Please describe.
I would like to turn LED on my enclosure ON and OFF with OctoDash. However, I'm not using Neopixel, but 12V LEDs controlled by a relay attached to one of the RPi GPIO pins. That pin is configured in Enclosure plugin as output (http://octopi.local/plugin/enclosure/outputs) like this:
[{"index_id": 1, "label": "LED"}]
Describe the solution you'd like
Include Enclosure outputs as predefine actions (https://github.com/UnchartedBull/OctoDash/wiki/Custom-Actions#predefined-actions)
Thanks!
The text was updated successfully, but these errors were encountered: