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

Re: Unresponsive web pages

Post by RGV250 »

Hi Ben,
Is this being totally ignored now?, I would have liked to take advantage of the 30% off offer as App Inventor was on my list but right now I feel a refund would be more in order but that will never happen.

Regards,
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 »

Hi Bob,

Sorry it took so long to get back to you on this.

Loaded the example you posted onto my Pi and it's working great, auto refreshing every second, left it running for several minutes and so far it's not skipped a beat.

Server.jpg
Server.jpg (13.27 KiB) Viewed 4645 times
If you manually refresh then that might create problems as it's auto refreshing so often (though even doing this it's doing great and not missed a step). I would maybe increase the auto refresh time in the index html code and see if that helps things.

I also removed the delay.

Here is my program, please note the IP address and login details have been altered for my setup.

RPI_Web_Out_1.fcfx
(15.54 KiB) Downloaded 413 times
Is your Pi running any other web service or have other software loaded onto it that may be bloating or conflicting with it?

Also note that closing the putty upload window automatically kills the task, just in case that's the cause of 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,
Thanks, I was getting a bit frustrated :)
The only other thing that is on there (as far as I know) is VNC as I prefer to run headless from the PC, over the weekend I will try a clean install without VNC.

Will you be able to do a demo with external web pages as when I do get it working it will definitely need more pages than the embedded allows.

Regards,
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 »

Hi Bob,

Hmm external webpages currently requires the use of say the FAT component to provide the files via an SD card. This will work but you probably instead want to use the filesystem of the Pi directly. I'll investigate and see what we can do here, It might mean a new file component specific to the Pi.

Let us know how you get on with the VNC, I wouldn't think that would have too much effect but maybe it's causing some kind of a port clash.

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 Ben

I've been following the post with interest.

With the resources available within the Pi it would be great to be able to access the file system directly, and whilst I know you are all very busy just now I hope you do manage to squeeze in the time to create the component as it would be very useful.

Regards

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 »

it would be great to be able to access the file system directly
From a quick look it certainly looks doable and hopefully reasonably easy to give full read/write access assuming permissions allow. Oh the joys of having a nice OS to do all the dirty work :D

I'll keep you all updated as to how I'm getting on.

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 »

Muchas Gracias

and the equivalent in all languages :)
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 Ben,
You are correct, I did mean web pages that are not the embedded ones. Basically ones that I can write / format (that will be fun) rather than the embedded ones which I think will be limited later on.

I did a totally clean install and everything is working fine, the only things that I think were on the other card were VNC and a sense hat as I had tried the sense hat example. It is updating and I have swapped pages quite a few times now and no issues.

Regards,
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 »

Basic read/write file functionality is now tested and working on the Pi.

I need to do more testing as well as folder traversal and also make sure it works with the libraries like the webserver but it's a great start and hopefully won't be much longer now until complete.

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,

Well it seems to be working I've got basic read/write working and also allowed the webserver to connect to the file system and so far I think it's all ok.

There's probably a bit more polishing that could be done but for now there's a demo of the RPI webserver here.
viewtopic.php?p=8800#p8800


If anyone wants a simple demo for reading/writing files then let me know as I have one of these too.

Post Reply