Skip to content

Latest commit

 

History

History
executable file
·
40 lines (25 loc) · 2.08 KB

README.md

File metadata and controls

executable file
·
40 lines (25 loc) · 2.08 KB

Intro

The code on in this repository is intended to be installed on 2 devices.

  1. An Arduino Uno with the /arduino/sensor_node_vXX.XX flashed to it with the sensors attached correctly.

  2. On a freshly flashed image of Raspi OS Lite on a Pi Zero:

https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2020-12-04/2020-12-02-raspios-buster-armhf-lite.zip
or
https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2020-12-04/2020-12-02-raspios-buster-armhf-lite.zip.torrent

Once you have this disk image flashed to a microSD card, before removing it to boot the Pi Zero, please copy both the /ssh and /wpa_supplicant.conf to the boot partition of the SD card. Open the /boot/wpa_supplicant.conf file you just copied to the card, and edit lines 5 & 8 with the correct network name and corresponding password.

ssid="NETWORK_SSID"

psk="NETWORK_PASSWORD"

Install OC-RAE on the Pi Zero over SSH

SSH into the Raspberry Pi Zero with the default pi user and raspberry password. Once logged in change your password by entering passwd and replace it with your own.

Enter the following to update the Pi Zero, install git, clone this repository to the Pi Zero, and then begin the installation process. It will take some time to complete regardless of your internet connection due to the processing limitations of the Pi Zero:

sudo apt update
sudo apt upgrade
sudo apt install git python3-venv postgresql python3-pip samba
cd ~/
git clone https://github.com/AustinFoss/oc-rae.git
sudo oc-rae/install.sh

Wait for the reboot after the last command completes and for the LCD display connected to the Arduino to print the IP address of the Pi Zero. The LCD display will blink several times during the reboot before printing the IP address.

Users

By default you have 3 users:

  1. The system pi user with your defined password
  2. PostgresQL pi user with a default password of oldsCollege

If you change the PotgreSQL user password it must also be changed anywhere it is used in the Python scripts folder.