I own many Raspberry Pi’s and for some reason the PiAware Pi seems to have the most trouble. I even replaced the hardware thinking the hardware was dying on me, but I’m getting the same results on a B+ model.
The only thing I can think of is dump1090 (or something with the FA code) causes the Pi to run out of memory after a while of usage. I think my max uninterrupted FA feed time is 2 weeks, after that I get a notice that my feeder is offline, but when I check on my Pi, it’s online and connected to the internet. Running “sudo service dump1090 restart” and “sudo service piaware restart” works to get it online, but I don’t want to have to do that every few days when I get a notice.
I’ve found that nightly reboots help keep my FA feeds going strong since it resets everything automatically.
Here’s how I set it up in case someone else wants to set it up:
1. Log in as the Pi user 2. Run: sudo crontab -u root -e 3. At the very end, paste in: 0 0 * * * /sbin/shutdown -r now 4. CTRL+O to save, and CTRL+X to quit
That’s it! There’s a few other ways to make it reboot at night (for example, using @daily instead of 0 0 * * *, and /sbin/reboot instead of /sbin/shutdown), but what I have posted above is what is working for me.
Hope this helps anyone looking to do the same thing.