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.

    Simple Text that reads a .txt file

    Scheduled Pinned Locked Moved Solved Requests
    15 Posts 2 Posters 4.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.
    • J Offline
      Jackkt @Jackkt
      last edited by

      @Jackkt Also the text file updates every 5 seconds by the results of the python script

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

        @Jackkt if the python script can be changed to just write to the screen, you can use spawn instead. And it can send u info every time it writes

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 1
        • J Offline
          Jackkt @sdetweil
          last edited by

          @sdetweil Hey, I get a syntax error from “const { exec } = require(‘child_process’); unexpected token {” its the one before exec. Get the same from spawn.
          Thanks

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            Jackkt @Jackkt
            last edited by

            @Jackkt Also without the {} the error is “unexpected identifier” for
            “spawn”

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

              @Jackkt that leading quote shouldn’t be there

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Reply Quote 1
              • J Offline
                Jackkt @sdetweil
                last edited by

                @sdetweil I was just quoting sorry it looks like:
                const { exec } = require(‘child_process’);

                and

                const exec = require(‘child_process’);

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

                  @Jackkt ok. I just cut/pasted it from a working module.

                  When posting code or config in the forum, please use the markup syntax. 3 backticks (key left of number 1) before your content on a separate line
                  And 3 more after on a separate line

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S J 2 Replies Last reply Reply Quote 1
                  • S Offline
                    sdetweil @sdetweil
                    last edited by

                    @sdetweil also, it doesn’t just go anywhere… I didn’t give u exact code, but close

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 1
                    • J Offline
                      Jackkt @sdetweil
                      last edited by

                      @sdetweil What module was that working module? Sorry im just not good at this stuff so I rather cut down a working module then make my own.

                      S 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Jackkt
                        last edited by

                        @Jackkt I don’t remember. I am away til Sunday.

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 1
                        • 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