26
Living Room / Need hardware (and software) to reset power when internet connection is lost
« on: February 13, 2021, 02:53 PM »
Hi all,
I have a few Raspberry Pis functioning as media servers or whatnot, including running other things (such as self-hosted version control) that require an external internet connection or allow other people connect to my devices remotely. But the problem is that my modem frequently stops communicating with the outside world and the only fix seems to be to reboot it. Otherwise it will happily sit there for hours without an internet connection and never self-recover.
If I'm home when it happens, it's annoying to have the frequent interruptions to streaming Netflix or YouTube or whatever, but it's not a huge ordeal to fix it. I just walk over and pull the power cord and plug it back in. But when I'm not home, which is ostensibly when I really need my internet to be reliable for accessing my files/devices, I obviously can't remotely reboot the modem. So hours go by without an internet connection at home because no one is around to reboot the modem.
What would be nice would be to have a "smart" power switch that could detect the lack of an internet connection, cut and restore power to an external device (the modem) and then wait a few minutes for the modem to finish rebooting before going back into internet connection detection mode and being ready to do it all again if/when necessary.
If something like this already exists and is fairly inexpensive, I'd love to hear about it. Otherwise, I'm thinking it must be possible somehow as a kind of DIY Raspberry Pi project. And as mentioned, I already have a few Raspberry Pis sitting around that I could use if needed.
Does anyone have any tips or suggestions--or even better: links to hardware and/or instructions--on how to get the desired result of rebooting my modem any time it loses its connection to the internet, so I don't have to babysit it all the time or be afraid of leaving my house for extended periods of time?
Thanks!
I have a few Raspberry Pis functioning as media servers or whatnot, including running other things (such as self-hosted version control) that require an external internet connection or allow other people connect to my devices remotely. But the problem is that my modem frequently stops communicating with the outside world and the only fix seems to be to reboot it. Otherwise it will happily sit there for hours without an internet connection and never self-recover.
If I'm home when it happens, it's annoying to have the frequent interruptions to streaming Netflix or YouTube or whatever, but it's not a huge ordeal to fix it. I just walk over and pull the power cord and plug it back in. But when I'm not home, which is ostensibly when I really need my internet to be reliable for accessing my files/devices, I obviously can't remotely reboot the modem. So hours go by without an internet connection at home because no one is around to reboot the modem.
What would be nice would be to have a "smart" power switch that could detect the lack of an internet connection, cut and restore power to an external device (the modem) and then wait a few minutes for the modem to finish rebooting before going back into internet connection detection mode and being ready to do it all again if/when necessary.
If something like this already exists and is fairly inexpensive, I'd love to hear about it. Otherwise, I'm thinking it must be possible somehow as a kind of DIY Raspberry Pi project. And as mentioned, I already have a few Raspberry Pis sitting around that I could use if needed.
Does anyone have any tips or suggestions--or even better: links to hardware and/or instructions--on how to get the desired result of rebooting my modem any time it loses its connection to the internet, so I don't have to babysit it all the time or be afraid of leaving my house for extended periods of time?
Thanks!