• 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 implement specific module?

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 6 Posters 8.2k Views 6 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.
  • R Offline
    roramirez Core Contributors
    last edited by Nov 25, 2016, 2:06 PM

    How is based in HTML?, do you not have a API?.

    First, I recomend you check the module helloworld and currentweather of MagicMirror, is inside modules/default. Try understand how work.

    Also, check the MagicMirror² Module Development Documentation

    Easy module development with MagicMirror Module Template

    1 Reply Last reply Reply Quote 0
    • B Offline
      bhepler Module Developer @Jeff
      last edited by Nov 25, 2016, 2:08 PM

      @Jeff Installing new modules is a pretty easy process. In general, it goes like this:

      • Navigate to the modules directory at ~/MagicMirror/modules
      • Download the module code using git: git clone [url]
      • Run any commands that the module requires. This will vary by module
      • Update the config.js file to configure the new module. There should be an example in the module readme. sudo nano ~/MagicMirror/config/config.js
      • Restart your mirror so the new configuration will be implemented. npm restart
      J 1 Reply Last reply Nov 25, 2016, 8:29 PM Reply Quote 1
      • J Offline
        Jeff
        last edited by Nov 25, 2016, 2:31 PM

        Both of you thanks to your reply.

        I can handle adding “normal” moduls, like the instagram modul…

        But I think this one is build in a different way.

        Can somebody try to implement it and tell me how to do it?
        E.g. I’m not sure what to put in the config.js and I can’t find a documentation about it.

        Just have a look, what I meant with html file:
        https://github.com/thobach/MagicMirror2/tree/master/web

        Y 1 Reply Last reply Nov 25, 2016, 3:16 PM Reply Quote 0
        • Y Offline
          yawns Moderator @Jeff
          last edited by Nov 25, 2016, 3:16 PM

          @Jeff said in How to implement specific module?:

          But I think this one is build in a different way.

          Right, the mirror github repository looks like a custom and way more simple version of “our” magicmirror. So there is no easy way to add this as a module to the magicmirror. It is written in AngularJS instead of nodeJS.

          What exactly makes you want this module? It just derives data from weather underground.

          J 1 Reply Last reply Nov 25, 2016, 3:56 PM Reply Quote 0
          • J Offline
            Jeff @yawns
            last edited by Jeff Nov 25, 2016, 3:59 PM Nov 25, 2016, 3:56 PM

            @yawns
            okay thanks for explaining the languages.

            I like the way it looks, that’s the only reason I’m trying to get it.
            It shows the min and max temp of the next days in a graph

            alt text

            1 Reply Last reply Reply Quote 0
            • Y Offline
              yawns Moderator
              last edited by Nov 25, 2016, 4:45 PM

              Ok, got it.
              Maybe you want to check out https://forum.magicmirror.builders/topic/506/mmm-weatherchart
              I know it is not the same but it is the same direction.

              Otherwise you could post a request in the module / request forum, including this screenshot:
              Bild Text

              I don’t know if I find some time on Sunday to look at it.

              J 1 Reply Last reply Nov 25, 2016, 7:31 PM Reply Quote 0
              • J Offline
                Jeff @yawns
                last edited by Nov 25, 2016, 7:31 PM

                @yawns
                I pulled a request, let’s see what will come.

                Thanks for your hint and the other modul.
                I’ll give it a try

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jeff
                  last edited by Nov 25, 2016, 8:23 PM

                  Is it possible to get the moduls html running with the iframe modul?
                  https://github.com/desertblade/iFrame

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jeff @bhepler
                    last edited by Nov 25, 2016, 8:29 PM

                    @bhepler said in How to implement specific module?:

                    @Jeff Installing new modules is a pretty easy process. In general, it goes like this:

                    • Navigate to the modules directory at ~/MagicMirror/modules
                    • Download the module code using git: git clone [url]
                    • Run any commands that the module requires. This will vary by module
                    • Update the config.js file to configure the new module. There should be an example in the module readme. sudo nano ~/MagicMirror/config/config.js
                    • Restart your mirror so the new configuration will be implemented. npm restart

                    Do I also have to run npm update everytime auf git clone?
                    Or does that belong to point 3?

                    S 1 Reply Last reply Nov 26, 2016, 9:55 AM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @Jeff
                      last edited by Nov 26, 2016, 9:55 AM

                      @Jeff the instructions of @bhepler are based on magicmirror2 modules, the module you came up with is based on mm1 and is incompatible with mm2 so mayber there were also different instructions for them.

                      you can but you don’t have to run npm update if the readme doesn’t explicitly points it out, this command will only check for newer versions of the dependencies and update those.

                      Please create a github issue if you need help, so I can keep track

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