Building a Sensor Unit to work with KootNet Sensors

** WIP: This will be updated with better instructions as time goes on **

Currently Supported Sensor’s

Raspberry Pi products: Sense HAT
Pimoroni products: BH1745, BME680, Enviro pHAT, LSM303D, VL53L1X

Note: Additional sensors can be added fairly easily, so long as they support the Raspberry Pi and Python3

User Requirements

The User must know the following

1. Basic TCP/IP Version 4 concepts
IP Address, Gateway, DNS, etc

2. Basic operations of the terminal text editor "nano"
Use "Ctrl + x" to quit, entering "y" to save any changes (If you made any)

3. How to accesses a terminal in Raspbian
Raspberry Pi Menu -> Accessories -> Terminal

Required Hardware

Raspberry PiI have tested the 3B+ & Zero W

Optional – additional sensors (see Currently Supported Sensor’s above)

Install Instructions

The installer script will modify /etc/network/interfaces, replace the root users crontab & reboot the Raspberry Pi. This installation also includes a copy of the Control Center program to manage your sensor(s).
** Note: The installer can take awhile, especially on the Raspberry Pi Zero models (60
minutes or more). This is mostly due to a required numpy rebuild **

Step 1. Physically Install your Sensor(s) onto the Raspberry Pi
Step 2. Install Raspbian OS
Step 3. Enable SPI and I2C in the Raspberry Pi Configuration window on the "Interfaces" tab
Step 4. Make sure you are connected to the Internet with your Pi, then run the following command in a terminal to start the Installer

wget http://kootenay-networks.com/utils/koot_net_sensors/Installers/raspbian/update_programs_online.sh && chmod +x update_programs_online.sh && sudo bash update_programs_online.sh && sudo reboot

The installer will open default configuration files to be configured, after which it will continue to download program files, install necessary Python libraries, update Raspbian itself, and finally reboot the sensor
Once the Raspberry Pi comes back up, your sensor should be ready!

Uninstall Sensor Software
This will remove all sensor software & the control center, plus it will restore the /etc/network/interfaces file. It will leave your data, logs and configurations (Not the control center configuration).

sudo bash /home/pi/KootNetSensors/zUninstall.sh