Read the statement by Michael Teeuw here.
Trouble with non-broken "broken" images
-
@jedilkeme what do I mean broken?
did u look in the developers window console and elements tab?
ctrl-alt-i
tar in the filter field to see messages from,/about your module
elements tab can see the html being used
-
@sdetweil ctrl-alt-i has no effect???
-
@jedilkeme I’m sorry, brain fart, ctrl-shift-i
-
@jedilkeme what should I be looking for from there?
-
@jedilkeme in the console tab, you might see a 404 error, not found
in the elements tab you can see the actual html used. -
@sdetweil no 404 errors or anything else that pops out at me…
-
@jedilkeme and if you look at the html for the image, it is as you expected. and if you use that url.i a browser, the image is displayed?
-
@sdetweil ah, it wasn’t showing errors because I had it written to load at 5am… I set it to run in one minute, and I did receive a 404 for the images, permissions are all groovy but I noticed I can’t view the images from localhost:8080/path-to-images in the browser, but if I just put in the file path in the address bar I can see the images… then I ran npm start dev and I found an EADDRINUSE error. Stumped. Thanks your you assistance so far!
-
@jedilkeme said in Trouble with non-broken "broken" images:
I ran npm start dev and I found an EADDRINUSE error
pm2 already has an instance running… only one at a time please on the same port
pm2 status to see what pm2 manages
pm2 --help
to see all the things it CAN do
pm2 stop name or row number or all
pm2 stop allthen you can do the npm start …
when u are happy , then ctrl-q or ctrl-c to stop the npm start and pm2 start or restart row or name
then on reboot it will come back up…pm2’s JOB is to keep its managed apps running…
-
@jedilkeme path to images
http://localhost:8080is the MagicMirror folder
so files in a module would be
http://localhost:8080/modules/modulename/xxx.jpg (or whatever) -
@sdetweil that was my issue, I had assumed :8080/ what my main directory… fixed it. Thanks a bunch!
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