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 9.7k 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.
    • J Offline
      Jeff
      last edited by

      Hi,
      I’m trying to implement the weather module from thobach (https://github.com/thobach/MagicMirror2.git).
      The module is based on html. That’s new to me for the moduls… well everything is new to me on Magic Mirror.

      How do I get all the stuff in the “web” folder running?
      Where do I put each file and so on?
      Would be great if you will also tell me the commands :)

      Hope you can help me.
      Thanks

      bheplerB 1 Reply Last reply Reply Quote 0
      • R Offline
        roramirez Core Contributors
        last edited by

        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
        • bheplerB Offline
          bhepler Module Developer @Jeff
          last edited by

          @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 Reply Quote 1
          • J Offline
            Jeff
            last edited by

            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

            yawnsY 1 Reply Last reply Reply Quote 0
            • yawnsY Offline
              yawns Moderator @Jeff
              last edited by

              @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 Reply Quote 0
              • J Offline
                Jeff @yawns
                last edited by Jeff

                @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
                • yawnsY Offline
                  yawns Moderator
                  last edited by

                  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 Reply Quote 0
                  • J Offline
                    Jeff @yawns
                    last edited by

                    @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

                      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

                        @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?

                        strawberry 3.141S 1 Reply Last reply Reply Quote 0
                        • strawberry 3.141S Offline
                          strawberry 3.141 Project Sponsor Module Developer @Jeff
                          last edited by

                          @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
                          • chamaeleon82C Offline
                            chamaeleon82
                            last edited by

                            @Jeff - You can easily integrate this module with iFrame Module. You only need to update the iFrame page via javascript. Not perfect but running up until I’ve found a better way.

                            1 Reply Last reply Reply Quote 0

                            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
                            • 1 / 1
                            • 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