Author: Rick

Ways to support STFUandFish!

No Comments

I’m getting asked often enough now, it warrants a post. There’s several ways you can support STFUandFish. Both are located on the homepage in the right hand column.


“Buy me a coffee” is a single simple donation system via PayPal.
“LiberaPay” is a single or continuing donation system along the lines of Patreon, but without all the fluff.

Funds generated through these methods cover simple things like gas and (you guessed it) coffee. Any money generated this way goes to cover the ancillaries of creating the episodes and running the website.

Thanks for all your support!

From the Bench… EP61a – 8266, 32 and other numbers – NOTES

No Comments

Here’s the Python code for the time-lapse mentioned in the episode. Make sure to check your paths! Ensure you’re pointing to your correct capture directory and that the directory exists (I saved this as Desktop/timelapse).:

                    

import time

import picamera

 

VIDEO_DAYS = 1

FRAMES_PER_HOUR = 60

FRAMES = FRAMES_PER_HOUR * 24 * VIDEO_DAYS

 

def capture_frame(frame):

    with picamera.PiCamera() as cam:

        time.sleep(2)

        cam.capture('/home/pi/Desktop/timelapse/frame%03d.jpg' % frame)

 

# Capture the images

for frame in range(FRAMES):

    # Note the time before the capture

    start = time.time()

    capture_frame(frame)

    # Wait for the next capture. Note that we take into

    # account the length of time it took to capture the

    # image when calculating the delay

    time.sleep(

        int(60 * 60 / FRAMES_PER_HOUR) - (time.time() - start)

)