I tried to do this with a webpage, but Safari wasn't stable enough on an old iPad. It would crash every few hours. I'd suggest a native app instead, whether you write it or find someone else's.
You could probably do a full page refresh every so often which would fix your memory leak issues: https://developer.mozilla.org/en-US/docs/Web/API/Location/re...