guysoft / FullPageOS

A raspberrypi distro to display a full page browser on boot
GNU General Public License v3.0
3.78k stars 227 forks source link

Not able to load a locally stored html file. #505

Closed TeckPete closed 2 months ago

TeckPete commented 3 months ago

What were you doing?

Trying to open a local stored html page [Please be as specific as possible here] I saved my the html file in /var/www/html/index.html and changed the fullpageos.txt to http://var/www/html/index.html

What did you expect to happen?

to pull the the locally stored html page

What happened instead?

the screen is black. when a put a web url in it works fine

Was there an error message displayed? What did it say?

no error

Version of FullPageOS?

0.13.0 [Can be found in /etc/fullpageos_version ALWAYS INCLUDE.]

Screenshot(s) showing the problem:

Capture7 Capture6

[If applicable. Always include if unsure or reporting UI issues.]

If you are building FullPageOS - provide a build.log that is created for the build

TeckPete commented 3 months ago

@guysoft could this have anything to do with my problem? I'm sure I just missed something stupid.

Capture65

Metatron2k2 commented 3 months ago

In order to load a local file you would need to use file:// instead of http. Although I am not sure if that resolves you problem. As far as I know chrome disables JS for local files. Therefore you will probaly have to isntall a webserver (apache, nginx lighttp or similar) on the pi

guysoft commented 3 months ago

There is an onboard websever, but then you need to use https://localhost

https://en.wikipedia.org/wiki/Localhost

I am closing this because its not a FullPageOS issue.

Makes me think we might need a forum

guysoft commented 2 months ago

I am converting this to a discussion, its not an issue with FullPageOS