Hacker News new | ask | show | jobs
by mattgmg 4100 days ago
Awesome work, that squirrel looks happy!

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.

1 comments

#!/bin/bash sudo reboot

#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 actually started down the path of getting making cron restart the wlan interface every 24 hours but I ran into some issues and gave up on it. I suppose rebooting the whole machine would also work :) May do that as a short term fix.

I will have to try again to figure out why this is happening, there must be an explanation.

I was almost embarrassed to post that simple minded solution. So thanks for posting that one. I am prone to forget that sometimes, stupidly simple is best.

PS to OP. You might need to fiddle with /etc/sudoers in order that cron can be allowed to reboot the machine.

Haha, so relevant.