More Butterflies

https://www.jeffgeerling.com/blog/2017/raspberry-pi-zero-w-headless-time-lapse-camera
https://github.com/geerlingguy/pi-timelapse

==== Set up pre boot ====
Since the /boot partition is accessible by any computer with an SD card reader, wifi configuration is now much simpler.

A typical wpa_supplicant.conf file is:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=«your_ISO-3166-1_two-letter_country_code»

network={
ssid=”«your_SSID»”
psk=”«your_PSK»”
key_mgmt=WPA-PSK
}

For headless setup, SSH can be enabled by placing a file named ‘ssh’, without any extension, onto the boot partition of the SD card. When the Pi boots, it looks for the ‘ssh’ file; if it is found, SSH is enabled and then the file is deleted. The content of the file doesn’t matter: it could contain either text or nothing at all.

==== first boot ====
sudo raspi-config
interface > Enable camera
7 Advanced Options > expand file system
8 update app

sudo apt-get install -y python-picamera python-yaml git
sudo apt-get update && sudo apt-get upgrade
git clone https://github.com/geerlingguy/pi-timelapse.git

==== config file ====

##################

Basic Settings

##################

Image resolution Set to empty object ({ }) to use default resolution.

resolution: { }

width: 480

height: 270

The number of images to capture.

total_images: 5000

The interval between captures (in seconds).

interval: 250

Whether to create an animated gif after capturing the time-lapse images.

create_gif: False

Whether to create an video after capturing the time-lapse images.

create_video: False

#####################

Advanced settings

#####################

ISO value. 0 = auto, 60-800 for manual ISO.

iso: 0

Shutter speed. 0 = auto, else value in microseconds (seconds * 1000000).

shutter_speed: 0

White balance. Set to empty object ({ }) to use auto white balance.

white_balance: { }

red_gain: 1.3

blue_gain: 1.75

Rotate the images taken by the camera. Possible value are 0, 90, 180 or 270

rotation: 0

Leave a Reply

%d bloggers like this: