Sounds like you have been clever enough to write some code to find and correct those values. Seems like you should be able to take the same logic and adapt it for use as python expressions and use the weewx built-in calibration features.
I wrote a post a while back, which may give you some ideas:
The first post there shows how I used python to test the eval statements, which I later put right into weewx.conf. I did find out that you can't re-use the same weewx variable twice, which is owing to a weewx/python implementation detail in how weewx stores the calibration statements. But there is a workaround mentioned in the second post.
Never mind that I ended up abandoning the idea. What I show there is a sound approach to using a standalone python script to get the expressions working correctly, and then you copy/paste the exact same expressions into weewx.conf calibration section.
Meanwhile, if all else fails, have you tried piping "y" in your script?
$ echo y | whatever_comand_has_a_yn_prompt ...
There is also the "yes" command which just endlessly echo's y's forever:
$ yes |
whatever_comand_has_a_yn_prompt ...Regards,
\Leon
--
Leon Shaner :: Dearborn, Michigan (iPad Pro)