Read the statement by Michael Teeuw here.
How I got my Magic Mirror working on a Raspberry Pi 0 (zero)
-
@Wieber Not to bother you much more but i still have one more question. When i try to access the MM like you said to change the config file i get an error.
pi@raspberrypi:~ $ /MagicMirror/Config/config.js.sample
-bash: /MagicMirror/Config/config.js.sample: No such file or directoryany idea?
-
@SebTota Uuhm, can’t check right now, but if I recall correctly the directory is /home/MagicMirror/Config/config.js.sample . It’s probably due to an error I made somewhere along the line (not installing in the preferred directory)
-
@Wieber I have a feeling that there was a problem installing MagicMirror because my SSH disconnected but I just continued through the steps. Do you think it would help to just run the command again to install the program or is there a way to update it and it would find if there are any files missing?
-
@SebTota Well I think there isn’t really anything wrong with your Mirror, since it shows the default page for when the Config.js is missing.
What you could do is search for the ‘config.js.sample’ file with the following command:
find -name “config.js.sample”
I haven’t used this command myself, but more info on it is found here: https://www.digitalocean.com/community/tutorials/how-to-use-find-and-locate-to-search-for-files-on-a-linux-vpsEdit: a loss in SSH connection doesn’t necessarily means that your Pi messed anything up, just like your PC can still run when your monitor disconnects. Although a connection loss could have a lot of reasons that would also mess up the Pi ofc ;)
-
This post is deleted! -
This post is deleted! -
This post is deleted! -
This post is deleted! -
Alright after some time I figured it out.
cd MagicMirror
cd config
sudo nano config.js
then the file should open.This is for the noobs like me who might need that.
-
@SebTota What @Wieber has forgotten to mention is that the
config.js.sample
file is the default configuration that is included with the mirror software. The mirror software itself is looking forconfig.js
. So the step that is missing is to copy the sample to the end file name. Once you have it copied over, this will become the file that you use to change your mirror’s behavior.You copy the file with this command:
cp ~/MagicMirror/config/config.js.sample ~/MagicMirror/config/config.js
You can then edit the
config.js
command as you have already discovered:nano ~/MagicMirror/config/config.js
Nano is the editor,config.js
is the file you are editing.