Skip to content
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

Web app stalled at "Application is ready" #37

Closed
leoshmu opened this issue Oct 10, 2022 · 4 comments
Closed

Web app stalled at "Application is ready" #37

leoshmu opened this issue Oct 10, 2022 · 4 comments

Comments

@leoshmu
Copy link

leoshmu commented Oct 10, 2022

Hello,

I recently bought a tCam mini rev 4 and am trying it with a lepton 3.5. I'm trying to run the web app on a 64bit MacBook pro running 10.15.7

I can start the app using default settings "./tcam_web", and the terminal shows:
tcam_web version 1.0.2
Application is ready

but the next lines showing that it is trying to connect fail to ever appear. Also there is no json file created

I am connected by wifi to the board address, and I can tell what the IP address is of the board. When I go to that IP address in chrome the skeleton of the app is loaded, but there are no cameras detected, and the console.log of chrome shows the following error:

"GET http://...:9000/icons/site.webmanifest??v=d3572d86c30797d3b47b301274a80207 404 NOT FOUND"

Any ideas as to what i'm doing wrong?

@danjulio
Copy link
Owner

Hello, sorry you're having troubles. From your description it sounds like you got the web app running successfully and connected to it with your browser. Then what you have to do is add the camera so the app knows about it.

Go to the Setup tab
Click the "+" to create a new temporary camera entry
Give the Camera a name and enter its IP address (which is 192.168.4.2 if you're connected to it as an AP)
Click Update to store the camera in the local list (yeah, I know this UI is kinda jenky)
Click Commit to save the list to the config file. You should see the file created in your user's Documents folder. You should also see the app log that it connected to the camera.
Go to the Cameras tab and click Load. You should get an image if all is working.

Unfortunately I can't test on 10.15.7 as I'm running Monterey but I just performed these steps with the app with success. As an aside, with the app running on the local machine, you can always enter the loopback address "127.0.0.1:9000" in the local browser as well as the machine's address (e.g. "192.168.4.2:9000").

Please update this ticket with more info if I don't understand your situation properly.

@danjulio
Copy link
Owner

Also, the error about missing the manifest is because I'm lazy and didn't configure that in the app. Shouldn't cause any problems.

This app is really just a toy. Someday I'd like to improve it but there are limits with creating web apps with xojo and I'm no web programmer...

@leoshmu
Copy link
Author

leoshmu commented Oct 11, 2022

Oh it works now, I didn't realize the + to create a camera entry! I was just trying to get all the parts working to make sure I wasn't doing anything wrong:) Thanks so much for explaining this.

@danjulio
Copy link
Owner

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants