@saljoke running two instances of MM
Read the statement by Michael Teeuw here.
Posts
-
RE: 2 Display Mirror for more views
-
RE: [MMM-OnThisDayWikiApi] - Get Wikipedia's OnThisDay using the Wikimedia API
@angeliKITTYx as always, if it’s not in the module instructions , then you have to use css to adjust the styles.
sometimes the module author provides an initial css file you can copy from to custom.css to make those adjustments.
-
RE: Error on starting MM2: module not present
@mwel1977 step 3, in the modules/MMM-Swipe folder,
npm install MMM-usonicThen same folder,
npm rebuild MMM-usonic -
RE: MM-Watcher - MagicMirror Config.js Auto-Refresh Script
@plainbroke well, mine looks nearly identical… just missing the cwd…
I opened an issue about this 2 years ago, never got a response…
and adding cwd (current working directory)I don’t know how that matters… but whatever… it works now…
-
RE: Black Screen Of Death After Couple of Hours
@dazza120 said in Black Screen Of Death After Couple of Hours:
0|mm | { Error: spawn ENOMEM
means no memory available to lauch the background app…
usually means doing more than physical memory can handle…
so… see https://www.answiz.com/questions/22232/node-js-catch-enomem-error-thrown-after-spawn
to verify no swap and enable itmmm-voice…
YOU don’t have to change to voice mode… just speak and IT will change the first time… (least thats what happens for me) -
RE: General Mucking Around with MM
@ruff-hi get the winscp or bitvise ssh clients, gives u a file manager view over the files on the pi
double click to edit and save
if the changes are css , then on mirror press ctrl-r to reload the page
or restart if U set the consfig to
address:“0.0.0.0”,
ipWhitelist:[],
then any machine i your house can access the MM…
then u can use chrome on your pc to view changes too (ctrl-r to reload) -
RE: MMM-ModuleScheduler: need help
@anagallis yes, custom.css is in the MagicMirror/css folder
next release (April 1 it will move to the config folder (user files will all be in one place)
-
RE: Module help for variable
@rts58 said in Module help for variable:
Module.register("controlMonitor", { defaults: {}, oldAwayState: 'unknown', awayState: 'unknown', notificationReceived: -
RE: MMM-Pir alternative for bookworm
@Muffex a couple other pir modules were added to the 3rd party list
also see
https://forum.magicmirror.builders/topic/19362/googleassistant-and-related-modules -
RE: Snowbound on node.js
@grantc66 you would have to to use exec or spawn
-
RE: 2 Display Mirror for more views
@mkloth edit the config.js
after the var config, add the electronOptionsvar config={ electronOptions:{ x:???? },where ??? is the width in pixels of your 1st display
mine is 1920 or Pi4 3840.
users that want them stacked (one on top of the other)
should try
y:???
where ??? is the height of the 1st display
instead of xI run my mm like this all the time so I can work w my editor on main and mm on secondary
-
RE: MMM-ModuleScheduler: need help
note you missed one _ (my fault in instructions) there is a root {} section that contains one too
:root { --_randomPhoto-blur-value: 0px; }#L1_randomPhoto, #L2_randomPhoto, #Ma1_randomPhoto, #Ma2_randomPhoto,
if you are going to use comma, then you need to replicate the actual tag too (I think)
#L1_randomPhoto img, #L2_randomPhoto img, #Ma1_randomPhoto img, #Ma2_randomPhoto img ,........note the id can be anything, you were using a string for the global schedule classname, you could use the same string
here is what I did and verified it worked (without using commas)
config{ module: 'MMM-RandomPhoto', position: 'fullscreen_below', config: { opacity: 0.3, animationSpeed: 500, updateInterval: 60, imageRepository:'localdirectory', id:"foo", repositoryConfig :{ path: '/Users/sam/Pictures' } } }, { module: 'MMM-RandomPhoto', position: 'fullscreen_below', config: { opacity: 0.3, animationSpeed: 500, updateInterval: 60, imageRepository:'localdirectory', id:"fribble", repositoryConfig :{ path: '/Users/sam/Pics' } } },custom.css
:root { --foorandomPhoto-blur-value: 0px; } #foorandomPhoto img { opacity: 0; position: absolute;; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } #fooArandomPhoto img.grayscale { filter: grayscale(100%); } #foorandomPhoto img.blur { filter: blur(var(--randomphoto-blur-value)); } #foorandomPhotoIcon { position: absolute; } #foorandomPhotoIcon.rpitop { top: 5px; } #foorandomPhotoIcon.rpibottom { bottom: 5px; } #foorandomPhotoIcon.rpiright { right: 10px; } #foorandomPhotoIcon.rpileft { left: 10px; } #foorandomPhotoIcon i { opacity: 1; } #foorandomPhotoIcon i.rpihidden { opacity: 0; } :root { --_=fribblerandomPhoto-blur-value: 0px; } #fribblerandomPhoto img { opacity: 0; position: absolute;; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } #fribblerandomPhoto img.grayscale { filter: grayscale(100%); } #fribblerandomPhoto img.blur { filter: blur(var(--randomphoto-blur-value)); } #fribblerandomPhotoIcon { position: absolute; } #fribblerandomPhotoIcon.rpitop { top: 5px; } #fribblerandomPhotoIcon.rpibottom { bottom: 5px; } #fribblerandomPhotoIcon.rpiright { right: 10px; } #fribblerandomPhotoIcon.rpileft { left: 10px; } #fribblerandomPhotoIcon i { opacity: 1; } #fribblerandomPhotoIcon i.rpihidden { opacity: 0; }I updated the module README.md to document the change needed there too
-
RE: Module help for variable
@rts58 you can use the dev console and put stops in the code and look at the variables
-
RE: MMM-MQTTScreenOnOff - alternative to PIR
@olex.s awesome… I have another mirror runtime, that I integrated MQTT for this very thing, I added HA discovery to create (‘screen’) devices in HA, that can be used in automations etc…
when I am away, or every night going to sleep (I don’t have home locale presence sensors yet)
I was thinking of doing the same thing with MagicMirror , but haven’t yet, so this is very interesting
do you expose the display on/off command strings, such that the user could change them in config if xrandr is not the command (wlr_randr for wayland window mgr)
-
RE: Timer on Module
@dsmtweaker its the darned cut/paste of the double quotes… in the web posting it shows the MS word document style quotes which cause an error with the javascript parser…
overtype those double quotes with the text editor…
-
RE: Hallway renovation for MagicMirror ;-)
@wmx are we ever really done?! lol
-
RE: How to make the background all black
@icripps in MM/css/main.css is the default color
html { cursor: default; overflow: hidden; background: #000; }which is as black as the system can make it…
monitors and tvs will still have a glow even showing black…
my tvs do not turn off thru programming, so I use hiding all modules for sleep, but as u noted they still glow at night.
-
RE: jquery module not working --- need help!
@justjim1220 we discussed this offline…
the jquery code is executing inline of the getDom() function, and the element selectors
$('#more') is same as (document.getElementById('more'))will fail as the content is not IN the html document yet
-
RE: MMM-HomeAssistant
@adamambarus great… now, suddenly (been running for near 2 years) MY mqtt server cannot be reached from outside the docker host… SO much fun…
-
RE: Problem server client configuration
if you are trying to start over an ssh session, you need to add this before the node clientonly
if [ -z “$DISPLAY” ]; then #If not set DISPLAY is SSH remote or tty
export DISPLAY=:0 # Set by default display
fi