I'm running an Owncloud and Samba server on my Pi, and I would like to know if it is possible to make the Pi shut down during the night. It's not the power, more the noise it makes (I have an 1TB HDD plugged in), the risk of being hacked, and the risk of my Pi or HDD overheats and breaks (It is stored in a medium sized box with currently no ventilation, but I will soon fix that)
So is there any way to make it shut down automatically? I've thought about making an Python script, but I don't know if it'll work the way I want it to.
If you have any good ideas, then you are welcome to tell me about them, the only demands i have, is that it has to shutdown at 22:00 on Sunday, Monday, Tuesday, Wednesday, Thursday, and on Friday and Saturday it has to shut down at 01:00 in the night.
Thanks in advance