-
Raspberry Pi 4
-
BME680 - Temperature, Pressure, Humidity, Gasses
-
SDS011 - Particulates (PM2.5, PM10)
-
LTR-559 - Light, Proximty (optional)
-
SH1106 - OLED Display (optional)
-
Flash Ubuntu 20 LTS 64-bit onto SD card.
-
Re-insert card into machine, edit
system-boot/network-config
file with wifi info. -
touch /Volumes/system-boot/ssh
to enable SSH. -
Eject volume. Plug SD card into Pi and boot.
-
ssh ubuntu@$IP
, (pw:ubuntu
), change password. -
On host machine:
./sync.sh
, on pi:sudo ./setup.sh
(install updates and docker).
# install docker: https://docs.docker.com/get-docker/
# install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# install cross for cross-compilation (requires docker)
cargo install cross
# compile locally, sync to pi, and run
./run.sh