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.

    I want to display txt files from outside at the bottom

    Scheduled Pinned Locked Moved Custom CSS
    30 Posts 2 Posters 9.8k 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 @史新瑞
      last edited by sdetweil

      @史新瑞 I do not understand your question

      display text files at the bottom?

      text from outside?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      史 1 Reply Last reply Reply Quote 0
      • 史 Offline
        史新瑞 @sdetweil
        last edited by

        @sdetweil Display the text stored in another TXT file at the bottom. This TXT file is not related to magicirror

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @史新瑞
          last edited by sdetweil

          @史新瑞 ok, maybe

          MMM-SimpleText

          from the 3rd party modules list
          https://github.com/MichMich/MagicMirror/wiki/3rd-Party-Modules

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          史 2 Replies Last reply Reply Quote 0
          • 史 Offline
            史新瑞 @sdetweil
            last edited by

            @sdetweil Thank you very much. I didn’t find it yesterday

            1 Reply Last reply Reply Quote 0
            • 史 Offline
              史新瑞 @sdetweil
              last edited by

              @sdetweil After installing this module, NPM Run Server is normal and NPM Run Start cannot be used

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @史新瑞
                last edited by

                @史新瑞 show messages

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                史 1 Reply Last reply Reply Quote 0
                • 史 Offline
                  史新瑞 @sdetweil
                  last edited by

                  @sdetweil There is no error message

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @史新瑞
                    last edited by

                    @史新瑞 if npm start doesn’t work, show me ALL the messages

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    史 1 Reply Last reply Reply Quote 0
                    • 史 Offline
                      史新瑞 @sdetweil
                      last edited by

                      @sdetweil Is it the information in the terminal

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @史新瑞
                        last edited by

                        @史新瑞 yes… you can redirect that to a file

                        npm start >somefile.txt 2>&1

                        wait…

                        then ctrl-c

                        then examine and post

                        make sure to pm2 stop all before npm start

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        史 2 Replies Last reply Reply Quote 0
                        • 史 Offline
                          史新瑞 @sdetweil
                          last edited by

                          @sdetweil 1.png

                          1 Reply Last reply Reply Quote 0
                          • 史 Offline
                            史新瑞 @sdetweil
                            last edited by

                            @sdetweil Sorry, I can’t find the document you said.

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @史新瑞
                              last edited by

                              @史新瑞 you must create it with the redirection operator >

                              same as windows. you can capture the output of a command to a file

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              史 1 Reply Last reply Reply Quote 0
                              • 史 Offline
                                史新瑞 @sdetweil
                                last edited by

                                @sdetweil npm ERR! code ENOENT
                                npm ERR! syscall open
                                npm ERR! path /home/pi/package.json
                                npm ERR! errno -2
                                npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
                                npm ERR! enoent This is related to npm not being able to find a file.
                                npm ERR! enoent

                                npm ERR! A complete log of this run can be found in:
                                npm ERR! /home/pi/.npm/_logs/2022-08-14T14_09_00_102Z-debug-0.log

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @史新瑞
                                  last edited by

                                  @史新瑞 again, not in the MagicMirror folder

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  史 1 Reply Last reply Reply Quote 0
                                  • 史 Offline
                                    史新瑞 @sdetweil
                                    last edited by

                                    @sdetweil Thank you for your patient guidance

                                    npm ERR! code ENOENT
                                    npm ERR! syscall open
                                    npm ERR! path /home/pi/package.json
                                    npm ERR! errno -2
                                    npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
                                    npm ERR! enoent This is related to npm not being able to find a file.
                                    npm ERR! enoent

                                    npm ERR! A complete log of this run can be found in:
                                    npm ERR! /home/pi/.npm/_logs/2022-08-14T14_13_06_562Z-debug-0.log

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @史新瑞
                                      last edited by

                                      @史新瑞 still not in the MagicMirror folder

                                      cd ~/MagicMirror
                                      npm start

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      史 1 Reply Last reply Reply Quote 0
                                      • 史 Offline
                                        史新瑞 @sdetweil
                                        last edited by

                                        @sdetweil Sorry, I misunderstood what you said just now

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @史新瑞
                                          last edited by sdetweil

                                          @史新瑞 MagicMirror is installed in a subfolder named MagicMirror

                                          the npm command reads the package.json file in the CURRENT folder to determine what to do

                                          npm means node package manager (n.p.m.)

                                          you are in the users home folder

                                          /home/pi

                                          no package.json here…

                                          you must change the current directory (cd command)

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil
                                            last edited by

                                            @史新瑞 said in I want to display txt files from outside at the bottom:

                                            start > somefile Txt

                                            you are missing the . somefile.txt

                                            also Linux is case sensitive
                                            so somefile.Txt is not the same as somefile.txt

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

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