Skip to content
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 NeoPixel Illumination plugin #1073

Closed
wants to merge 2 commits into from

Conversation

brettvitaz
Copy link

Use NeoPixel Illumination to control NeoPixels from the OctoPrint interface using the Raspberry Pi's GPIO. Parses GCODE M150 commands for automated control while printing.

@jneilliii
Copy link
Contributor

@cp2004 would you mind reviewing this plugin for me? figured you'd have the best experience with it...

@cp2004 cp2004 self-assigned this Jun 2, 2022
Copy link
Member

@cp2004 cp2004 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that the 'sudo' password should be stored by the plugin, and definitely not exposed in the settings API either. It's a basic security issue, as it allows anyone with access to the OctoPrint UI access to also login to the server.

There's a few assumptions used that while they may work well for your installation, it might explode on other configurations - I've attempted to point out as many of them used as I have spotted, but do go through and have a look - hardcoded paths will almost never work.


It may seem like we're picky, but it is mostly correcting the assumptions so that people don't come complaining when things go wrong!

It is possible to run WS281x type LEDs without root permissions, using the SPI pins. That's how my plugin WS281x LED Status does things. I've spent a long time working with these kinds of LEDs and OctoPrint, so if you have any questions do let me know and we can get stuff sorted.

_plugins/neopixel_illumination.md Outdated Show resolved Hide resolved
_plugins/neopixel_illumination.md Outdated Show resolved Hide resolved
_plugins/neopixel_illumination.md Outdated Show resolved Hide resolved
@cp2004
Copy link
Member

cp2004 commented Jun 3, 2022

And finally, a preview of what it will look like https://cp2004-plugins-octoprint-org-git-pr-1073-cp2004.vercel.app/plugins/neopixel_illumination/

@brettvitaz
Copy link
Author

Thank you for that thorough code review. I will start looking into these items, and will review the documentation you have created for your own plugin.

Regarding the SPI pins, one of my Raspberry Pi's SPI pins are non-functional and I did not want to limit users when other options were open. I'm not sure what do to about that, and it is one of the reasons for all of the extra work to create the remote service for controlling the neopixels. Maybe I'll just have to come back to that when a better solution presents itself.

- remove unsupported OS
- add borders to table
@foosel foosel assigned foosel and brettvitaz and unassigned cp2004 and foosel Jun 21, 2022
@kantlivelong
Copy link
Contributor

Stale - Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants