calebolson123/BabySleepCoach
حول
DIY Baby Sleep Tracking
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلThe Baby Sleep Coach
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
As seen on YouTube
This repo contains code to run the The Baby Sleep Coach. The Baby Sleep Coach provides sleep analysis of your baby, using only a video feed. You can access the sleep analysis via a locally hosted web app, which runs on launch.
Pre-requisites
- Docker
- USB webcam or camera which supports RTSP
- Computer accessible via HTTP requests (I used a Raspberry Pi, but you can use any computer)
tl;dr Run it with Docker
Copy the .env_sample template into .env
cp .env_sample .env
Configure .env file:
CAM_URL URL of your camera. Likely rtsp://admin:[email protected]_IP:554/h264Preview_01_sub or /dev/video0 for a webcam
PORT Port for accessing web app
REACT_APP_BACKEND_IP IP of backend/api layer. Likely 192.168.COMPUTER_IP:8001
REACT_APP_RESOURCE_SERVER_IP IP of resource server (runs on launch) Likely 192.168.COMPUTER_IP:8000
HATCH_IP (optional) IP of your hatch for wake light
VIDEO_PATH (optional) use to set path to recorded footage for debugging
Remarks:
- instead of
192.168.COMPUTER_IPyou can useraspberrypi.local(or whatever name you gave when setting up your Raspberry Pi) - when using
/dev/video0(for USB webcam), also uncomment corresponding lines indocker-compose.yml
Run it
docker compose up
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…
