mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2025-03-12 08:48:18 -07:00
Compare commits
5 commits
90a7651f40
...
347c9bd78c
Author | SHA1 | Date | |
---|---|---|---|
|
347c9bd78c | ||
|
d6dc57fe74 | ||
|
7df1aaaa10 | ||
|
5c0ca7259a | ||
|
cbfdbf5d14 |
2 changed files with 46 additions and 28 deletions
19
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
19
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
|
@ -10,9 +10,10 @@ A clear and concise description of what the bug is.
|
|||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
(Please paste any information on reproducing the issue, for example:)
|
||||
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
2. Click on '...'
|
||||
3. Scroll down to '...'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
|
@ -23,14 +24,20 @@ If applicable, add screenshots to help explain your problem. If you believe you
|
|||
have aptly described your issue in words, feel free to ignore/delete this section.
|
||||
|
||||
**Please fill out the following information;**
|
||||
- Node version: [This can be obtained by running `node --version`]
|
||||
- Have you updated to the latest MagicMirror core? [yes/no]
|
||||
- Please post the relevant part of your config file here:
|
||||
|
||||
- Node version: [This can be obtained by running `node -v` in your terminal]
|
||||
- Have you updated to the latest MagicMirror core? [yes/no]
|
||||
- Please post the relevant part of your config file here:
|
||||
|
||||
```json
|
||||
(Paste the part of the config file here)
|
||||
```
|
||||
- Please post any errors you see about MMM-Pages in the console (Hit F12 > Console when the Magic Mirror window is focused), or write **None** if there aren't any:
|
||||
|
||||
- Please post any errors you see about MMM-pages in the console (Hit F12 > Console when the MagicMirror window is focused), or write **None** if there aren't any:
|
||||
|
||||
```
|
||||
(Paste the error here)
|
||||
```
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
|
|
|
@ -26,6 +26,8 @@ Note that this module does not provide any method of manually changing the page!
|
|||
You should ask other developers to add a notification to their modules, or add
|
||||
one yourself!
|
||||
|
||||
To display what page you're on, I highly recommend checking out my [page indicator module][page indicator].
|
||||
|
||||
## Installation
|
||||
|
||||
In your terminal, go to your MagicMirror's module directory:
|
||||
|
@ -40,40 +42,49 @@ Clone this repository:
|
|||
git clone https://github.com/edward-shen/MMM-pages
|
||||
```
|
||||
|
||||
Configure the module in your config.js file.
|
||||
## Update
|
||||
|
||||
*\<self-promotion>*
|
||||
Go to the module’s directory inside your MagicMirror's module directory and pull the latest version:
|
||||
|
||||
To display what page you're on, I'd highly recommend checking out my
|
||||
[page indicator module][page indicator].
|
||||
```bash
|
||||
cd ~/MagicMirror/modules/MMM-pages
|
||||
git pull
|
||||
```
|
||||
|
||||
*\<\\self-promotion>*
|
||||
|
||||
## Using the module
|
||||
## Configuration
|
||||
|
||||
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
|
||||
modules: [
|
||||
{
|
||||
module: 'MMM-pages',
|
||||
module: "MMM-pages",
|
||||
config: {
|
||||
modules:
|
||||
[[ "newsfeed" ],
|
||||
[ "calendar", "compliments" ]],
|
||||
fixed: [ "clock", "weather", "MMM-page-indicator" ],
|
||||
hiddenPages: {
|
||||
"screenSaver": [ "clock", "MMM-SomeBackgroundImageModule" ],
|
||||
"admin": [ "MMM-ShowMeSystemStatsModule", "MMM-AnOnScreenMenuModule" ],
|
||||
},
|
||||
modules: [
|
||||
["newsfeed"],
|
||||
["calendar", "compliments"]
|
||||
],
|
||||
fixed: [
|
||||
"clock",
|
||||
"weather",
|
||||
"MMM-page-indicator"
|
||||
],
|
||||
hiddenPages: {
|
||||
"screenSaver": [
|
||||
"clock",
|
||||
"MMM-SomeBackgroundImageModule"
|
||||
],
|
||||
"admin": [
|
||||
"MMM-ShowMeSystemStatsModule",
|
||||
"MMM-AnOnScreenMenuModule"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
```
|
||||
|
||||
## Configuration options
|
||||
### Configuration options
|
||||
|
||||
| Option | Type | Default Value | Description |
|
||||
| --- | --- | --- | --- |
|
||||
|
@ -87,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. |
|
||||
| `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. |
|
||||
| `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
|
||||
should consist of elements that should be on the first page. The second element
|
Loading…
Reference in a new issue