@cowboysdude said in MMM-Snow Activation at Month:
var D = new Date();
var month = D.getmonth;
If (month === “11”) {
magic happens here…
}
ok i found the Problem
not var month = D.getmonth; but var month = D.getmonth();
@cowboysdude said in MMM-Snow Activation at Month:
var D = new Date();
var month = D.getmonth;
If (month === “11”) {
magic happens here…
}
ok i found the Problem
not var month = D.getmonth; but var month = D.getmonth();
I found the issue.
Change in capture.py
from config import ToolsConfig -> from .config import ToolsConfig
Hello,
this is my Problem after i update MagicMirror.
[20.10.2021 11:13.03.190] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘request’
Require stack:
This “default_app.asar/” is only a file not a Folder!
@cowboysdude said in MMM-Snow Activation at Month:
var D = new Date();
var month = D.getmonth;
If (month === “11”) {
magic happens here…
}
ok i found the Problem
not var month = D.getmonth; but var month = D.getmonth();
It’s works not :grimacing_face:
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
const DISABLED = {};
DISABLED.clock = false;
},
var config = {
address: "0.0.0.0", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
port: 8080,
ipWhitelist: [], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
language: "de",
timeFormat: 24,
units: "metric",
modules: [
{
module: "alert",
classes: 'default everyone',
},
{
module: "updatenotification",
position: "top_bar",
classes: 'default everyone',
},
{
module: "clock",
position: "top_left",
classes: 'default everyone',
//disabled: DISABLED.clock
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
@michael5r said in One-line switch to enable / disable modules:
I’ve done this in my config.js file:
Where do you placesd this in you config. Like this?
modules: [
const DISABLED = {};
DISABLED.clock = false;
}
{
module: "alert",
classes: 'default everyone',
},
{
module: "updatenotification",
position: "top_bar",
classes: 'default everyone',
},
{
module: "clock",
position: "top_left",
classes: 'default everyone',
disabled: DISABLED.clock
},
]
};
disabled: “true”, it doesnt work
The Modul MMM-GoogleBirthdayProvider dont work. It comes no issue at the console…Everything starts normally and without errors
At the Screen is only the Message : No Dates
When I enter the calendar URL into the browser.
http://localhost:8080/mmm-googlebirthdayprovider
Then I get my .ics.
So the connection seems to fit perfectly. But where is the Problem now?
I become this Error…
[GSL] Trying to login
(node:17281) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Evaluation failed:
TypeError: Cannot read property ‘click’ of null
at puppeteer_evaluation_script:2:44
(node:17281) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated.
In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Lost my settings. Now I’m faced with the problem again. It doesn’t work. Is it correct that d.getmonth returns the value 11 for December?
I found the issue.
Change in capture.py
from config import ToolsConfig -> from .config import ToolsConfig
Hello ,
i had the same Problem. Clean Install from here…
" https://github.com/normyx/MMM-Facial-Recognition-OCV3 "
pi@raspberrypi:~/MagicMirror/modules/MMM-Facial-Recognition-OCV3 $ sudo python3 tools.capture.py
Traceback (most recent call last):
File “tools.capture.py”, line 9, in
from lib.tools.capture import ToolsCapture
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/tools/capture.py”, line 19, in
from config import ToolsConfig
ImportError: cannot import name ‘ToolsConfig’