Understanding the precise magic mirror module locations within your system is the foundational step for any meaningful customization or troubleshooting. These modules are essentially the building blocks that transform a static display into an interactive information hub, and their placement dictates how the final experience is assembled. Navigating the file system to find these components requires a specific understanding of the standard directory structure, allowing you to effectively manage your installation.
The Core Module Repository
The primary directory where the majority of functionality resides is the modules folder, located within the main MagicMirror² installation directory. This is the central hub from which the application draws its core capabilities, and it contains a vast library of pre-built modules ready for activation. Each module is typically housed within its own dedicated subfolder, containing the necessary JavaScript, CSS, and configuration files. Accessing this directory is the first critical move for anyone looking to add, remove, or deeply configure their setup.
Default Installation Paths
Depending on your operating system and installation method, the base path for these modules can vary significantly. On a standard Linux installation, whether on a Raspberry Pi or a conventional PC, the path usually adheres to a predictable structure centered around user directories. Conversely, Windows and macOS environments follow their own conventions, often linking to the user's AppData or Application Support folders. Knowing these default locations saves considerable time when manually navigating the file system.
| Operating System | Typical Path to Modules Folder |
|---|---|
| Linux (Raspberry Pi, Ubuntu) | ~/MagicMirror/modules/ |
| Windows | C:\Users\<Username>\AppData\Roaming\npm\node_modules\MagicMirror\modules\ |
| macOS | /Users/<Username>/npm/node_modules/MagicMirror/modules/ |
Exploring Module Subdirectories
Once you have located the main modules folder, you will immediately notice a long list of directories, each representing a distinct module such as currentweather, calendar, or newsfeed. These subdirectories are self-contained units, encapsulating all the logic and assets required for that specific functionality. For security and organizational purposes, it is generally inadvisable to modify files directly within these core module folders, as updates can overwrite your changes.
The Configuration Connection
While the physical modules reside in the core directory, the magic mirror module locations that truly matter for your daily interaction are defined in the main configuration file. The config.js file acts as the conductor of the orchestra, telling the application which modules to load and where to position them on the virtual canvas. This is where you specify the geometry of your layout, determining which modules appear in the top left corner, center, or feed bar at the bottom.
Mapping the Layout
Within the configuration file, you will find a "modules" array that lists every active component and its corresponding magic mirror module locations on the screen. This mapping includes coordinate values for height and width, allowing for precise control over the visual hierarchy. By adjusting these values, you can resize a module to take up half the screen or shrink it to a small icon, giving you complete control over the user interface.
Custom Modules and User Land
For developers or advanced users who create bespoke functionality, the concept of magic mirror module locations extends beyond the default directory. Custom modules, which are not part of the standard distribution, should be placed in a dedicated folder at the root level of your MagicMirror² directory, typically named modules or custom. This separation ensures that your unique code is kept distinct from the core application, protecting it from being deleted during future updates and maintaining a clean separation of concerns.