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

MM Display on monitor AND as a web server

Scheduled Pinned Locked Moved Solved Troubleshooting
5 Posts 3 Posters 1.4k 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.
  • M Offline
    meldrum
    last edited by Dec 1, 2023, 3:42 AM

    I have been running MM on a raspberry Pi with a monitor attached to the HDMI port. No problem. The raspi is also running an Apache web server. I no longer need the pages that Apache is serving, but would like to see the MM as a web page in addition to the attached display. How do I do this? Does MM use Apache and if so how do I configure that? I tried shutting down Apache service thinking MM has a built in web server, but no luck. Can MM do both… display monitor and web service? How do I config this?

    S 1 Reply Last reply Dec 1, 2023, 3:57 AM Reply Quote 0
    • S Away
      sdetweil @JohnGalt
      last edited by sdetweil Dec 4, 2023, 3:46 AM Dec 3, 2023, 9:23 PM

      @JohnGalt well, it’s the same page served from the mm app

      what the modules do with the data they get at any moment is unknown

      all the rendering is done at the browser in code.

      weather is done 100% at the browser so you have multiple data fetches. with data that can change instantaneously.

      calendar data fetch is done at the server, but still separate fetches, with data that doesn’t change very often and then rendered at the browser.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Dec 10, 2023, 4:37 AM Reply Quote 0
      • S Away
        sdetweil @meldrum
        last edited by sdetweil Dec 1, 2023, 3:57 AM Dec 1, 2023, 3:57 AM

        @meldrum MM is a closed single purpose web server, using library code, not apache or anything like that

        it serves its single web page on the port configured in the config.js, 8080 by default

        if you loosen the connectivity restrictions , by setting

        address:"0.0.0.0".
        ipWhiteList:[],
        

        then any browser on any device in your network can access it.

        now, the code IS using the newer es6 javascript standards, which many devices with embedded browsers probabaly don’t have… tv, ipad, … so you will end up with a black screen… no fix…

        MM can display its page on the local machine acting as the server as well as all others at once…

        there is only ONE page for all ‘consumers’

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Dec 3, 2023, 9:13 PM Reply Quote 0
        • J Offline
          JohnGalt @sdetweil
          last edited by Dec 3, 2023, 9:13 PM

          @sdetweil - Sam, how would I go about investigating an issue where it appears my MM install violated your statement (and my understanding) that there is only one web page being published?

          The MM runs all the time, directly attached to and displaying on a monitor in my office. At times I will also bring it up in a browser window on the desktop, and see varying values in the weather modules running. ( I’m traveling and lack access to provide a photo showing the simultaneous different outputs, but thought I’d ask.)

          S 1 Reply Last reply Dec 3, 2023, 9:23 PM Reply Quote 0
          • S Away
            sdetweil @JohnGalt
            last edited by sdetweil Dec 4, 2023, 3:46 AM Dec 3, 2023, 9:23 PM

            @JohnGalt well, it’s the same page served from the mm app

            what the modules do with the data they get at any moment is unknown

            all the rendering is done at the browser in code.

            weather is done 100% at the browser so you have multiple data fetches. with data that can change instantaneously.

            calendar data fetch is done at the server, but still separate fetches, with data that doesn’t change very often and then rendered at the browser.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Dec 10, 2023, 4:37 AM Reply Quote 0
            • J Offline
              JohnGalt @sdetweil
              last edited by Dec 10, 2023, 4:37 AM

              @sdetweil - ok, understood. I guess that explains the (usually subtle) differences.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/5
                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