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 Unsolved Requests
    7 Posts 3 Posters 161 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 Do not disturb
      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 Online
          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 Online
                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 :)

                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