From 666d2973eb3561d872b86f615abd45f8af53cdd1 Mon Sep 17 00:00:00 2001 From: Hagen Fritz <33231914+HagenFritz@users.noreply.github.com> Date: Mon, 21 Feb 2022 08:16:03 -0600 Subject: [PATCH] formatted code blocks --- README.md | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d02d478..0f2045a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ This document details the basics of the Building EnVironment and Occupancy (BEVO Make sure your RPi is connected to WiFi. Then install git with -`$ sudo apt install git` +```bash +sudo apt install git +``` Clone this repository and `cd` into the newly created bevo `bevo_iaq` directory. Edit the `rpi_install.sh` file to include the correct GitHub credentials and set your timezone. @@ -19,7 +21,9 @@ Clone this repository and `cd` into the newly created bevo `bevo_iaq` directory. Run -`$ sh rpi_install.sh` +```bash +sh rpi_install.sh +``` which will install updates, upgrade, install Python3, initialize the Tailscale VPN, and create a virtual environment. @@ -27,25 +31,35 @@ which will install updates, upgrade, install Python3, initialize the Tailscale V Create a virtual environment with -`$ source .venv/bin/activate` +```bash +source .venv/bin/activate +``` and then install the packages to operate the beacon's monitoring capabilities -`pip install -r requirements.txt` +```bash +pip install -r requirements.txt +``` ### 4. Enable Service Files on Boot Finally, enable the service files by -`$ deactivate` (to get out of virtual environment) +```bash +deactivate +``` -`$ sh service_install.sh` +```bash +sh service_install.sh +``` ### 5. Specify Device Number (Optional) By default, the device number is 00. You can specify the number by running the `fix_number` shell script: -`$ sh fix_number.sh