Go to advanced search

by Florian33
Wed Jul 13, 2016 3:05 pm
Forum: Beginners
Topic: Reboot a Rpie
Replies: 3
Views: 713

Re: Reboot a Rpie

Do you have a preferred language that you'd like to use? If you do, I'd ask this question in the subfora for that particular language. As to the general question, sure it's possible and not that hard to do. How much error handling and defensive programming you'd like to do depends of course on your...
by Florian33
Tue Jul 12, 2016 9:34 pm
Forum: Beginners
Topic: Reboot a Rpie
Replies: 3
Views: 713

Reboot a Rpie

Hello, I want to send a ping every 5 minutes from a local server to my Rpie. If the ping is ok then the Rpie continues its normal activities, if no it shutdown all the commands in progress and reboots. I was thinking using a shell script. What do you think of my code below ? Is it correct ? test =1;...
by Florian33
Thu Jul 07, 2016 2:01 pm
Forum: Beginners
Topic: Reboot Raspberry Pi when no outside communication
Replies: 4
Views: 736

Re: Reboot Raspberry Pi when no outside communication

Reasonably easy solution: make a program that does the following: - download a website (like Google's homepage) to check for an internet connection (maybe to ram mounted storage to save the SD card a bit) - if the connection isn't working, rebooth the wifi (sudo ifdown wlan0 && sudo ifupwlan0), wai...
by Florian33
Thu Jul 07, 2016 1:18 am
Forum: Beginners
Topic: Reboot Raspberry Pi when no outside communication
Replies: 4
Views: 736

Reboot Raspberry Pi when no outside communication

Hello everyone, To introduce the context, I'm really new to Rpie. I've got a system with many blocks (camera module, T-mobile wireless ...) and a raspberry Pie at the center. What I want to do is to check the good communication in my system between the Rpie and the other elements. If something goes ...

Go to advanced search