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.

    Looking for a module to display logs in realtime

    Scheduled Pinned Locked Moved Solved Requests
    14 Posts 3 Posters 661 Views 3 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.
    • S Offline
      sdetweil @MyMirror
      last edited by sdetweil

      @MyMirror I’m not aware of a module that does this

      But it shouldn’t be hard to create

      tail /f /n:xxx filename

      Can get the data

      nodejs exec in the node_helper can launch tail and capture its stdout data

      Then use sendSocketNotification to send the data up to the browser side of the module to display, where the fontsize would be used

      The data will have to get its line ends (cr/lf) replaced by web line ends (
      )

      I think it would be better to put the fontsize in css file to keep all the styling options in one place. Module adds a class name to the div holding the data, and specifies a provided css file that has the class defined with the styles you want

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MyMirror @sdetweil
        last edited by

        @sdetweil
        Hi Sam,

        I haven’t written a module yet and I’m not very familiar with Linux – and even less so with nodejs, css and all the other stuff.
        Maybe someone out there would like to try their hand at programming such a module.

        1 Reply Last reply Reply Quote 0
        • S Offline
          schlomm @MyMirror
          last edited by

          @MyMirror I’ll give this a try. Ping me again if you haven’t Heard from me until the end of the week.

          M 2 Replies Last reply Reply Quote 2
          • M Offline
            MyMirror @schlomm
            last edited by

            @schlomm - great !

            1 Reply Last reply Reply Quote 0
            • M Offline
              MyMirror @schlomm
              last edited by

              @schlomm
              the requested ping :-)

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                schlomm @MyMirror
                last edited by

                @MyMirror Well done :) I’ve implemented a module last week - to give you a preview:
                With LOG-Level Highlighting:
                cbc5c327-03fb-452d-8ef2-f0c9ec916960-Screenshot 2025-10-22 170612.png

                Without Highlighting (because INFO, ERROR, WARN…) is not used:
                b878ec15-37a0-4e14-b9a8-72c862ff89e5-Screenshot 2025-10-22 170751.png

                Right now I’m struggeling with the issue that multiple instances do not show different logs but all the time the second configured. Do you need more than one instance :D?
                If I have some free time, I will upload the first version tomorrow or lately on Wednesday.

                See you :)

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @schlomm
                  last edited by

                  @schlomm you have to pass the instance id from the web as part of the request and send it back w the data. And the web side checks to match its id

                  sendSocketNotification from the helper is to ALL connected instances at once

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    schlomm
                    last edited by

                    @MyMirror Nevermind - I’ve made some changes and now all is working properly :) Your’re welcome to test it. If there is anything missing or an issue, please drop me a line.

                    0272f585-56b5-4106-a9c2-5552a624bdb6-image.png

                    • You can find the module here: https://github.com/schlomm/MMM-LogfileViewer
                    • I’ve also made a small post in the ShowCase section here: https://forum.magicmirror.builders/topic/19937/mmmlogfileviewer-view-your-logs-on-your-magicmirror
                    • And I’ve already updated the 3rd Party Module list - the module will be listed here a tomorrow.
                    M 1 Reply Last reply Reply Quote 1
                    • M Offline
                      MyMirror @schlomm
                      last edited by

                      @schlomm
                      That looks really good !!
                      I’ll install it tonight and test it out.
                      Thank you very much for your help!

                      S 1 Reply Last reply Reply Quote 1
                      • S Offline
                        schlomm @MyMirror
                        last edited by

                        @MyMirror Your’re welcome. If there any question left, feel free to give me a hint.
                        Gutes Gelingen und schöne Grüße :)

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