• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

How to display a local static html file...

Scheduled Pinned Locked Moved Requests
4 Posts 3 Posters 3.5k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    Deplorable
    last edited by Mar 2, 2018, 1:50 AM

    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!

    N E D 3 Replies Last reply Mar 2, 2018, 3:10 AM Reply Quote 0
    • N Offline
      ninjabreadman @Deplorable
      last edited by Mar 2, 2018, 3:10 AM

      @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 a public folder under your iFrame module and serve from that (e.g. http://localhost:8080/modules/iframe/public).

      Problem with config or JavaScript? Copy/paste it into JSHint.
      Check out the detailed walkthroughs on install, config, modules, etc.

      1 Reply Last reply Reply Quote 0
      • E Offline
        E3V3A @Deplorable
        last edited by Mar 2, 2018, 6:41 AM

        @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.

        "Everything I do (here) is for free – altruism is the way!"
        MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

        1 Reply Last reply Reply Quote 0
        • D Offline
          Deplorable @Deplorable
          last edited by Mar 2, 2018, 5:41 PM

          @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…

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy