I found that the first one only partly fixed the issue. I found a better solution.
Install https://play.google.com/store/apps/details?id=com.blasterbyte.burn_infix

Set for an hour each night. It says to run for eight hours, but for me an hour seems to do the trick.