# Magic Mirror 2

## Install

1. Install raspbian desktop
2. <https://github.com/sdetweil/MagicMirror_scripts>

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

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

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

The server will be available on localhost:8080. SSH port forward for local development.

## Upgrade

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

## Modules

Unofficial Pretty Module List:

<https://kristjanesperanto.github.io/MagicMirror-3rd-Party-Modules/>

Official Module List:

<https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-Party-Modules#module-list>

### MMM-iCal-ToDo

Syncs Nextcloud ToDo tasks (or any caldav link)

<https://github.com/nixnuex/MMM-iCal-ToDo>

```json
{
  module: "MMM-iCal-ToDo",
  position: "bottom_left",  // This can be any of the regions. Best results in left or right regions.
  config: {
    header: 'Groceries',
    colored: true,
    coloredSymbolOnly: false,
    todos: [
      {
        name: "Home Improvement",
        url: 'https://nextcloud.reeseapps.com/remote.php/dav/public-calendars/SdEDc4tS5z2YoNEP?export',
        symbol: 'check',
      },
    ],
  }
}
```

### MMM-CalendarExt2

<https://github.com/MMM-CalendarExt2/MMM-CalendarExt2?tab=readme-ov-file>

```json
{
  module: 'MMM-CalendarExt2',
  config: {
    calendars : [
      {
        url: "https://nextcloud.reeseapps.com/remote.php/dav/public-calendars/NGgfdRq4aaJGmtzT?export",
      },
    ],
    views: [
      {
        name: "Reese's Calendar",
        mode: "month",
        position: "bottom_bar",
      },
    ],
    scenes: [
      {
        name: "DEFAULT",
      },
    ],
  },
},
```