Page 3 of 20

Random Router Fix

Recently, I have seen an issue where my router is losing its internet connection for an extended period. The way that I have noticed to fix this is to reboot the router by unplugging it from the wall. If I don’t do that, it can take forever to come back on its own. Other than this issue, I can’t complain about the service with U-Verse. From the speed test below, you can see that it is pretty fast.

To get around the random router hangs, I put an SSR that I have lying around to use. I have these from a Christmas light project that I was working on, and they were pretty cheap and easy to build. They are DirkCheapSSRs. I remembered that I could trigger them from my Raspberry Pi that is already running on the network. The Raspberry Pi runs PiHole, and it is already sitting next to the router. I wrote a small python script to trigger the GPIO pins on the Raspberry Pi based on certain conditions. Essentially, the Pi cycles the power on the router based on it being able to ping, and it checks for the ping every five seconds. If the ping fails, it waits ten minutes before it starts the check again.

from __future__ import print_function 
import RPi.GPIO as GPIO, time, os 
log = open("/home/pi/reboot/logs/reboot.log","a") 
GPIO.setup(18, GPIO.OUT)
  while True: 
    if os.system("ping -c 1") != 0: 
      print('Ping failed. The router is being rebooted.', file = log) 
      GPIO.output(18,GPIO.HIGH) time.sleep(5) 

except KeyboardInterrupt: 
  print('Program quit.', file = log)

Here is a picture of the Raspberry Pi and the SSR in the closet. I could technically control all four outputs on the SSR, but I am only using one at the moment. I had to change my Pi’s case some because it didn’t have access to the GPIO pins.

The cheapest way that I could find to do this when searching was around $100. From what I remember, the DirkCheapSSR cost me around $7 with the case.

Downtown Dallas Photo

For my birthday, I was given a DJI Phantom 3 Drone. It has a pretty great camera, and I have always loved skyline photos. I took this one right outside the back of my apartment, and I uploaded it to Google Photos. When I looked today, Google had done something pretty cool to it, and I thought that I would share it here.

The original is below. The red light that you see on the left side is from the LEDs that help you orient the direction of the drone while flying. I have turned these front ones off lately.

Your brand is what people say about you when you are not in the room.

–Jeff Bezos

Colorado Pictures

Over the Summer, I was able to take a trip to Colorado. We were in the Aspen and Basalt area. Here are some of the pictures that I took of the scenic views. It was a great trip, and it was probably the most beautiful place that I have ever visited. While I love seeing oceans, I would rather be in the mountains.

Creek View

Creek View

Hike View

Hike View



Lake View

Lake View

One of the red rocks at Red Rocks Ampitheater

One of the red rocks at Red Rocks Amphitheater

Most large U.S. corporations are run like the Soviet Union economy … with their emphasis on central plans and the details which spell out expectations for managers’ actions, … a remarkable effective way of killing creativity and entrepreneurship.

–Kiichiro Ohmae