Page 2 of 4

Re: Unresponsive web pages

Posted: Wed Sep 14, 2022 12:16 pm
by RGV250
Hi Ben,
How did it go.
Do you think you will be able to create an example for the Pi with external pages.

Regards,
Bob

Re: Unresponsive web pages

Posted: Wed Sep 14, 2022 2:50 pm
by BenR
Hi Bob,

Are things any better if you remove the 1s delay from the main loop. This could well be causing timeouts etc.

You may also want to change the simulation speed from fast (with updates) to fast (no updates) to make the sim run faster.

With both of these changes the sim is certainly running a lot better with my browser.

Re: Unresponsive web pages

Posted: Wed Sep 14, 2022 11:25 pm
by RGV250
Hi Ben,
I added the delay as suggested in post 2 as it was problematic, I took it out as you suggested and altered the sim speed but no luck.
Is it possible to post an example for the Pi with external pages as I would prefer to try on the actual hardware.

Bob

Re: Unresponsive web pages

Posted: Thu Sep 15, 2022 9:38 am
by LeighM
I should have given more details about the delay,
I was thinking 10 to 50 ms to relinquish to other tasks,
but this was when I thought you were running on ESP

Regarding Raspberry Pi, are you also running Apache (or other) web server?
Could try running the Flowcode program on another port, rather than 80?

Re: Unresponsive web pages

Posted: Sun Sep 18, 2022 7:08 pm
by RGV250
Hi LeighM,
I am not sure I can use the Pi to try internal pages now as I have external pages and I would need to delete everything.

I thought I would persevere with implementing the external ones but I think I have drawn a blank there.
I changed from embedded to File / SD card and copied the files to the directory where the project is but no go. I would like to have them in /var/www/html but not sure if that is possible.
Does the index file have to be htm or can it be html?
I wonder if I should put anything in the "fcomponent", the help says it is to redirect for SD card.

Bob

Re: Unresponsive web pages

Posted: Thu Sep 22, 2022 9:22 am
by RGV250
Hi Ben,
Is there any chance you can do an example for the Raspberry Pi using external web pages with a couple of parameters please. I am getting nowhere with this which is quite frustrating as it is the work up till now is wasted if I cannot see the data.
I managed to get variables out with the embedded pages but could not enter anything so a variable either way would be much appreciated.

Regards,
Bob

Re: Unresponsive web pages

Posted: Fri Sep 30, 2022 12:34 pm
by RGV250
Hi Ben,
Is a demo ever likely to happen, right now I feel like I have just wasted my money.

Bob

Re: Unresponsive web pages

Posted: Fri Sep 30, 2022 1:36 pm
by BenR
Hi Bob,

Sorry I don't currently have a RPI in the office to generate the example which is causing the delay, RPis are tricky to get hold of at the moment.

I've made a note to generate you a working example next time I'm at my home office as I have a RPi running there. I should be able to do this for you next week if that's ok.

Re: Unresponsive web pages

Posted: Fri Oct 14, 2022 10:34 am
by RGV250
Hi Ben,
Any luck, if it is the lack of a Raspberry Pi I have a spare I could let you have for a while.

Bob

Re: Unresponsive web pages

Posted: Wed Oct 19, 2022 1:25 pm
by RGV250
Hi Ben,
Are we any closer, it is almost 3 weeks and I am getting a bit concerned this is not possible. A bit frustrating as I have all but given up on this project now.

Regards,
Bob