![]() ![]() Sadly I get a white screen, like when the config file is incorrect. ![]() I’m trying to dev a module too and I’m trying to debug too. A Raspberry Pi 4 runs MagicMirror and has its HDMI output connected to the display. When the mirror code fails for some reason, I can look in the console and try to figure out where the error lies. Client-side debug: Serveronly mode & using Chrome developer tools. The panel also allows me to see the actual HTML being returned (by selecting Elements at the top.) So any code that I write, I can verify the HTML bit, and I can follow along with any errors or other messages that I put in the code. javascript raspberry-pi smarthome mirror magicmirror domotics. With a growing list of installable modules, the MagicMirror allows you to convert your hallway or bathroom mirror into your personal assistant. All of that is completely independent of what’s actually being displayed on the Raspberri Pi’s monitor. MagicMirror is an open source modular smart mirror platform. I can write/change code in the editor, hit Save, then hit Refresh in Chrome and get instant feedback. And by hitting F12, I get the console panel that you see open, and at the bottom you can see the debugging messages that I put in the code to track. On the right is a Chrome browser open with the Raspberry Pi’s IP address. The files are being opened directly from the MagicMirror folder on the Raspberry Pi. On the left monitor is my code editor, split into two panels so I can look at multiple files at the same time. Note that this is a Windows machine with dual monitors. This is what my desktop looks like when I’m coding. With most browsers, you access this by pressing F12. The console.log() facility logs to the browser’s console log. Nothing would appear in the terminal, it’s not the STDOUT facility that you’re using. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |