Page 1 of 1

Is there a way to make my Raspberry Pi shutdown at night?

Posted: Wed Mar 26, 2014 7:37 pm
by cnovrup
Hi!
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 :)

Re: Is there a way to make my Raspberry Pi shutdown at night

Posted: Wed Mar 26, 2014 7:41 pm
by FLYFISH TECHNOLOGIES
Hi,
cnovrup wrote:the only demands i have, is that it has to shutdown at 22:00 on Sunday,...
This is a task for cron.
(Eg. http://www.wexoo.net/20130406/running-c ... in-raspbmc).


Best wishes, Ivan Zilic.

Re: Is there a way to make my Raspberry Pi shutdown at night

Posted: Wed Mar 26, 2014 8:51 pm
by totoharibo
>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)
+1 to FLYFISH TECHNOLOGIES

Not to be hacked put the link (eth0 or wlan0) down with cron and up through the same way.

For your HDD have a look on hdparm. You can stop/start it.
IMHO low consumption of RPi makes it not necessary to switch off.

And if you switch RPi off and on ou need extra hardware.

Re: Is there a way to make my Raspberry Pi shutdown at night

Posted: Wed Mar 26, 2014 9:25 pm
by GTR2Fan
There is a school of thought that keeping electronic equipment (especially where BGA-mounted devices are involved) at a relatively constant temperature can lead to better reliability than repeatedly heat-cycling it. Taking this into account along with the fact that the Pi and 3.5" USB hard drive in my sig only take around 8W when idle, I leave it on 24/7 whether I'm using it or not at a running cost of around £2UK per quarterly billing period.

Each to their own though. :)