Read the statement by Michael Teeuw here.
How to implement specific module?
-
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 -
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
-
@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
- Navigate to the modules directory at
-
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 -
@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.
-
@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 -
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:
I don’t know if I find some time on Sunday to look at it.
-
@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 -
Is it possible to get the moduls html running with the iframe modul?
https://github.com/desertblade/iFrame -
@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? - Navigate to the modules directory at