Donkie / Spoolman

Keep track of your inventory of 3D-printer filament spools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filament changes triggering Spool changes

bofh69 opened this issue · comments

Is your feature request related to a problem? Please describe.

My client uses websockets to monitor spool changes. The payload contains the spool info, but also filament & manufacturer info.
My program uses those updates to update the slicer's filament configuration.

This works well, but I don't get updates to the spools when the filament or manufacturer info is updated. Therefore I also need to have a websocket for those, and I have to store the spools' data in memory so I can update the right spools when a filament or manufacturer is changed.

Describe the solution you'd like
It would be nice if it was possible to subscribe in such a way that I would get updates to all the spools using a filament/manufacturer when that is updated.

Describe alternatives you've considered
Just subscribing to all three data types, add an in memory model and update it there. It makes the program slightly more complicated though.

Additional context