Read the statement by Michael Teeuw here.
I want to display txt files from outside at the bottom
-
@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! enoentnpm 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 -
@史新瑞 still not in the MagicMirror folder
cd ~/MagicMirror
npm start -
@sdetweil Sorry, I misunderstood what you said just now
-
@史新瑞 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)
-
@史新瑞 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 -
magicmirror@2.20.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[14.08.2022 22:18.26.091] [LOG] Starting MagicMirror: v2.20.0
[14.08.2022 22:18.26.095] [LOG] Loading config …
[14.08.2022 22:18.26.106] [LOG] Loading module helpers …
[14.08.2022 22:18.26.109] [LOG] No helper found for module: alert.
[14.08.2022 22:18.26.120] [LOG] Initializing new module helper …
[14.08.2022 22:18.26.120] [LOG] Module helper loaded: updatenotification
[14.08.2022 22:18.26.122] [LOG] No helper found for module: clock.
[14.08.2022 22:18.26.430] [LOG] Initializing new module helper …
[14.08.2022 22:18.26.431] [LOG] Module helper loaded: calendar
[14.08.2022 22:18.26.432] [LOG] No helper found for module: weather.
[14.08.2022 22:18.26.916] [LOG] Initializing new module helper …
[14.08.2022 22:18.26.917] [LOG] Module helper loaded: MMM-ImagesPhotos
[14.08.2022 22:18.26.918] [LOG] No helper found for module: helloworld.
[14.08.2022 22:18.26.919] [LOG] No helper found for module: MMM-SimpleText.
[14.08.2022 22:18.26.919] [LOG] All module helpers loaded.
[14.08.2022 22:18.27.092] [LOG] Starting server on port 8080 …
[14.08.2022 22:18.27.115] [LOG] Server started …
[14.08.2022 22:18.27.116] [LOG] Connecting socket for: updatenotification
[14.08.2022 22:18.27.117] [LOG] Starting module helper: updatenotification
[14.08.2022 22:18.27.117] [LOG] Connecting socket for: calendar
[14.08.2022 22:18.27.118] [LOG] Starting node helper for: calendar
[14.08.2022 22:18.27.118] [LOG] Connecting socket for: MMM-ImagesPhotos
[14.08.2022 22:18.27.119] [LOG] Starting node helper for: MMM-ImagesPhotos
[14.08.2022 22:18.27.119] [LOG] Sockets connected & modules started …
[14.08.2022 22:18.27.400] [LOG] Launching application.
[14.08.2022 22:18.29.770] [LOG] Create new calendarfetcher for url:
[14.08.2022 22:18.29.871] [INFO] Checking git for module: MMM-ImagesPhotos
[14.08.2022 22:18.29.965] [INFO] Checking git for module: MMM-SimpleText
[14.08.2022 22:18.29.985] [INFO] Checking git for module: default
[14.08.2022 22:18.32.381] [INFO] Calendar-Fetcher: Broadcasting 6 events. -
@史新瑞 also u didnt show me contents of MagicMirror folder… you showed user root
/home/pi -
-
@sdetweil Thank you, sir. Is my problem easy to solve? In addition, it’s nearly 23 o’clock here, so I will turn off my computer and use my mobile phone to receive your messages. However, in this way, I will not be able to correct it as quickly as possible according to your method
-
@史新瑞 i just installed the module…
can u show me the config.js for this?
the filePath parm is assuming the file is located in the same module folder…