Replace manual potentiometer with a digital one

I don't have many informations about the circuit, I'm trying to replace the dimmer from this power supply