by mattgmg · 11y ago · 0 comments
If anyone else has used motion on a Raspberry Pi, have you have any issues staying connected to wi-fi? I was running motion on my Raspberry Pi, trying to do something similar, and found that within 24 hours the wifi module would disconnect and stay down. I would have to reboot.
Without having motion running, I can stay connected to wifi for weeks at a time with the same pi/router/network. I haven't found a solution for this yet.
#put this in cron daily? #2:10 am sound okay? #10 2 * * *
A better solution might be to check the wifi status periodically and take some action based on the status.
Even better, find out why it is happening and fix that.
Even better-er, add some sort of anti-squirrel weapon.
I will have to try again to figure out why this is happening, there must be an explanation.
PS to OP. You might need to fiddle with /etc/sudoers in order that cron can be allowed to reboot the machine.