Read the statement by Michael Teeuw here.
Loading parts of config from external json file
-
@melonlord u can’t load from external file.
it loads in browser, which doesn’t allow file I/o
u might want to looks at my MMM-Config app
which presents a form to manage config from any web browser phone, tablet , laptop or desktop
-
@sdetweil shame about that.
While what you have is nice, it’s not exactly what I’m looking for. I guess I’ll have to look into some other smart mirror platforms.
Thanks
-
@melonlord about the only thing that would work is to create another file with your ‘includes’
and preprocess it to generate the config.js
add another step to the mm.sh before npm start -
@sdetweil the preprocessor idea is actually pretty good!
From initial testing it seems to work! There is still hope :D
-
@melonlord u could also fix the package.json start command to run a script, or chain the command, so that not starting with mm.sh would still work. move the preprocess step out of mm.sh