What @brad5 said. However, you don't need to install an app to reboot. You can also do it via Rule Machine, and set the trigger to be the time of your choice.
For the action, simply send an HTTP POST to:
http://127.0.0.1:8080/hub/reboot
Just to emphasize, that has to be an HTTP POST (and not the more common HTTP GET).