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

NTU Final year project #1

Open
HarrisNTU opened this issue Sep 8, 2023 · 20 comments
Open

NTU Final year project #1

HarrisNTU opened this issue Sep 8, 2023 · 20 comments

Comments

@HarrisNTU
Copy link

Hi Harris here ..... Having trouble to run the app for gas sensors. Get the error message shows below. Need your help to resolve this issue as the sensors are planned for testing with balloon.

CMD Commands

Local Host

@mitchellkok
Copy link
Owner

image

npm start still works for me from */dashboard2/frontend

@HarrisNTU
Copy link
Author

HarrisNTU commented Sep 14, 2023 via email

@mitchellkok
Copy link
Owner

Hi Harris, sorry I don't see any picture in your comment.
I'm using NPM version 9.5.0

@HarrisNTU
Copy link
Author

here are the images

MicrosoftTeams-image

MicrosoftTeams-image (1)

@HarrisNTU HarrisNTU reopened this Sep 14, 2023
@mitchellkok
Copy link
Owner

It displays "Loading" until it receives a packet from the base station. You'll have to connect the PC to the base station via wifi.

@HarrisNTU
Copy link
Author

  • the two wires from rechargable battery are connected to the modules

  • 9V battery also connected

  • Yellow light is blinking

  • Laptop choose wifi network to ESP Basestation

  • The base station blue light is blinking

  • The dashboard still blank .showing loading message.

Any advise ?
MicrosoftTeams-image

MicrosoftTeams-image (1)

MicrosoftTeams-image (2)

@HarrisNTU
Copy link
Author

HarrisNTU commented Sep 14, 2023 via email

@mitchellkok
Copy link
Owner

Perhaps check that the IP address "esp32_address" in laptop2.py matches the Base station's IP address?

@HarrisNTU
Copy link
Author

IP addresses are checked, both esp32 address and base station are matched. Base station blue ELD is blinking but the dashboard still showing "loading message ..."

@HarrisNTU
Copy link
Author

HarrisNTU commented Sep 18, 2023 via email

@HarrisNTU
Copy link
Author

PC connected to the base station via wifi already but still has the blank dashboard screen

@mitchellkok
Copy link
Owner

Strange - if the PC is connected to the base station, it should be displaying the dashboard fields with "--".
If the blue LED on the base station is blinking, it should be receiving data from the payload and sending it to the Flask server.

Any output from the Flask terminal?

@HarrisNTU
Copy link
Author

output from Flask terminal ... however the dashboard still not showing anything (blank screen)

MicrosoftTeams-image (4)

@mitchellkok
Copy link
Owner

Interesting. Could you check that the port in fetch.js matches the Flask port? Also provide the JS console output for the dashboard if there is anything

@HarrisNTU
Copy link
Author

Fetch.js Port number
MicrosoftTeams-image (5)

For JS console output, not sure how to get it. How to get it from visual studio code ?, Can you gives step-by-step instructions ?

@mitchellkok
Copy link
Owner

You can get the JS console output from the browser inspect functionality (right-click inspect, or fn-f12).
You should be able to see the packets received in this console, if any.

@HarrisNTU
Copy link
Author

Hi Michell ... this is what we get
MicrosoftTeams-image (6)

@mitchellkok
Copy link
Owner

Looks like the React frontend can't connect to the Flask backend.
Can I check what version of Flask you're using? I saw that some methods have been deprecated

@HarrisNTU
Copy link
Author

Flask version is 2.2.2

@HarrisNTU
Copy link
Author

Hi Mitchell,

The software have the same problem again (blank secreen) ... could you tell me the steps you to fix the issue last time ?. Thanks.

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