mitchellkok / RE4001-Renaissance-Capstone-Project

2 stars 1 forks source link

NTU Final year project #1

Open HarrisNTU opened 1 year ago

HarrisNTU commented 1 year ago

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 commented 1 year ago

image

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

HarrisNTU commented 1 year ago

Hi Mitchell,

Manage to compile successfully but the dashboard does not show anything (refer to picture below). By the way what the “npm” version you are using ?.

@. @.

Regards, Harris Limasi

From: Mitchell Kok @.> Sent: Wednesday, 13 September 2023 11:58 am To: mitchellkok/RE4001-Renaissance-Capstone-Project @.> Cc: Harris Limasi @.>; Author @.> Subject: Re: [mitchellkok/RE4001-Renaissance-Capstone-Project] NTU Final year project (Issue #1)

[Alert: Non-NTU Email] Be cautious before clicking any link or attachment.

[image]https://user-images.githubusercontent.com/67910672/267531033-2257e7d5-26ca-4daf-ae9a-a0f9fcf1b5be.png

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

— Reply to this email directly, view it on GitHubhttps://github.com/mitchellkok/RE4001-Renaissance-Capstone-Project/issues/1#issuecomment-1716904225, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCN7PJYWXIX267D53UZG7ATX2EVNVANCNFSM6AAAAAA4QEDFTA. You are receiving this because you authored the thread.Message ID: @.**@.>>


CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents. Towards a sustainable earth: Print only when necessary. Thank you.

mitchellkok commented 1 year ago

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

HarrisNTU commented 1 year ago

here are the images

MicrosoftTeams-image

MicrosoftTeams-image (1)

mitchellkok commented 1 year ago

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 commented 1 year ago

Any advise ? MicrosoftTeams-image

MicrosoftTeams-image (1)

MicrosoftTeams-image (2)

HarrisNTU commented 1 year ago

Hi Mitchell,

Still the same … any other advise ?

From: Mitchell Kok @.> Sent: Thursday, 14 September 2023 9:49 am To: mitchellkok/RE4001-Renaissance-Capstone-Project @.> Cc: Harris Limasi @.>; State change @.> Subject: Re: [mitchellkok/RE4001-Renaissance-Capstone-Project] NTU Final year project (Issue #1)

[Alert: Non-NTU Email] Be cautious before clicking any link or attachment.

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.

— Reply to this email directly, view it on GitHubhttps://github.com/mitchellkok/RE4001-Renaissance-Capstone-Project/issues/1#issuecomment-1718623092, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCN7PJ35XORU4UXAIKEFQTLX2JO77ANCNFSM6AAAAAA4QEDFTA. You are receiving this because you modified the open/close state.Message ID: @.***>


CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents. Towards a sustainable earth: Print only when necessary. Thank you.

mitchellkok commented 1 year ago

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

HarrisNTU commented 1 year ago

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 commented 1 year ago

Hi Mitchell,

Can I call you ?

From: Mitchell Kok @.> Sent: Thursday, 14 September 2023 9:49 am To: mitchellkok/RE4001-Renaissance-Capstone-Project @.> Cc: Harris Limasi @.>; State change @.> Subject: Re: [mitchellkok/RE4001-Renaissance-Capstone-Project] NTU Final year project (Issue #1)

[Alert: Non-NTU Email] Be cautious before clicking any link or attachment.

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.

— Reply to this email directly, view it on GitHubhttps://github.com/mitchellkok/RE4001-Renaissance-Capstone-Project/issues/1#issuecomment-1718623092, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCN7PJ35XORU4UXAIKEFQTLX2JO77ANCNFSM6AAAAAA4QEDFTA. You are receiving this because you modified the open/close state.Message ID: @.***>


CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents. Towards a sustainable earth: Print only when necessary. Thank you.

HarrisNTU commented 1 year ago

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

mitchellkok commented 1 year ago

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 commented 1 year ago

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

MicrosoftTeams-image (4)

mitchellkok commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

mitchellkok commented 1 year ago

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 commented 1 year ago

Flask version is 2.2.2

HarrisNTU commented 9 months ago

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.