https://github.com/lucasdeprit/iot-proyect
Raspberry python proyect
https://github.com/lucasdeprit/iot-proyect
python python3 raspberry-pi
Last synced: about 1 month ago
JSON representation
Raspberry python proyect
- Host: GitHub
- URL: https://github.com/lucasdeprit/iot-proyect
- Owner: lucasdeprit
- Created: 2022-01-04T19:39:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-10T18:36:04.000Z (over 4 years ago)
- Last Synced: 2025-01-05T01:40:11.733Z (over 1 year ago)
- Topics: python, python3, raspberry-pi
- Language: Python
- Homepage:
- Size: 1.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TECHNOLOGY HEALTH COMPUTING
Aplicación que monitoriza la distancia de la persona frente al monitor y la analiza para una mejora ergonomica del usuario.
## INSTALACIÓN
Clonamos el repositorio
git clone https://github.com/lucasdeprit/IOT-Proyect.git
para ejecutarlo manualmente realizaremos los siguientes pasos:
cd IOT-Proyect/
python main.py #para ejecutar los sensores y guardar los datos en corlysis
cd Data/
./curl.sh #para generar los documentos de recolecta de datos y mandar un mail
### CREAR DATAFILES Y MANDAR MAIL CADA CIERTO TIEMPO
crontab -e
insertamos la siguiente linea con la ruta del proyecto
*/5 * * * * /home/pi/IOT-Proyect/Data/curl.sh #cada 5 mins
reiniciamos el servicio de crontab
/sbin/service cron start
### INICIALIZAR AL INICIO DE LA RPI
sudo nano /home/pi/.bashrc
insertar las siguiente linea con la ruta de tu proyecto
sudo python /home/pi/IOT-Proyect/main.py
## DEPENDENCIAS
### INSTALAR PYTHON IDE
sudo apt update
sudo apt install python3 idle3
### INSTALAR LIBRERÍA SEEED STUDIO
curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -
### INSTALAR SEEED_DHT
sudo pip install seeed-python-dht ##para sensor de humedad y temperatura
### INSTALAR SERVICIO SMTP
sudo pip install smtplib #para mandar los mails
### INSTALAR LIBRERÍA REQUESTS
pip install requests #para realizar las requests
## EJEMPLOS DE USO

