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 4.0k 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

      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 Reply Quote 0
      • N Offline
        ninjabreadman @Deplorable
        last edited by

        @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

          @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

            @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

            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
            • 1 / 1
            • First post
              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