OctoPi

Configure Wi-Fi

Run raspi-config which will create/update /etc/wpa_supplicant/wpa_supplicant.conf.

Then create /etc/network/interfaces.d/wlan0

auto wlan0
iface wlan0 inet dhcp
  up iwconfig wlan0 power off  # Disable power saving, so it stays on. Confusing, right?