Skip to content

CutTheWire/JMS_smart_farm

Repository files navigation

header

🏷️ 스마트팜 메인 프로젝트 깃허브

스마트팜 프로젝트


🌳 프로젝트 파일 트리

📦JMS_smart_farm
┣ 📂.github
┃ ┗ 📂workflows
┃ ┃ ┗ 📜Python.yml
┣ 📂Ar
┃ ┗ 📂Arduino_UNO
┃ ┃ ┗ 📂JMS_Arduino
┃ ┃ ┃ ┗ 📜JMS_Arduino.ino
┣ 📂Py
┃ ┣ 📂api
┃ ┃ ┣ 📜Dockerfile
┃ ┃ ┣ 📜api_checking.py
┃ ┃ ┣ 📜api_test.html
┃ ┃ ┗ 📜complexed_chart.py
┃ ┣ 📂Arduino
┃ ┃ ┣ 📂backup
┃ ┃ ┃ ┗ 📜Ar_backup.py
┃ ┃ ┣ 📂templates
┃ ┃ ┃ ┗ 📜index.html
┃ ┃ ┣ 📜Ar_serial.py
┃ ┃ ┗ 📜device.py
┃ ┣ 📂DATA
┃ ┃ ┣ 📜DB_insert_test_data.py
┃ ┃ ┣ 📜DB_Remaker.py
┃ ┃ ┣ 📜GetUpdate.py
┃ ┃ ┗ 📜week.py
┃ ┣ 📂WebRTC
┃ ┃ ┣ 📂static
┃ ┃ ┃ ┣ 📜script.js
┃ ┃ ┃ ┗ 📜style.css
┃ ┃ ┣ 📂templates
┃ ┃ ┃ ┗ 📜index.html
┃ ┃ ┣ 📜main.py
┃ ┃ ┗ 📜USB_cam.py
┃ ┣ 📂youtube_live
┃ ┃ ┣ 📜.env
┃ ┃ ┗ 📜youtube_live.py
┣ 📜.gitignore
┣ 📜docker-compose.yml
┣ 📜JMSPlant.db
┣ 📜JMSPlant_test.db
┣ 📜libraries_checking.py
┣ 📜README.md
┣ 📜requirements.txt
┗ 📜setup_venv.bat

⚡ 스마트팜 전력 배선 시스템

⬇️ 전선배선도면.eddx

스마트팜 프로젝트


🐋 Docker

docker compose -f "docker-compose.yml" up -d --build
...

[+] Running 2/2
 ✔ Network jms_smart_farm_default         Created
 ✔ Container jms_smart_farm-python_app-1  Started

🔗 Docker URL


🛠️ setup_venv.bat

  • 경로 : ./setup_venv.bat
  • Python 3.12.1 환경 => 설치
    • 설치 시 Add Pyhton 3.12.1 to PATH 체크
  • venv 가상화 실행 명령어
& ".\setup_venv.bat"

🔐 .env

  • 경로 : ./Py/youtube_live/.env
  • .env 내용
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
GOOGLE_PROJECT_ID=your_project_id
GOOGLE_AUTH_URI=https://accounts.google.com/o/oauth2/auth
GOOGLE_TOKEN_URI=https://oauth2.googleapis.com/token
GOOGLE_AUTH_PROVIDER_X509_CERT_URL=https://www.googleapis.com/oauth2/v1/certs
GOOGLE_REDIRECT_URIS=your_redirect_uris
GOOGLE_JAVASCRIPT_ORIGINS=your_javascript_origins