Only One thing i can think of is this
Arduino ore another microcontroller.
Some relays
Dosing pump/s
Ec meter
EC shield
And some programming skills
Everything is possible.if you know how to..
I build a ph controller for my hydro res..with similar Setup.