I'm enjoying reading this! You've explained the chemistry more simply than most. I'm a little stuck in the programming section--I don't know C with its own peculiar references, or if this is Unix script, and my Unix is 10 years ago--so I recognize "grep" but don't remember much about the command .

I also thought moving the electronics out of the pump bunker was wise.

But I am surprised at your choice of bucket. I would have thought that a blue chlorine carboy, with a modified top and the output line running through it to the bottom of the carboy (sort of like the LiquiMate scheme) would be FAR safer and remove one source of catastrophic failure.

Another easy safety item would be to have the injection be tee'd past a ball valve devoted solely to it. The system could easily isolate out the injection with one turn. That, and a spill catcher could reduce risk enormously.

Since you choose to dilute the solution to reduce all sorts of issues, why not just start with laundry bleach? There you are getting 5.25% to 6% solution which doesn't break down as fast and is far, FAR safer to handle. True 12.5%, as you and PoolDoc have noted, is far more dangerous...

Meanwhile I am enjoying this. I can't WAIT to see if you now have a secure Internet connection so you can check your pool while travelling! For me, some of the issues--like adjusting pH once or twice a week are non-issues--a lot of technology to reduce a little bit of work. But while travelling, the whole situation changes.

But I'll have to read more later--I do need to get to work this morning.