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
publicsubfolder. So I think you can make apublicfolder 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…
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login