mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-12-22 08:45:09 -08:00
Format
This commit is contained in:
parent
7df1aaaa10
commit
d6dc57fe74
1 changed files with 25 additions and 16 deletions
39
readme.md
39
readme.md
|
@ -51,31 +51,40 @@ cd ~/MagicMirror/modules/MMM-pages
|
||||||
git pull
|
git pull
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using the module
|
## Configuration
|
||||||
|
|
||||||
To use this module, add it to the modules array in the `config/config.js` file.
|
To use this module, add it to the modules array in the `config/config.js` file.
|
||||||
|
|
||||||
Note: module names used in the following example are fictitious.
|
*Note*: Some of the module names used in the following example are fictitious.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
modules: [
|
|
||||||
{
|
{
|
||||||
module: 'MMM-pages',
|
module: "MMM-pages",
|
||||||
config: {
|
config: {
|
||||||
modules:
|
modules: [
|
||||||
[[ "newsfeed" ],
|
["newsfeed"],
|
||||||
[ "calendar", "compliments" ]],
|
["calendar", "compliments"]
|
||||||
fixed: [ "clock", "weather", "MMM-page-indicator" ],
|
],
|
||||||
|
fixed: [
|
||||||
|
"clock",
|
||||||
|
"weather",
|
||||||
|
"MMM-page-indicator"
|
||||||
|
],
|
||||||
hiddenPages: {
|
hiddenPages: {
|
||||||
"screenSaver": [ "clock", "MMM-SomeBackgroundImageModule" ],
|
"screenSaver": [
|
||||||
"admin": [ "MMM-ShowMeSystemStatsModule", "MMM-AnOnScreenMenuModule" ],
|
"clock",
|
||||||
},
|
"MMM-SomeBackgroundImageModule"
|
||||||
}
|
],
|
||||||
}
|
"admin": [
|
||||||
|
"MMM-ShowMeSystemStatsModule",
|
||||||
|
"MMM-AnOnScreenMenuModule"
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration options
|
### Configuration options
|
||||||
|
|
||||||
| Option | Type | Default Value | Description |
|
| Option | Type | Default Value | Description |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
|
@ -89,7 +98,7 @@ modules: [
|
||||||
| `rotationHomePage` | `int` | `0` | Time, in milliseconds, before automatically returning to the home page. If a home page is not set, this returns to the leftmost page instead. |
|
| `rotationHomePage` | `int` | `0` | Time, in milliseconds, before automatically returning to the home page. If a home page is not set, this returns to the leftmost page instead. |
|
||||||
| `rotationFirstPage` | *NA* | *NA* | **Deprecated**. Use `rotationHomePage` instead. |
|
| `rotationFirstPage` | *NA* | *NA* | **Deprecated**. Use `rotationHomePage` instead. |
|
||||||
| `homePage` | `int` | `0` | Which page index is the home page. If none is set, this returns to the leftmost page instead. |
|
| `homePage` | `int` | `0` | Which page index is the home page. If none is set, this returns to the leftmost page instead. |
|
||||||
| `useLockString` | `bool` | `true` | Whether or not to use a lock string to show or hide pages. If disabled, other modules may override when modules may be shown. _Advanced users only. Only override this if you know what you're doing._
|
| `useLockString` | `bool` | `true` | Whether or not to use a lock string to show or hide pages. If disabled, other modules may override when modules may be shown. *Advanced users only. Only override this if you know what you're doing.* |
|
||||||
|
|
||||||
For the `module` configuration option, the first element of the outer array
|
For the `module` configuration option, the first element of the outer array
|
||||||
should consist of elements that should be on the first page. The second element
|
should consist of elements that should be on the first page. The second element
|
||||||
|
|
Loading…
Reference in a new issue