K_cutt08

joined 1 year ago
[–] K_cutt08@alien.top 1 points 11 months ago (1 children)

Use the GPIO of the RPi to fire a relay for a set duration with a timer.

The relay would be wired NC with your router's plug. Once the timer is done, it releases the relay and power is restored to the router.

Make the duration whatever you need to sufficiently let the router be off before plugging it in again. Usually like 30 seconds.

Control the RPi with whatever you want for an input command to fire the relay, then trigger the output.

If you really wanna make this easy, have an electrician wire a light switch to the outlet and make it a switched outlet. Router on, router off, easy as a lamp.