Read the statement by Michael Teeuw here.
How to display a local static html file...
-
I have tried all of the various iFrame modules and while I can display sites ( for example www.bing.com) I have failed utterly in displaying a local html file (/home/pi/intro.html). The file is very basic and works just fine in all browsers I have tested it on. Is there a module that will display this file? Thanks!
-
@Deplorable Have you tried the
file://
protocol? (e.g.file:///home/pi/intro.html
)?Otherwise, every module can make files available through a
public
subfolder. So I think you can make apublic
folder under your iFrame module and serve from that (e.g.http://localhost:8080/modules/iframe/public
). -
@Deplorable If you’re using an iFrame module, you probably need to use the
file:///.../path/to/module/to/file.html
. Check what you Browser DevTools (CTRL-SHIFT-I
) says. If you need access to file from an outside browser, you need the correct Module URL. -
@Deplorable I found the solution I was looking for:
https://github.com/eouia/MMM-HTMLBox.
For whatever reason it isn’t listed on the “3rd Party Module” page although it should be… Works fine. Thanks for the solutions offered re: iFrame…