Giter VIP home page Giter VIP logo

magicmirror_scripts's Introduction

MagicMirror² installation and setup scripts

These scripts can be used to automate installation and release upgrades.

Install MagicMirror²

raspberry.sh is the installation script, upgraded from the core package.

To execute the install script, copy/paste this line into the terminal window on your device (I can't say PI, cause it works in a lot of other places too).

bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"

There is a log file, ~/install.log, created so we can be able to diagnose any problems.

Upgrade to next MagicMirror version from an existing installation

A new MagicMirror version is released once every 90 days (Jan 1, Apr 1, July 1, Oct 1).

upgrade-script.sh will do the git pull and npm install, and refresh npm setup for any modules that might need it. The script should handle all the work…

and give you a trial run of all that, only applying changes if you request them.

Give it a try!

This works on Mac as well, copy/paste the following line into the terminal window on your device:

bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"

No changes are made to the local repo or the working copy.

If you WANT to actually apply the changes, copy/paste this line into the terminal window on your device:

bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply

There is a log file (upgrade.log) in the MagicMirror/installers folder.

Additional scripts that may be useful

The install has two sections of additional support.

I have provided those separately here too, in case you need to run one separately, or changed your mind after install.

Turn off screen saver

screensaveroff.sh, copy/paste this line into the terminal window on your device:

bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/screensaveroff.sh)"

Add using pm2 to autostart MagicMirror at bootup

fixuppm2.sh, copy/paste this line into the terminal window on your device:

bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"

Switch to the Midori or firefox or surf browser

Especially low powered devices like the Pi Zero W might struggle running MagicMirror with the Chromium browser. A simpler browser like Midori, Firefox, or Surf might be a good alternative in this case. To switch to using the Midori browser, change the MagicMirror/installers/mm.sh file to include the external_browser variable like this:

cd ~/MagicMirror
export external_browser=midori
DISPLAY=:0 npm start

To switch to using the Firefox browser change the MagicMirror/installers/mm.sh file to include the external_browser like this:

cd ~/MagicMirror
export external_browser=firefox
DISPLAY=:0 npm start

To switch to using the Surf browser change the MagicMirror/installers/mm.sh file to include the external_browser like this:

cd ~/MagicMirror
export external_browser=surf
DISPLAY=:0 npm start

magicmirror_scripts's People

Contributors

asouchereau avatar bugsounet avatar guysoft avatar kristjanesperanto avatar oliverhi avatar sbonaime avatar sdetweil avatar torstein-eide avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.