• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

How to fix code for complete beginners

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 517 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.
  • A Offline
    ajurcoi
    last edited by May 10, 2020, 11:01 PM

    Hi,

    I’ve come to realize that I am going to be posting a lot on here. I want to try and mitigate that by finding out some way to fix my code on my own. I am not a programmer, I am a beginner carpenter that wanted to try my hand at this. Where can I get some very basic help on how to fix my code? I have tried linters but I don’t know enough about code to figure out where I am going wrong, even with the linters help. Would appreciate any feedback.

    1 Reply Last reply Reply Quote 0
    • B Offline
      BKeyport Module Developer
      last edited by May 11, 2020, 12:01 AM

      I’ve found jsfiddle.net will help me figure out most of how things work, then I add in the code for making it work with the mirror.

      The "E" in "Javascript" stands for "Easy"

      1 Reply Last reply Reply Quote 0
      • B Offline
        bhepler Module Developer
        last edited by May 11, 2020, 1:40 AM

        Most of the time, you will interact with your mirror by modifying the config.js file. Once you get comfortable with using that file to control how your mirror looks, you can then move on to writing code and creating new modules. But let’s start with the configuration.

        The config.js file is basically a JSON file with some stuff at the top & bottom. A good understand of JSON will get you most of the way there.

        The other bit of advice that I can throw out there is that when the mirror gives you a warning, it is just that: a warning. The warning will not need your attention most of the time. When the mirror tells you about an error, that’s when you have to change something. That will help you focus upon what is important and what is cluttering up your log files.

        1 Reply Last reply Reply Quote 0
        • B Offline
          BKeyport Module Developer
          last edited by May 11, 2020, 1:47 AM

          I’ll agree here - I made sure to have the mirror set up exactly how I wanted it, CSS, config, modules (minus one I couldn’t find) etc, long before I attempted to program my first module. . I then dove into the module building using the previously mentioned jsfiddle.net to create that missing module for me.

          Due to work obligations, I haven’t been able to get back to it, but I plan to do that soon, and fix up things that people have asked for.

          The "E" in "Javascript" stands for "Easy"

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            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