Keyboard Shortcut for Developer Tools
I am having a vexxing problem I am unable to figure out.
When I do fresh install of MM, all the pre-loaded modules run fine.
I have tried to install several different modules by running the git command in MagicMirror/modules like normal.
As soon as I do copy/paste the module script in config.js and hit SAVE MM cranks up but all there is is black screen with nothing on it. Not even the screen that says your config.js has a problem.
I then have to call up a terminal via ctl+alt+t and then pm2 stop MagicMirror and it stops.
What is keyboard shortcut to get the Developer Tools to run since hitting the alt key does not show VIEW so unable to reach them from that direction.
I’ve made about 4 MM’s no problems so I know the process. This fresh install of both Pi OS---->MagicMirror and I can not get modules to run.
@ankonaskiff17 you are using pm2 to start MM, and it is watching config.js for changes… and then restarts mm…
the black screen is probably a missing dependency in the new modules
pm2 logs --lines=100
will show the errors…
pm2 stop all
then use npm start in the MagicMirror folder til you fix the problems,
@ankonaskiff17 the dev window keyboard shortcut is
ankonaskiff17 last edited by ankonaskiff17
@sdetweil I’m baffled. I get a ton of errors, none of which appear to be anything I would even interact with.
I was wrestling with MMM-NewsFeedTicker when I first posted. So I commented out that portion of config.js restart, everything good.
So I tried a different module, MMM-SystemStats, same exact result, installed module in mm/modules like I am supposed to, copied the config portion, pasted in to config.js, restarted MM, black screen. Commented out its portion config file, restarted everything runs.
FWIW I have refortmatted sd card, installed Pi OS, then MM like 3 times, all with the same exact reslt
@ankonaskiff17 search the errors for ‘module not found’
clear the logs with pm2 flush
then do one run, stop and look at the logs…
–lines=100 might not be enough
u can send the output to a file so you can look at it
pm2 logs --lines=200 >somefile.txt
then edit somefile.txt
@sdetweil I’ve seen those but those all are parts that I don’t know how to fix. I get that it is telling me it needs a module but not sure where to get that module then how to subsequently install. I’m capturing the first error at each time stamp as I assume other following errors just downstream effect
Uncommenting SystemStats I get the below:
[ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
Recommenting SystemStats, uncommenting NewsFeedTicker I get:
[13.07.2021 15:46.38.418] [ERROR] Error: Cannot find module 'request'
@ankonaskiff17 right, request was remove in 2.16, as documented in the release notes
Bump node-ical to v0.13.0 (now last runtime dependency using deprecated request package is removed).
this is because it was dangerous and not going to be updated
SO, workaround, is to go to each module folder (reporting the error) and do
npm install request
ankonaskiff17 last edited by ankonaskiff17
@sdetweil That was the ticket, Is it just random modules use that request module or is there a common thread among the modules that require(d) use of that module?
Also, is that something module developers have to fix? I was using on my original MM an iFrame module and when I was going to use it this time there was a notice on developers readme.md with about an 80 sized font saying this module broken after that 2.16 update. I’ll leave it at that.
Do you all post issues and work-arounds in like this github repository?
I already know of a module that was doing same yesterday
@ankonaskiff17 i don’t post anything… cause no one reads them
this is a common old module lack of experience sloppiness…
they didn’t document in their package.json files that they used libraries ‘cause it just worked’
and now doesn’t.
for every library they use in their node_helper
they should do
npm install library_name --save
then when YOU get the module and do npm install IT will figure out if that module is ALREADY installed or not and if not install it…
@sdetweil Thank You. I do appreciate the help.
I’m going to post another question but it’s kinda-sorta a CSS and code editor question so will post there.