• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Kalliope assistant + MM

Scheduled Pinned Locked Moved Fun & Games
58 Posts 10 Posters 34.6k Views 12 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    dmwilsonkc
    last edited by Jun 28, 2018, 10:02 PM

    @sispheor So using the ctrl-shift-i I was able to find the error that it is throwing.

    Uncaught TypeError: console.log is not a function
    

    This error is repeated in the log each time it receives the post request.

    What are your suggestions?

    S 1 Reply Last reply Jun 28, 2018, 10:14 PM Reply Quote 0
    • S Away
      sdetweil @dmwilsonkc
      last edited by Jun 28, 2018, 10:14 PM

      @dmwilsonkc edit the MM/modules/MMM-kalliope/MMM-kalliope.js and change all console. to Log.

      console.log is ONLY allowed in the node_helper.js and Log.log is ONLY allowed in the module.js

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Jun 29, 2018, 1:43 PM Reply Quote 1
      • D Offline
        dmwilsonkc
        last edited by Jun 28, 2018, 10:50 PM

        @sispheor So… I figured out how to get rid of the error. I deleted line 86 of MMM-kalliope.js .

        console.log(this.name + " received a socket notification: " + notification + " - Payload: " + payload);
        

        Everything works fine for now. Not sure why this is, but I’m assuming the chromium browser does not like the console.log code, but I could be wrong.

        S 1 Reply Last reply Jun 29, 2018, 5:29 AM Reply Quote 0
        • S Offline
          sispheor @sdetweil
          last edited by Jun 29, 2018, 5:28 AM

          @sdetweil huumm… yes it is obvious that you have to call your magic mirror url. Including the port if you changed it.

          S 1 Reply Last reply Jun 29, 2018, 4:06 PM Reply Quote 0
          • S Offline
            sispheor @dmwilsonkc
            last edited by Jun 29, 2018, 5:29 AM

            @dmwilsonkc indeed it’s weird, I use this code as it in prod on my mirror without any issue.
            Maybe a recent update of chromium or MM.

            1 Reply Last reply Reply Quote 0
            • D Offline
              dmwilsonkc @sdetweil
              last edited by Jun 29, 2018, 1:43 PM

              @sdetweil Thanks for the info, I didn’t see it in time. I deleted the entire line of code. It worked after that. I will replace the line with your suggestion this evening.

              1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil
                last edited by Jun 29, 2018, 4:04 PM

                i have 5 lines of console.log on my MMM-kalliope.js

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @sispheor
                  last edited by Jun 29, 2018, 4:06 PM

                  @sispheor well, as a new MM user, obvious is not so…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sispheor
                    last edited by Jun 30, 2018, 8:58 AM

                    Guys, don’t hesitate to send a pull request to the project with your update. Including the “port” documentation part.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dmwilsonkc
                      last edited by Jul 2, 2018, 3:45 PM

                      @sispheor @sdetweil Hey guys, thanks for your help! I got things working over the weekend.

                      Here’s a short video.

                      Cheers!

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 5 / 6
                      5 / 6
                      • First post
                        43/58
                        Last post
                      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