MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    How to display a local static html file...

    Requests
    3
    4
    2759
    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
      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
        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
          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
            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
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy