cnovrup
Posts: 9
Joined: Mon Dec 30, 2013 10:05 pm

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

Wed Mar 26, 2014 7:37 pm

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 :)

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

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

Wed Mar 26, 2014 7:41 pm

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.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

totoharibo
Posts: 4446
Joined: Thu Jan 24, 2013 8:43 am

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

Wed Mar 26, 2014 8:51 pm

>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.

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

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

Wed Mar 26, 2014 9:25 pm

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. :)
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

Return to “General discussion”