I saw your youtube video and been wanting to give this a spin! Today i was attempting to set it up however i am running into an issiue.
Using the docker method; Altered the .env and the image spins up however i cant access the webpage. Would love some help! Thanks in advance!
The logs show me this:
/usr/app/babysleepcoach/main.py:71: SyntaxWarning: "is" with a literal. Did you mean "=="?
if focusRegionArr[0] is '':
WARNING: No module named 'pexpect'
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
(node:37) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:37) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Traceback (most recent call last):
File "/usr/app/babysleepcoach/main.py", line 48, in <module>
logging.basicConfig(filename=logfile,
File "/usr/lib/python3.11/logging/__init__.py", line 2050, in basicConfig
h = FileHandler(filename, mode,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/__init__.py", line 1181, in __init__
StreamHandler.__init__(self, self._open())
^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/__init__.py", line 1213, in _open
return open_func(self.baseFilename, self.mode,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/app/babysleepcoach/babysleepcoach/sleepy_logs.log'
My docker-compose:
services:
baby-sleep-coach:
build:
dockerfile: ./Dockerfile
context: .
ports:
- "0.0.0.0:${PORT}:80"
- "0.0.0.0:8000:8000"
- "0.0.0.0:8001:8001"
env_file:
- .env
volumes:
- .:/usr/app/babysleepcoach
- /usr/app/babysleepcoach/webapp/node_modules
# To use a webcam, uncomment these lines
# devices:
# - /dev/video0
And my .env (without camera URL on purpose):
APP_DIR=./babysleepcoach # location of app root, primarily used for docker
DEBUG=False
OWL=False # lol
VIDEO_PATH=./babysleepcoach/video # for debugging & testing
HATCH_IP=192.168.1.50 # optional
REACT_APP_BACKEND_IP=192.168.1.50:8001 # ip of flask server. Probably just localhost
REACT_APP_RESOURCE_SERVER_IP=192.168.1.50:8000 # ip of resource server
PORT=8070 # port web app serves assets from
Hi Caleb!
I saw your youtube video and been wanting to give this a spin! Today i was attempting to set it up however i am running into an issiue.
Using the docker method; Altered the .env and the image spins up however i cant access the webpage. Would love some help! Thanks in advance!
The logs show me this:
My docker-compose:
And my .env (without camera URL on purpose):