Read the statement by Michael Teeuw here.
MMM-futar - how to add modules multiple time?
-
MMM-futar
https://github.com/balassy/MMM-FutarIn the description says that the module displays only a single stop and route data. But also has the ability to use more than one stop and route data. Which I would like to use.
Unfortunately I do not get what the dev thought about when he wrote the instructions how to do that. It says - on your mirror, add this module multiple times.
how to ad modul multiple times? Should I copy the module multiple times in the modules folder?
I did but it is just did not work. Also the module name has to be different, if its not, than overwrite each other or gives the same name with (“copy” at the end) in this case the core system wont work just black screen.
It is working somehow as it has got screenshoot on github but no example instructions how to add the module multiple times.
https://github.com/balassy/MMM-Futar/blob/master/doc/screenshot-colors.pngAnyone has an idea how can I solve this issue of mine?
P.s
Also if you want to install the module you do not need to ad this see below."
var config = {
modules: [
"
Also change the uppercase letter “F” to lowercase “f” in the module name. -
@sdetweil when removed the bit you suggested it is working now.
The thing is what i do not understand that it worked before removing the section from the config.js just only with one single item. Anyway thank you for your help guys! -
@0livia git clone module new_foldername
in new_foldername
rename all.old things to the new_foldername
edit the new_foldername.js
change the register() to use the new_foldername
and use new_foldername as the module name in config.js
-
@sdetweil ok thank you for pinging me to my issue. To double check that I got it right - what you are saying is basicly I have to copy (i dont use git) the moudule again in a different name for example mmm-futar1 and in that folder need to rename all the the mmm-futar to mmm-futar1, and in config js need to the the same thing. Is this correct?
I’m on my way to Aalsmeer (NL) as I’m a trucker :) I 'll be back on wednesday so give it a try next week. I ll give you feedack how it goes. -
@0livia yes correct. you can git clone
just add the new output foldername to the end of the command
and inside the one file have to change it too
-
@sdetweil Hi I have contacted the DevGuy and he said no need to clone the modules multiple times, I tried and do not work that way.
The solution what he told is not working for me either.
Here is what he said - you need to add the modules into the config.js file like this way.{
module: “MMM-Futar”,
position: “top_left”,
header: ‘Közvágóhíd -> Ráckeve’,
config: {
stopId: ‘BKK_009628’, // Közvágóhíd
routeId: 'BKK_H6,
}
},
{
module: “MMM-Futar”,
position: “top_left”,
header: ‘Ráckeve -> Közvágóhíd’,
config: {
stopId: ‘BKK_007947’, // Ráckeve
routeId: ‘BKK_H6’,
}
},
]
};I tried this way and it gives me a blank screen
here is my configAnyone has any idea about this issue of mine?
-
Hi @0livia, I had some trouble when I tried to locate modules at the same region…so I would use first to set one occurrence to top_left and the second to top_right.
-
@0livia black screen is because of a missing library
see https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/1
-
@sdetweil I started my mirror with the config a linked earlier.
This is my error in the terminal[09.12.2022 15:57.24.612] [LOG] Initializing new module helper …
[09.12.2022 15:57.24.612] [LOG] Module helper loaded: MMM-Futar
[09.12.2022 15:57.24.625] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Cannot read properties of undefined (reading ‘split’) -
@0livia can u show a few more lines? the stacktrace is there which will show the line causing the error
-
@sdetweil in your config posted above, u are missing a trailing quote mark
stopId: 'BKK_009628', // Közvágóhíd routeId: 'BKK_H6, <-----
but other than that your config works for me…
did you do npm install in the module folder?
did u add the request module as I noted before ?