I would use a cheap raspberry pi for such cases.
Your question reminded me yet another useful small device for safe charging, a usb condom like this one https://www.paralelnipolis.cz/en/shop/usb-condom/
Ha, I never heard of such a thing before -- thank you! That solves a different problem I didn't think to ask about :)
reply