rehrler / rguard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rguard 💂‍♂️

rguard is a do it yourself project with the aim to develop an opensource instruction for building your own CO2 Sensor. All instructions are here available including some CAD and STL files of a housing for 3d printing.

Installation

Raspberry Pi

  1. Standard Installation of OS.

Sensor Wiring

SCD30 Raspberry Pi
VDD 3V3 Power
GND Ground
TX/SCL GPIO 3 BCM 3 (SCL)
RX/SDA GPIO 2 BCM 2 (SDA)
SEL Ground

source

rguard

  1. Clone project on the raspberry pi
git clone https://github.com/rehrler/rguard.git --recursive
  1. Install all dependencies and install the python packages
cd rguard && sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -ylibgtk-3-dev build-essential gcc g++ pkg-config make hostapd python3-pip
pip3 install -r requirements.txt
  1. Compile the rpi-i2c-timings
cd 3rdparty/rpi-i2c-timings && make
  1. Setup the rpi-i2c-timings as a service at boot
sudo cp rpi-i2c /usr/bin/ && sudo cp rpi-i2c-timeout.service /etc/systemd/system/
sudo systemctl enable rpi-i2c-timeout.service
  1. Setup the local access point and adjust the /etc/create_ap.conf with a SSID as your wifi name and a reasonable passphrase
cd ../linux-wifi-hotspot && make install-cli-only
sudo systemctl enable create_ap.service
  1. Adjust paths and user in src/services/rguard_sensor.service and src/services/rguard_server.service.
WorkingDirectory=<path to rguard directory>
User=<your user>
ExecStart=<path to python exec> <path to capture_data.py/start_server.py>
  1. Add rguard services to systemctl
cd ../../src/services/
sudo cp rguard_server.service /etc/systemd/system/ && sudo systemctl enable rguard_server.service
sudo cp rguard_sensor.service /etc/systemd/system/ && sudo systemctl enable rguard_sensor.service
  1. Reboot the raspberry pi, connect to the wifi with the given name and visit 10.0.0.1:5000 and there you go!

Notes

CAD and STL File for 3d Printer

Hardware

OS

Credits

About


Languages

Language:JavaScript 73.7%Language:HTML 16.0%Language:Python 9.6%Language:CSS 0.7%