Skip to content

manti-by/apollo

Repository files navigation

Apollo IoT module

Python3.11 Code style: black License

About

Raspberry Pi monitoring app, a satellite for Helios Swarm

Author: Alexander Chaika [email protected]

Source link: https://github.com/manti-by/apollo/

Requirements:

  • Raspberry Pi 2 Model B
  • One DHT22 sensor
  • Five DS1820 sensors
  • Four ESP-01+DHT11 satellites

Setup Apollo application

  1. Install Python 3.11 and create a virtual environment for the project.

  2. Clone sources and install pip packages

    mkdir /home/manti/app/
    git clone https://github.com/manti-by/apollo app/
    pip install -r app/requirements.txt
  3. Install crontabs

    */5 * * * *    cd /home/manti/app/ && /home/manti/app/venv/bin/python -m apollo.sensors
    
  4. Run server

    cd /home/manti/app/
    uvicorn apollo.server:app --host 0.0.0.0 --reload