Skip to content

Help for a fellow maker dad / newbie to flask? #28

Description

@Megaptera666

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions