If you like to tinker it sounds like a fun project.
Regulating the output is the biggest hurdle,
At the bare minimum, you need a sensor to monitor your levels
Something off the shelf or DIY
I use a tank, so it's trivial to open the solenoid based from the RPI based on CO2 levels;, regulating a cooler of dry ice is a bit more involved
View attachment 5219452