• 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.

This might be a daft question, but...

Scheduled Pinned Locked Moved Development
27 Posts 6 Posters 17.7k Views 5 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
    alexyak
    last edited by Jul 29, 2016, 5:06 PM

    Visual Studio Code rocks! It’s relatively new, but it’s very lightweight, run on any platform, includes intellisense and bunch of addins. Allows you debugging in the node.js…

    1 Reply Last reply Reply Quote 0
    • P Offline
      paviro Admin
      last edited by paviro Jul 30, 2016, 4:10 PM Jul 30, 2016, 4:09 PM

      If you happen to have a Mac CodeRunner is amazing! It can compile and execute a lot of different programming languages and is really fast. Atom (Windows, Linux, Mac) is also really nice but I quite often find myself using CodeRunner instead because Atom needs so much CPU and is also a lot slower compared.

      We're all stories in the end. Just make it a good one, eh?

      – The Doctor

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mitchfarino Module Developer
        last edited by Sep 7, 2016, 1:48 PM

        Can I use Visual Studio?

        What type of project would I create?

        A 1 Reply Last reply Sep 7, 2016, 3:08 PM Reply Quote 0
        • A Offline
          alexyak @Mitchfarino
          last edited by Sep 7, 2016, 3:08 PM

          @Mitchfarino Most certainly you should be able to. There are node.js specific projects. You just need to install tools:
          https://beta.visualstudio.com/vs/node-js/

          M 1 Reply Last reply Sep 7, 2016, 3:09 PM Reply Quote 0
          • M Offline
            Mitchfarino Module Developer @alexyak
            last edited by Sep 7, 2016, 3:09 PM

            Thanks @alexyak , much appreciated!

            1 Reply Last reply Reply Quote 0
            • M Offline
              Mitchfarino Module Developer
              last edited by Sep 8, 2016, 7:15 PM

              Sorry, again

              Which of these projects would be the correct one?!

              0_1473362107099_node.PNG

              A 1 Reply Last reply Sep 8, 2016, 9:13 PM Reply Quote 0
              • A Offline
                alexyak @Mitchfarino
                last edited by Sep 8, 2016, 9:13 PM

                @Mitchfarino Sorry, I’ve not tried this yet myself, but have you tried to use this option that you have selected: “From Existing Node.js code”?

                M 1 Reply Last reply Sep 8, 2016, 9:34 PM Reply Quote 0
                • M Offline
                  Mitchfarino Module Developer @alexyak
                  last edited by Sep 8, 2016, 9:34 PM

                  @alexyak Sorted, I tried that and imported an existing module

                  Now I just to figure out what I’m doing now! :)

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Mitchfarino Module Developer
                    last edited by Mitchfarino Sep 8, 2016, 10:25 PM Sep 8, 2016, 10:24 PM

                    OK, I’m up and running, but I’m not sure how to parse my JSON result in to html.

                    I have this, but don’t know whether it’s correct

                    I just want to see if I can list the names from the results of my GET request

                    getDom: function () {
                        var wrapper = document.createElement("div");
                    
                        $.getJSON(this.url,
                            function (data) {
                                var tr;
                                for (var i = 0; i < data.length; i++) {
                                    tr = $('<tr/>');
                                    tr.append("<td>" + data[i].name + "</td>");
                    
                                    $('table').append(tr);
                                }
                                wrapper.append("<td>" + data[i].name + "</td>");
                            });
                        return wrapper;
                    

                    I’d like to note, this is all completely new to me, so I’m trying to learn as I go…

                    S 1 Reply Last reply Sep 8, 2016, 10:37 PM Reply Quote 0
                    • M Offline
                      Mitchfarino Module Developer
                      last edited by Sep 8, 2016, 10:34 PM

                      @strawberry-3-141 I saw you were online, so I’m shamelessly tagging you in my post in the hopes of some guidance :-(

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