adeept / adeept_picarpro

MIT License
7 stars 12 forks source link

webserver.py issue #8

Closed JPHuls closed 2 years ago

JPHuls commented 2 years ago

Hi,

All the individual test code work like a charm. However, with the webserver I seem to experience an issue. When opening the browser, the dashboard does show, including the video feed. However, after a few seconds at the bottom of the "Adeept Bot Contorller" (where can I correct this type??) a popup appears saying "Connect failed - Reconnecting"; the reconnecting part nevers seems to succeed.

What am I missing?

I'm using a Pi 3 model B+ and your image with all the software preïnstalled.

UPDATE: it seems there are 2 causes:

  1. startup.sh in the pi home folder needed, in my case a 'sudo sleep 1' command prior to starting the PiCar web server
  2. Webserver.py has online 481 a line HOST = ''. The dashboard started working after changing this into: HOS = '127.0.0.1' (local host).

Kind regards,

Jean-Pierre

JPHuls commented 2 years ago

Is my assessment and solution as described in UPDATE part correct?

adeept commented 2 years ago

Hello, This is due to insufficient power supply causing the Raspberry Pi to reboot. Please use 18650 battery for power supply. If an 18650 battery is already in use, use the 18650 battery charger to fully charge the battery.

Best!

Technical Support @.***

---- Replied Message ---- From @.>Date 5/30/2022 00:05To @.>Cc @.***>Subject [adeept/adeept_picarpro] webserver.py issue (Issue #8)

Hi, All the individual test code work like a charm. However, with the webserver I seem to experience an issue. When opening the browser, the dashboard does show, including the video feed. However, after a few seconds at the bottom of the "Adeept Bot Contorller" (where can I correct this type??) a popup appears saying "Connect failed - Reconnecting"; the reconnecting part nevers seems to succeed. What am I missing. I'm using a Pi 3 model B+ and your image with all the software preïnstalled. Kind regards, Jean-Pierre — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>