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 3.4k 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.
    • gizmo90G Offline
      gizmo90
      last edited by gizmo90

      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
      • gizmo90G Offline
        gizmo90
        last edited by

        i have fix it.

        edit MMM-syslog.js

        replace line 44

        setInterval(() => {
        

        with

        setInterval(function(){
        
        A 1 Reply Last reply Reply Quote 0
        • A Offline
          astrakid @gizmo90
          last edited by

          @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
          • gizmo90G Offline
            gizmo90
            last edited by gizmo90

            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

              @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

                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 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