-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help for a fellow maker dad / newbie to flask? #28
Comments
@Megaptera666 Is there a reason you manually installed yarn and ran the start command? These steps are already included in the Dockerfile and start_docker.sh script which run when the container is built. |
Resolved
|
@Megaptera666 if you're still blocked by this, do you mind checking your network tab & letting me know if all your calls to port :8000 and :8001 are red like @albvar highlighted in his comment? A lot of the communication between web app & server was hackily and hastily done, not proud of that work :) I'm hoping to find time to circle back and make this less error prone on initial configuration |
Hi I am also having the same issue. So I tried to follow the steps @albvar provided. Still seems to be getting the same error. If someone can help me out I would really appreciate it. This is my .env file settings CAM_URL=rtsp://crib:[email protected]:554/stream1 # full url of the baby camera |
What does your 'start_docker.sh' look like? |
|
And this is my dockerfile
|
What about your docker logs and docker-compose.ynl |
It's all this Bounds not set, not running AI logic. |
Can you install apt install net-tools then net stat -tuln |
Ok will give it a try thanks, btw I just noticed that my docker-compose is not updated similar to yours. Could that have an impact? This is what I have
|
Mimic my compose file for volume instead, this overwrites |
Sorry for all the setup issues. I just finished moving, and will nuke my existing environment and setup from scratch as you are, so I can identify and iron out issues like this. Hopefully I can tighten up the setup process. "Bounds not set, not running AI logic." Goes away once you set the bounding box that the system "watches", in the web app. You can comment out that print() in the code and rebuild, if it's annoying/covering up another error. |
Still rebuilding, hopefully it works now. Thanks for helping me out and @calebolson123 no need to be sorry, thank you very much for creating this project. |
The docker-compose and .env files have the ports set to 7000 and 7001. Is it because the main.py has the ports hardcoded in it? |
I think you are right about it being hardcoded. I would recommend hosting a dedicated docker environment and stick with the defaults or pivot and use 8000,8001 within the relevant files |
I modified the main.py file and changed them to my ports (7000,7001) and it's working now. Thank you for helping me troubleshoot it. |
Hey Caleb, awesome project! I have been trying to set it up but cant figure out the last step or two, and I was hoping you could give me a pointer or two. So far I have:
-> I set up the rtsp stream using some rapberry pi and a camera. I know the stream works because I can read it and display it from another device.
-> I configured the .env file in the cloned repo accordingly.
-> I installed docker, and built the container (no errors)
-> I installed node.js and yarn, upgrading them to the latest version (>12), and ran "yarn install" and "yarn start" from the webapp directory. **to make this work I changed line 25 in the package.json file from "start&" tpo "start" (not shure this ws a typo).
=> everything appears to build successfully, a new webpage pops up at port 3000 and the blue GUI appears, but as soon as it looks like it will start working the screen turns red and the following error apperars:
Failed to fetch
TypeError: Failed to fetch
at getSleepNotificationsEnabled (http://localhost:3000/static/js/bundle.js:1023:34)
at Settings (http://localhost:3000/static/js/bundle.js:1027:36)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:79874:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:83160:17)
at beginWork (http://localhost:3000/static/js/bundle.js:84456:20)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:89419:18)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:88688:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:88611:9)
at renderRootSync (http://localhost:3000/static/js/bundle.js:88584:11)
at performConcurrentWorkOnRoot (http://localhost:3000/static/js/bundle.js:87978:78)
So it looks like its not being able to grab the frames from the stream? Any idea what might be wrong or what am I missing? I have tried both from my pc and the raspberry pi4 with identical results (by the way, were you actually able to run this in a raspberry pi 4?)
Thanks for your help and for setting this up, its really cool!
The text was updated successfully, but these errors were encountered: