OctoPrint-WS281x_LED_Status icon indicating copy to clipboard operation
OctoPrint-WS281x_LED_Status copied to clipboard

[Feature Request] Multiple Strip type

Open ShagoY opened this issue 3 years ago • 6 comments

Hi :)

After seeing pictures of your plugin with strip leds (I have a neopixel Ring), I feel like adding a strip in my configuration just for the effects :-D

Currently my neopixel is around my camera and it allows me to light up my printing during the night (And during my snapshoots). So I'd like to continue using it with your plugin but I'd like to add another strip for the progression/heating/cooling/etc. effects...

So I miss the possibility to add several led configuration.

I guess it must be a huge development work but I was wondering if it was in your "todo" ?

Thanks again !

ShagoY avatar Nov 24 '20 14:11 ShagoY

Due to a hardware limitation of the Raspberry Pi, you can't connect more than one LED Strip in a way that works with OctoPrint.

You can chain WS281x LEDs together, so you connect them in a row. Using some clever cabling you might be able to connect the two together. However the plugin will just recognise this as a single strip, so that's not a great solution. This part would be the massive development work, to allow users to define different segments to do different things.

Maybe I will consider it at some point, but given I already have quite a lengthy TODO list (this is not my only plugin, and real life as well) its not on there for the moment.

Before then however, I am in progress working on a plugin to connect to WLED that could support multiple strips, so this may become the preference for this feature and I won't add it to this plugin.

No for now, but note that this decision may be revisited in the future.

cp2004 avatar Nov 24 '20 14:11 cp2004

I don't know how Octoprint works, I just assumed it was only related to pin GPIOs.

So if I understand even if I integrate another plugin (like Enclosure) to manage another strip on another pin GPIO, it wouldn't work?

ShagoY avatar Nov 24 '20 15:11 ShagoY

Enclosure is a special case, since it gets the user to do some additional install steps and is very limited in it's control functionality.

It uses sudo to run external scripts that run the LEDs for it. Whilst this works, it is very limited in functionality as it is effectively 'disconnected' from the enclosure plugin once it is run. iirc this method only supports two different pins, unsure if they can both be used at the same time.

This plugin uses the SPI interface of the Raspberry Pi, which doesn't require root to run so it can be used directly inside OctoPrint no problems. Issue with this, is the Pi only has one SPI pin - so you can only have one strip.

cp2004 avatar Nov 24 '20 15:11 cp2004

One thing i can think of... would kinda be a chore programming... Is to set up a way where the first 12 pixels is one configuration (lights around the camera) and then the next 8 pixels would be the status pixels

PlzDontKillDave avatar Feb 08 '21 04:02 PlzDontKillDave

@PlzDontKillDave - you're right it would be a lot of work. I do have ideas, to setup segment control like WLED has but there's a massive amount of work stacked up in the pile before anything like this could come about.

cp2004 avatar Feb 08 '21 13:02 cp2004

Would it be possible add a configuration menu where you could specify a gcode command that could be run when torch is turned on? This could then possibly be mapped to activate a pin on the controller to toggle white lights on/off?

lanman1 avatar Jun 30 '21 12:06 lanman1