Unresponsive web pages

For general Flowcode discussion that does not belong in the other sections.
RGV250
Posts: 283
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Unresponsive web pages

Post by RGV250 »

Hi,
I am having so much grief with web pages I am starting to wonder if it is worth the trouble.
I was having a lot of grief with Raspberry Pi being unresponsive, it came up with the index page and then changed a few times and then just stopped working. The code was still running and if I opened up a different browser it worked and then did the same thing.
I decided to try the ESP32 from the you tube article and this did exactly the same thing, it also does it in the simulation as well and on 2 different PC's.
I am not sure what else to try, as it is it is unworkable. I wonder if this has anything to do with needing to reboot the Raspberry Pi before downloading a project with web pages as it does not work otherwise. It works fine just downloading if there is no web server in the project.

Regards,
Bob

LeighM
Valued Contributor
Posts: 447
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 81 times
Been thanked: 243 times

Re: Unresponsive web pages

Post by LeighM »

Try adding a delay in the loop

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Unresponsive web pages

Post by RGV250 »

Hi,
I have put a 1 second delay in the loop, no improvement. I thought it could be my router so I tried with a hotspot to my phone and no difference.

Bob

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: Unresponsive web pages

Post by chipfryer27 »

Hi

Personally I've found the Pi can be so slow as to render it unusable in certain applications. However in each I had the Pi configured as "Desktop" which was probably very much wishful thinking. Once reconfigured to "Headless" the applications worked fine.

My Firefox has a ton of security enabled which doesn't really play nice with whatever I'm doing on the Pi, so I open up a "straight out of the box" Edge session and this seems to connect without issue. I appreciate I could go into Firefox and change settings but that's too much bother for my tests.

I've downloaded your chart and if I have some time I'll see how it works for me.

Regards

EDIT....

Just tried the simulation on a W8.1 laptop.
Runs fine using Firefox on the laptop
Using an android phone with Firefox connects without issue
Using the phone with Chrome wouldn't allow me to return to page 1 (index) once I'd arrived on page 2
Note I only had one connection active at any time.

I'll try it on a Pi when I get some time.
Last edited by chipfryer27 on Sat Sep 03, 2022 8:46 pm, edited 1 time in total.
Reason: Updated Info

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Unresponsive web pages

Post by RGV250 »

Hi,
Thanks for looking, what happens on your phone is pretty much the same as what I am getting but on everything. I tried Edge but no different.

I am currently writing a couple of web pages to run on the Pi independent to FlowCode to see how they work, I would have to do it anyway and hopefully there will be a demo later on for the Pi showing how to implement this.

Bob

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Unresponsive web pages

Post by RGV250 »

Hi,
I have made 4 web pages without Flowcode and they are instant and work in Firefox and Chrome so I am not sure what the next step is. I need FlowCode for the reading and converting the data from the EcoEye power monitor I have.

Bob

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: Unresponsive web pages

Post by chipfryer27 »

Hi

I modified the chart to have three pages and downloaded to a Pi 2B with a fresh install (no updates, just as fresh as you get).

Using my android, Firefox and Chrome have no issue, I can navigate between pages without any bother. Using my laptop, generally speaking Firefox has no issue but occasionally it decides it wants to connect using https, which obviously fails, but retyping as http resolves. Edge is now a different story. It will connect initially but once a page or two has been visited it then freezes trying to load whatever page I click on. I have to start a new Edge session but the problem repeats.

Regards

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Unresponsive web pages

Post by RGV250 »

Hi,
Thanks for trying all this, the "new" edge situation is pretty much what I have with anything, I think this needs investigating as it is not just me.
I am hoping they will post an example soon showing how to use external pages for the Pi specifically as that is what I will be using later on.

Bob

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: Unresponsive web pages

Post by BenR »

Hello,

Is it possible for you to post your project file so we can try and replicate the problem you're having. I've been using the web server component recently on the sim and ESP32 and it's been very relible so maybe could be something you're doing that's causing the problem.

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: Unresponsive web pages

Post by RGV250 »

Hi Ben,
This is one version, it sometimes works and then others it will fail after a few changes and takes a long time or it times out. It has he sense hat but that does not do anything I thought that was slowing it down.
I thought it might have been my network but I created some web pages for the Pi (without FlowCode) and they switch instantly.
RPI_Web_Out_1.fcfx
(16.67 KiB) Downloaded 448 times
Would it be possible to do an example using external web pages so I can test with that as I will need to use that method in the project.

The other issue I have is having to reboot the Raspberry Pi before a download with a project that is using web pages or the web pages do not run properly. I do not get this issue if there is no web page or at least if they are not running at the time, I am not sure which as I only thought of the latter now.

Bob

Post Reply