• 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
  1. Home
  2. Bimtronic
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
B
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 2
  • Posts 11
  • Groups 0

Bimtronic

@Bimtronic

0
Reputation
1
Profile views
11
Posts
0
Followers
0
Following
Joined Nov 24, 2024, 10:39 AM
Last Online Dec 18, 2024, 4:57 AM

Bimtronic Unfollow Follow

Latest posts made by Bimtronic

  • RE: Fails to start... "Log.log is not a function"

    @sdetweil

    I disabled all modules, same errors.
    Disabled all but not the “alert”-module, same errors.

    I dont think is from the config, maybe the node.js file-system that is messed up.

    How do i uninstall MagicMirror and make a new clean install to start from scratch?

    posted in Troubleshooting
    B
    Bimtronic
    Dec 15, 2024, 7:53 AM
  • RE: Fails to start... "Log.log is not a function"

    @sdetweil

    I deleted MMM-SystemStats from my config.

    Still getting errors >

    mt@mt:~/MagicMirror $ npm start

    magicmirror@2.29.0 start
    DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

    [2024-12-11 19:48:33.034] [ERROR] App threw an error during load
    [2024-12-11 19:48:33.042] [ERROR] TypeError: Log.log is not a function
    at Object. (/home/mt/MagicMirror/js/app.js:16:5)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at cjsLoader (node:internal/modules/esm/translators:350:17)
    at ModuleWrap. (node:internal/modules/esm/translators:286:7)
    A JavaScript error occurred in the main process
    Uncaught Exception:
    TypeError: Log.log is not a function
    at Object. (/home/mt/MagicMirror/js/app.js:16:5)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at cjsLoader (node:internal/modules/esm/translators:350:17)
    at ModuleWrap. (node:internal/modules/esm/translators:286:7)

    posted in Troubleshooting
    B
    Bimtronic
    Dec 11, 2024, 6:49 PM
  • RE: Fails to start... "Log.log is not a function"

    @sdetweil

    Here it is, I really appreciate your help.

    let config = {
    	address: "localhost",				// 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 or empty, is "localhost"
    	port: 8080,
    	basePath: "/",					// The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
    									// you must set the sub path here. basePath must end with a /
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],		// 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"],
    
    	useHttps: false,	// Support HTTPS or not, default "false" will use HTTP
    	httpsPrivateKey: "",	// HTTPS private key path, only require when useHttps is true
    	httpsCertificate: "",	// HTTPS Certificate path, only require when useHttps is true
    
    	language: "sv",
    	locale: "sv-SV",
    	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
    	timeFormat: 24,
    	units: "metric",
    
    	modules: [
    
    
    {
    		module: 'MMM-SystemStats',
    		position: 'top_right', // This can be any of the regions.
    		// classes: 'small dimmed', // Add your own styling. OPTIONAL.
    		// header: 'System Stats', // Set the header text OPTIONAL
    		config: {
    			updateInterval: 10000, // every 10 seconds
    			align: 'right', // align labels
    			//header: 'System Stats', // This is optional
    			units: 'metric', // default, metric, imperial
    			view: 'textAndIcon',
    		},
    	},
    
    
    			{
    			module: "MMM-Online-State",
    			position: "bottom_right",
    			config: {
    				displaysymbol: true,
    				symbolOnline: "wifi",
    				colored: true,
    				colorOnline: "#fff",
    				colorOffline: "red",
                            }
                    },
    		{
    			module: "alert",
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		},
    		{
    			module: "calendar",
                            header: "Helgdagar",
                            position: "top_left",
                            config: {
    			maximumEntries: 5,
                                    calendars: [
                                            {
                                                    fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                    symbol: "calendar-check",
                                                    url: "webcal://localhost:8080/modules/ics/se_holidays.ics"
                                            }
                                    ]
                            }
                    },
    	//	{
    	//		module: "compliments",
    	//		position: "lower_third"
    	//	},
    		{
    			module: "weather",
    			position: "top_right",
    			config: {
    				weatherProvider: "openmeteo",
    				type: "current",
    				lat: 55.60587,
    				lon: 13.00073
    			}
    		},
    		{
    			module: "weather",
    			position: "top_right",
    			header: "Väder",
    			config: {
    				weatherProvider: "openmeteo",
    				type: "forecast",
    				lat: 55.60587,
    				lon: 13.00073
    			}
    		},
    		{
    			module: "newsfeed",
    			position: "top_bar",
    			config: {
    				feeds: [
    					{
    						title: "Sydsvenskan - Senaste nytt",
    						url: "https://www.sydsvenskan.se/feeds/feed.xml"
    					}
    				],
    				showSourceTitle: true,
    				showPublishDate: true,
    				broadcastNewsFeeds: true,
    				broadcastNewsUpdates: true
    			}
    		},
    
    
                            {
                            module: 'MMM-Globe',
                            position: 'middle_center',
                            config: {
                                    style: 'geoColor',
                                    imageSize: 300,
                                    ownImagePath:'',
                                    updateInterval: 10*60*1000
                            }
                    },
    	]
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") { module.exports = config; }
    
    posted in Troubleshooting
    B
    Bimtronic
    Dec 10, 2024, 6:45 AM
  • RE: Fails to start... "Log.log is not a function"

    @sdetweil

    mt@mt:~/MagicMirror $ npm start

    magicmirror@2.29.0 start
    DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

    [2024-12-09 15:22:44.863] [ERROR] App threw an error during load
    [2024-12-09 15:22:44.871] [ERROR] TypeError: Log.log is not a function
    at Object. (/home/mt/MagicMirror/js/app.js:16:5)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at cjsLoader (node:internal/modules/esm/translators:350:17)
    at ModuleWrap. (node:internal/modules/esm/translators:286:7)
    A JavaScript error occurred in the main process
    Uncaught Exception:
    TypeError: Log.log is not a function
    at Object. (/home/mt/MagicMirror/js/app.js:16:5)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at cjsLoader (node:internal/modules/esm/translators:350:17)
    at ModuleWrap. (node:internal/modules/esm/translators:286:7)

    posted in Troubleshooting
    B
    Bimtronic
    Dec 9, 2024, 2:23 PM
  • RE: Fails to start... "Log.log is not a function"

    @sdetweil

    mt@mt:~/MagicMirror $ npm install

    magicmirror@2.29.0 postinstall
    npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
    "

    magicmirror@2.29.0 install-vendor
    echo "Installing vendor files …
    " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

    Installing vendor files …

    up to date in 3s

    magicmirror@2.29.0 install-fonts
    echo "Installing fonts …
    " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

    Installing fonts …

    up to date in 3s
    MagicMirror² installation finished successfully!

    magicmirror@2.29.0 prepare
    [ -f node_modules/.bin/husky ] && husky || echo no husky installed.

    up to date in 56s

    208 packages are looking for funding
    run npm fund for details
    npm notice
    npm notice New patch version of npm available! 10.9.0 -> 10.9.2
    npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.2
    npm notice To update run: npm install -g npm@10.9.2
    npm notice

    posted in Troubleshooting
    B
    Bimtronic
    Dec 9, 2024, 9:03 AM
  • RE: Fails to start... "Log.log is not a function"

    @sdetweil

    I tried to run a new “npm install” in the MM-folder, but i still have the same errors.

    Is it advised to delete and reinstall Magic Mirror completely?

    posted in Troubleshooting
    B
    Bimtronic
    Dec 5, 2024, 6:38 AM
  • RE: Fails to start... "Log.log is not a function"

    @sdetweil

    I just ran “npm install” but it didnt solve this.

    Did you mean a package/module?

    mt@mt:~ $ npm install

    up to date, audited 79 packages in 21s

    22 packages are looking for funding
    run npm fund for details

    found 0 vulnerabilities

    posted in Troubleshooting
    B
    Bimtronic
    Dec 4, 2024, 8:30 PM
  • Fails to start... "Log.log is not a function"

    I got this after i installed some modules and updated packs.

    magicmirror@2.29.0 start
    DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

    [2024-12-04 21:05:31.188] [ERROR] App threw an error during load
    [2024-12-04 21:05:31.196] [ERROR] TypeError: Log.log is not a function
    at Object. (/home/mt/MagicMirror/js/app.js:16:5)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at cjsLoader (node:internal/modules/esm/translators:350:17)
    at ModuleWrap. (node:internal/modules/esm/translators:286:7)
    A JavaScript error occurred in the main process
    Uncaught Exception:
    TypeError: Log.log is not a function
    at Object. (/home/mt/MagicMirror/js/app.js:16:5)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1484:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at cjsLoader (node:internal/modules/esm/translators:350:17)
    at ModuleWrap. (node:internal/modules/esm/translators:286:7)

    How can i solve this?

    posted in Troubleshooting
    B
    Bimtronic
    Dec 4, 2024, 8:15 PM
  • RE: MMM-CalendarExt - Startup problem

    Im struggling to get anything to show in my setup for daily and current bars.
    MM_view.PNG

    I have three local ics-calendars in my MM-Folder that ive adressed in my config, only calendar for “upcoming” bar shows up.

    Config >

        modules: [
    
                {
                        module: 'MMM-CalendarExt',
                        position: "top_left",                           //anywhere. It is not related to real position of view
                        config: {                                       // Read below
                          system:{
                                        show: ['daily', 'upcoming', 'current'],
                                          locale: 'sv-SV',                      //when omitted, default value would be your system default locale by moment.js
                                          showEmptyView: 1,
                                          fullDayEventLocalize: 1,
                                          redrawInterval: 30*60*1000,   //minimum 60000
                                          useProfileConfig: 0,
                                          startProfile: ''
                        },
                          defaultView: {
                                          position: 'bottom_bar',
                                          positionOrder: -1,
                                          overflowRolling: 0,
                                          overflowHeight: 0,
                                          overflowDuration: 2,
                                          onlyStartingTime: 0,
                                          timeFormat: 'HH:mm',
                                          dateFormat: "MMM Do",
                                          fullDayEventDateFormat: "MMM Do",
                                          ellipsis: 0,
                                          limit:1,
                                          oneLineEvent:0,
                                          replaceTitle:[],
                                          classPattern:[],
                                          classPatternWhere:["title"],
                                          symbolPattern:[],
                                          symbolPatternWhere:["title"]
                        },
                          views: {
    
                                                weeks: {
                                                                showWeeks: 1,
                                                                weeksTitle: 'Veckor',
                                                                weeksFormat: 'wo',
                                                                weekdayFormat: 'dd',
                                                                titleFormat : 'MMM D',
                                                                overTitleFormat : 'MMM D',
                                                                counts: 2,
                                                       },
                                                daily: {
                                                            direction: 'row',
                                                            counts: 5,
                                                            titleFormat: "D",
                                                            overTitleFormat: "MMM D",
                                                            subtitleFormat: "ddd",
                                                        },
                                                weekly: {
                                                            direction: 'row',
                                                            counts: 4,
                                                            titleFormat: "wo",
                                                            overTitleFormat: "gggg wo",
                                                            subtitleFormat: "MMM Do",
                                                        },
    
    
                                                current: {
                                                            title: 'Aktuell',
                                                            useRelative: 1
                                                        },
                                                upcoming: {
                                                            title: 'Kommande',
                                                            useRelative: 1
                                                        },
                          },
                          defaultCalendar: {
                                                  profiles: [],
                                                  views: ['daily'],
                                                  symbol: "",
                                                  styleName: "",
                                                  replaceTitle:[],
                                                  classPattern: [],
                                                  classPatternWhere: ["title"],
                                                  symbolPattern: [],
                                                  symbolPatternWhere: ["title"],
                                                  maxEntries:50,
                                                  maxDays:180,
                                                  interval: 1800000,
                        },
    
    
                          calendars: [
                                                  {
                                                    name: "Namnsdagar",
                                                    url: "webcal://localhost:8080/modules/ics/namedays.ics",
                                                    profile: [],
                                                    views: ['daily', 'current', 'upcoming'],
                                                    styleName: "style1",
                                                    symbol: 'us@fi',
                                                    maxEntries: 50,
                                                    maxDays:365,
                                                    interval: 24*60*60*1000,
                                                  },
                                                  {
                                                    name: "Helgdagar",
                                                    url: "webcal://localhost:8080/modules/ics/se_holidays.ics",
                                                    profile: [],
                                                    views: ['daily', 'current', 'upcoming'],
                                                    styleName: "style1",
                                                    symbol: 'se@fi',
                                                    maxEntries: 50,
                                                    maxDays:365,
                                                    interval: 24*60*60*1000,
                                                  },
                                                  {
                                                    name: "Ansvarsvecka",
                                                    url: "webcal://localhost:8080/modules/ics/Ansvarsvecka.ics",
                                                    profile: [],
                                                    views: ['daily', 'current', 'upcoming'],
                                                    styleName: "style1",
                                                    symbol: 'se@fi',
                                                    maxEntries: 50,
                                                    maxDays:365,
                                                    interval: 24*60*60*1000,
                                                  },
                                        ],
    
                          }
                        },
    
               {
                        module: "calendar",
                        header: "Helgdagar",
                        position: "top_left",
                        config: {
                                calendars: [
                                        {
                                                fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                symbol: "calendar-check",
                                                url: "webcal://localhost:8080/modules/ics/se_holidays.ics"
                                        }
                                ]
                        }
                },
    
    posted in Troubleshooting
    B
    Bimtronic
    Nov 30, 2024, 6:38 AM
  • RE: MMM-CalendarExt - Startup problem

    @sdetweil I got it working reading some other threads :)

    Ran these inside the module-folder:

    npm install request

    npm install valid-url

    npm init -y

    There seems to be some problem though:

    # npm audit report

    request *
    Severity: moderate
    Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
    Depends on vulnerable versions of tough-cookie
    No fix available
    node_modules/request

    tough-cookie <4.1.3
    Severity: moderate
    tough-cookie Prototype Pollution vulnerability - https://github.com/advisories/GHSA-72xf-g2v4-qvf3
    No fix available
    node_modules/tough-cookie

    2 moderate severity vulnerabilities

    posted in Troubleshooting
    B
    Bimtronic
    Nov 24, 2024, 12:03 PM
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