Read the statement by Michael Teeuw here.
MM Display on monitor AND as a web server
-
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?
-
@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.
-
@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’
-
@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.)
-
@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.
-
@sdetweil - ok, understood. I guess that explains the (usually subtle) differences.