@swvalenti Wrong double quote characters. Type it from the keyboard, not cut/paste
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-EventHorizon
-
modules using openweather api need review
we have received notice from Openweather, that they are shutting down the version 2.5 weather endpoint in June 2024
see
https://github.com/MagicMirrorOrg/MagicMirror/issues/3424for the weather provided by MagicMirror, you will also have to change or add the apiVersion property
see the documentation for exact format
https://docs.magicmirror.builders/modules/weather.html -
RE: MMM-euro2024
@0m4r the sample is missing the config:{} section
{ disabled: false, module: "MMM-euro2024", position: "bottom_center", defaults: { updateInterval: 60 * 1000, // one minute }, token: [YOUR_TOKEN] }should be
{ disabled: false, module: "MMM-euro2024", position: "bottom_center", config:{ updateInterval: 60 * 1000, // one minute token: [YOUR_TOKEN] } }your module passes this.config to the node_helper, but there is no config block, so only {} gets passed
this.sendSocketNotification(this.name + 'CONFIG', this.config); -
RE: Do you need to list moment and moment-timezone as dependencies in modules?
@dathbe you should list them , we can change the base at any time. there have been discussions to move away from moment.
we moved away from request, and etc,etc…
if you do require(x)
then you should list x in package.json -
RE: write access to git repository
YOU cannot push to the core repo… you can create a fork (under YOUR github userid), and then clone/push to THAT repo…
you can then propose changes to the master repo, by submitting a pull request, for your branch back to the master (and some branch, usually dev) … and the master owner can accept it , or not… and then merge it with the master branch whenever…
-
RE: MMM-voice ugly hdmi banner
@dazza120 right. That makes my script executable, so motion can execute it
Now u will see files appear in the MMM-SleepWake/motion folder
When the motion module detects motion, and when it ends.
My module uses those files
-
RE: Dealing with 404 url error in module.
@mykle1 sorry, you are using some words that don’t describe well what the problem is…
i THINK you said
when I try to load image files (local to the MM system), I use a URL string. that URL string is 'relative' to the base of my server, defined by '??????' (you didn't supply that) when a URL fails to load, I get error 404. (not found). but how do I handle this?you would add an onerror() handler for the img object
this will get called ONLY when there is an errorimg.onerror = funtion(event_object){
var img_with_error = event_object.currentTarget
img_with_error.src=??? the url of the failing image
}see https://www.w3schools.com/jsref/obj_event.asp
for more info in decoding the event object -
RE: MMM-voice ugly hdmi banner
@sdetweil u start the motion tool with sudo motion &
And u can see it’s actions in /var/log/motion/motion.log
The tail command will show you the last few lines (default 20) of a file
-
RE: Dealing with 404 url error in module.
@mykle1 note that your onerror handler could get stuck in a loop IF the forced replacement url also fails
-
RE: Any plan to replace "request" and "moment"?
@bkeyport now, and later, use the new library in your module and add it to your package.json.
then if the system provides it npm install will say ‘done’
and if the system doesn’t, then it will load it for your module… -
RE: i think i'm close?
@flipfloplife are you doing this over SSH? or if the PI is in console mode?
MM requires graphics mode… (display:0)
-
RE: Way to change horizontal or vertical tiling for regions?
@joey I did this before in css, I’ll have to look for it later,
But basically change the direction from column to rowOriginal
.region .container { display: flex; flex-direction: column; }Override in custom.css
.region.top.left .container { flex-direction: row; }Then put all those in the top-left position
-
RE: i think i'm close?
@flipfloplife you could still be in text mode (console mode) vs the graphical desktop…
xwindows is display:0, so you shouldn’t have to change anything…
-
RE: How to write and test CSS without going crazy..
@cluelesscarter not windowed, but you can minimize. alt, spacebar, n. same as on windows.
but, if u open the developers window ctrl-shift-i on the keyboard, and select the elements tab, u can edit the styles directly. and then you know what to.put in css/custom.css. then u can reload with ctrl-r or refresh in the developers pane
-
RE: HELP to use a cam with MM PLEASE
and my MMM-SleepWake works with webcam for motion detection and Lucy for remembering which modules are hidden when waking by voice or movement
and supports three different screen off approaches, tvservice (pi only) dpms (some monitors) and screen blanking(for auto power off devices, like TVs, EnergyStar)
-
RE: Can't install / Error with NPM / Electron not found
@mdhenriksen said in Can't install / Error with NPM / Electron not found:
libgconf-2.so.4
a google search for ‘error while loading shared libraries: libgconf-2.so.4’
see https://github.com/electron/electron/issues/1518 -
RE: Can't install / Error with NPM / Electron not found
note the missing g
libconf-2-4
should be
libgconf-2-4 -
RE: basic help
and for the future, if u have problems with config.js syntax errors, in the MagicMirror folder run
node tests/configs/check_config.jsit will report the problems. start & fix from the top
edit: wrong name for the checker… (removed extra s on the end) -
RE: npm dependencies not installed on fresh MM2 installation
yes, some of the platforms (Pi Stretch for example) are not installing npm and/or node as part of their initial installs…
see here https://www.battlehillmedia.com/installing-node-js-and-npm-on-raspberry-pi-3/