• 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.

Problem MMM-syslog in Midori

Scheduled Pinned Locked Moved Solved Troubleshooting
midorisyslog
6 Posts 2 Posters 2.8k Views 2 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.
  • G Offline
    gizmo90
    last edited by gizmo90 Feb 3, 2017, 12:05 PM Jan 31, 2017, 6:17 PM

    Hi,
    i have a litte problem.
    Midori don’t show the Syslog module and i think it is a issue with the ECMA6 script or so.
    I had the same problem with MMM-Fuel but a manual fix is available (https://forum.magicmirror.builders/topic/922/modules-not-showing-up-on-kweb-or-midori)

    Only firefox and Chromium show the modul but on my rpi1 these browser needs to much resources.

    is a small fix for midori realistic or can I blow it into the wind?

    
    TypeError: Cannot read property 'push' of undefined
        at Class.module.exports.NodeHelper.create.start.storeLog (/var/www/mirror2/modules/MMM-syslog/node_helper.js:50:12)
        at /var/www/mirror2/modules/MMM-syslog/node_helper.js:36:10
        at Layer.handle [as handle_request] (/var/www/mirror2/node_modules/express/lib/router/layer.js:95:5)
        at next (/var/www/mirror2/node_modules/express/lib/router/route.js:131:13)
        at Route.dispatch (/var/www/mirror2/node_modules/express/lib/router/route.js:112:3)
        at Layer.handle [as handle_request] (/var/www/mirror2/node_modules/express/lib/router/layer.js:95:5)
        at /var/www/mirror2/node_modules/express/lib/router/index.js:277:22
        at Function.process_params (/var/www/mirror2/node_modules/express/lib/router/index.js:330:12)
        at Immediate.next (/var/www/mirror2/node_modules/express/lib/router/index.js:271:10)
        at Immediate.immediate._onImmediate (timers.js:423:18)
    
    

    0_1485886612745_mm.JPG

    1 Reply Last reply Reply Quote 0
    • G Offline
      gizmo90
      last edited by Feb 4, 2017, 9:13 AM

      i have fix it.

      edit MMM-syslog.js

      replace line 44

      setInterval(() => {
      

      with

      setInterval(function(){
      
      A 1 Reply Last reply Oct 25, 2017, 5:38 PM Reply Quote 0
      • A Offline
        astrakid @gizmo90
        last edited by Oct 25, 2017, 5:38 PM

        @gizmo90
        i have the same issue, but the change you mention doesn’t fix it.
        any hints?

        TypeError: Cannot read property 'push' of undefined
        

        but the http-request is sent successfully:

        {"status":"success","payload":{"type":"ALERT","message":"Testalert","silent":false,"timestamp":"2017-10-25T17:36:57.487Z"}}
        

        regards,
        astrakid

        1 Reply Last reply Reply Quote 0
        • G Offline
          gizmo90
          last edited by gizmo90 Oct 25, 2017, 5:44 PM Oct 25, 2017, 5:43 PM

          test this

          setInterval(function(){ this.updateDom(); }, 60000);

          instead of

          setInterval(() => {
          this.updateDom(60000);

          1 Reply Last reply Reply Quote 0
          • A Offline
            astrakid
            last edited by Oct 25, 2017, 6:16 PM

            @gizmo90 said in Problem MMM-syslog in Midori:

            setInterval(function(){ this.updateDom(); }, 60000);

            tried that already, but it doesn’t solve the issue.

            1 Reply Last reply Reply Quote 0
            • A Offline
              astrakid
              last edited by Oct 25, 2017, 6:20 PM

              found the issue: if the module is set to “top_bar”, then it forces this error. “top_right” works fine.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                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