Jacopo1891 / MMM-GoogleTrafficTimes

A MagicMirror module that shows travel times taking into account Google traffic information
16 stars 4 forks source link

Magic Mirror not show on screen at all after installation of module. #4

Closed cbuys closed 7 months ago

cbuys commented 7 months ago

The service starts, but there is just the desktop wallpaper on screen. The module config in config.js is below. If I comment out the module config, everything loads up as expected. The Google Cloud Console lists Maps JavaScript API, Geocoding API, and Distance Matrix API under the API key that I am using. I ran the debug command as directed in the README. That is also below. I am not seeing why this is broken. Any help is appreciated.

{
    module: "MMM-GoogleTrafficTimes",
        position: "top_left",
        config: {
            key: "Copied from Google and the 3 required API are enabled",
            origin: "my street address",
            destinations: [
                {
                    name: "work1",
                    address: "work1 street address",
                },
                {
                    name: "work2",
                    address: "work2 street address",
                },
                {
                    name: "work3",
                    address: "work3 street address",
                }
            ],
            updateInterval: 900000,
            avoidHighways: false,
            avoidTolls: false,
            mode: "driving",
            language: "en-US",
            offsetTime: 25,
            lastUpdate: true,
            timeLastUpdateWarning: 1,
            debug: true
        }
},

npm start dev | grep MMM-GoogleTrafficTimes [01.04.2024 15:26.34.019] [ERROR] (node:22214) UnhandledPromiseRejectionWarning: Error: Cannot find module 'core-js/modules/es.string.replace.js' Require stack:

Jacopo1891 commented 7 months ago

Hi! Have you have execute the install command after download? Once in ~/MagicMirror/modules/MMM-GoogleTrafficTimes run:

npm install

cbuys commented 7 months ago

Absolutely.

Jacopo1891 commented 7 months ago

Ok... Try to execute: npm install core-js

cbuys commented 7 months ago

Amazing. That fixed it! you rock.