I've been finding recently that I've have to routinely reboot my Huawei B315 fixed wireless modem/router, in order to get any reasonable performance out of it. By routinely I mean every 1-2 days.
Anyway, I got tired of doing it manually via a web browser, so I wrote a PhantomJS script to automate the reboot. The script logs onto the web UI, and clicks through the reboot process.
PhantomJS itself doesn't require much in the way of external dependencies, and runs headless in a CLI. Given that, it can be scheduled to run in a cron job every night, or whatever.
I'm sharing it here in case anyone else wants an example (my JS is pretty rough btw, not my preferred scripting language):
Feel free to get in touch if you have any questions :-)