MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. adamhrastich
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 11
    • Groups 0

    adamhrastich

    @adamhrastich

    0
    Reputation
    3
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    adamhrastich Unfollow Follow

    Latest posts made by adamhrastich

    • Google assistant

      Hello, I am trying to install google assistant into my Magic Mirror. I didn’t like the bugsounet program because it always required me to update and it, and the notification would cover up my screen. So I tried the gauravsacc program and I followed everything step by step but for some reason, I can’t get PubNub to work with it correctly I keep coming up with this error code (down below). Also, when I try to re-install PubNub it would say I need to update python but I’m on the latest version. Any ideas?

      [14.07.2021 10:55.39.818] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘pubnub’
      Require stack:

      • /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_helper.js
      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      posted in Troubleshooting
      A
      adamhrastich
    • RE: google assistant

      @adamhrastich I also have to yell Jarvis for it to hear me.

      posted in Troubleshooting
      A
      adamhrastich
    • google assistant

      I have just installed MMM-GoogleAssistant and got everything set up but for some reason, my microphone (USB) wasn’t working so I plugged in their other software MMM-Detector. Now it hears me say Jarvis and the assistant app pops up. After that, it stops listening to me entirely. Any Ideas?

      posted in Troubleshooting
      A
      adamhrastich
    • RE: unexpected token

      @sdetweil
      i think i found it thank you

      posted in Troubleshooting
      A
      adamhrastich
    • unexpected token

      ‘’'* Magic Mirror Config Sample
      *

      • By Michael Teeuw https://michaelteeuw.nl

      • MIT Licensed.

      • For more information on how you can configure this file

      • see https://docs.magicmirror.builders/getting-started/configuration.html#general

      • and https://docs.magicmirror.builders/modules/configuration.html
        */
        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: “en”,
        locale: “en-US”,
        logLevel: [“INFO”, “LOG”, “WARN”, “ERROR”], // Add “DEBUG” for even more logging
        timeFormat: 12,
        units: “imperial”,
        // serverOnly: true/false/“local” ,
        // local for armv6l processors, default
        // starts serveronly and then starts chrome browser
        // false, default for all NON-armv6l devices
        // true, force serveronly mode, because you want to… no UI on this device

        modules: [
        {
        module: “alert”,
        },
        {
        module: “updatenotification”,
        position: “top_bar”
        },
        {
        module: “clock”,
        position: “top_left”
        },
        {
        module: “calendar”,
        header: “US Holidays”,
        position: “top_left”,
        config: {
        calendars: [
        {
        symbol: “calendar-check”,
        url: “webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics” }
        ]
        }
        },
        {
        module: “compliments”,
        position: “lower_third”
        },
        {
        module: “weather”,
        position: “top_right”,
        config: {
        weatherProvider: “openweathermap”,
        type: “current”,
        location: “Menomonie”,
        locationID: “5262634”, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
        apiKey: “c2647e77b86f90ed7922d3cb499204d0”
        }
        },
        {
        module: “weather”,
        position: “top_right”,
        header: “Weather Forecast”,
        config: {
        weatherProvider: “openweathermap”,
        type: “forecast”,
        location: “Menomonie”,
        locationID: “5262634”, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
        apiKey: “c2647e77b86f90ed7922d3cb499204d0”
        }
        },
        {
        module: “newsfeed”,
        position: “bottom_bar”,
        config: {
        feeds: [
        {
        title: “New York Times”,
        url: “https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml”
        }
        ],
        showSourceTitle: true,
        showPublishDate: true,
        broadcastNewsFeeds: true,
        broadcastNewsUpdates: true
        }
        },

        ]
        };

      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== “undefined”) {module.exports = config;}
      ‘’’

      posted in Troubleshooting
      A
      adamhrastich
    • RE: config file errors?

      @bkeyport oh I’m stupid… thanks so much I can not believe I didn’t see that

      posted in Troubleshooting
      A
      adamhrastich
    • RE: config file errors?

      @bkeyport said in config file errors?:

      pi@raspberrypi:~/MagicMirror $ mv config.js.sample config.js
      mv: cannot stat ‘config.js.sample’: No such file or directory

      posted in Troubleshooting
      A
      adamhrastich
    • RE: config file errors?

      @bkeyport I did and this is what came up.
      ‘’'pi@raspberrypi:~/MagicMirror $ npm run config:check

      magicmirror@2.16.0 config:check /home/pi/MagicMirror
      node js/check_config.js

      [08.07.2021 18:14.40.549] [ERROR] File not found: /home/pi/MagicMirror/config/config.js
      /home/pi/MagicMirror/js/check_config.js:38
      throw new Error(“No config file present!”);
      ^

      Error: No config file present!
      at checkConfigFile (/home/pi/MagicMirror/js/check_config.js:38:9)
      at Object. (/home/pi/MagicMirror/js/check_config.js:73:1)
      at Module._compile (internal/modules/cjs/loader.js:778:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
      at startup (internal/bootstrap/node.js:283:19)
      at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! magicmirror@2.16.0 config:check: node js/check_config.js
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the magicmirror@2.16.0 config:check script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/pi/.npm/_logs/2021-07-08T23_14_40_681Z-debug.log
      ‘’’

      posted in Troubleshooting
      A
      adamhrastich
    • RE: config file errors?

      @bkeyport I ran that code and it says the file is not found

      posted in Troubleshooting
      A
      adamhrastich
    • RE: config file errors?

      it says when I run npm run config:check says it’s missing

      posted in Troubleshooting
      A
      adamhrastich