GithubHelp home page GithubHelp logo

jsallcock / babysleepcoach Goto Github PK

View Code? Open in Web Editor NEW

This project forked from calebolson123/babysleepcoach

0.0 0.0 0.0 5.03 MB

DIY Baby Sleep Tracking

Home Page: https://calebolson.com

License: Other

Shell 0.01% JavaScript 2.87% Python 9.04% TypeScript 3.47% CSS 0.65% HTML 0.26% Jupyter Notebook 83.71%

babysleepcoach's Introduction

The Baby Sleep Coach

Shield: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0


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
  • Camera which supports RTSP
  • Compute 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 example.env .env

Configure .env file:

CAM_IP IP of your camera

CAM_PW pw for accessing your camera

PORT Port for accessing web app

REACT_APP_BACKEND_IP IP of your backend/api layer. Likely 192.168.COMPUTER_IP:8001

REACT_APP_RESOURCE_SERVER_IP IP of your 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

Update docker-compose

Update the path in docker-compose.yml to be the root of this project on your machine.

Run it

docker compose up

babysleepcoach's People

Contributors

calebolson123 avatar vanseforge avatar bckelly1 avatar chris-alexiuk avatar ido1990 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.