mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2025-03-13 01:08:19 -07:00
Compare commits
No commits in common. "347c9bd78c53c874451f87062c06809f112f43ab" and "90a7651f4095436dfb97094b9e2e5456f92d7478" have entirely different histories.
347c9bd78c
...
90a7651f40
2 changed files with 28 additions and 46 deletions
19
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
19
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
|
@ -10,10 +10,9 @@ A clear and concise description of what the bug is.
|
||||||
**To Reproduce**
|
**To Reproduce**
|
||||||
Steps to reproduce the behavior:
|
Steps to reproduce the behavior:
|
||||||
(Please paste any information on reproducing the issue, for example:)
|
(Please paste any information on reproducing the issue, for example:)
|
||||||
|
|
||||||
1. Go to '...'
|
1. Go to '...'
|
||||||
2. Click on '...'
|
2. Click on '....'
|
||||||
3. Scroll down to '...'
|
3. Scroll down to '....'
|
||||||
4. See error
|
4. See error
|
||||||
|
|
||||||
**Expected behavior**
|
**Expected behavior**
|
||||||
|
@ -24,20 +23,14 @@ 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.
|
have aptly described your issue in words, feel free to ignore/delete this section.
|
||||||
|
|
||||||
**Please fill out the following information;**
|
**Please fill out the following information;**
|
||||||
|
- Node version: [This can be obtained by running `node --version`]
|
||||||
- Node version: [This can be obtained by running `node -v` in your terminal]
|
- Have you updated to the latest MagicMirror core? [yes/no]
|
||||||
- Have you updated to the latest MagicMirror core? [yes/no]
|
- Please post the relevant part of your config file here:
|
||||||
- Please post the relevant part of your config file here:
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
(Paste the part of the config file here)
|
(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**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
|
|
@ -26,8 +26,6 @@ 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
|
You should ask other developers to add a notification to their modules, or add
|
||||||
one yourself!
|
one yourself!
|
||||||
|
|
||||||
To display what page you're on, I highly recommend checking out my [page indicator module][page indicator].
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
In your terminal, go to your MagicMirror's module directory:
|
In your terminal, go to your MagicMirror's module directory:
|
||||||
|
@ -42,49 +40,40 @@ Clone this repository:
|
||||||
git clone https://github.com/edward-shen/MMM-pages
|
git clone https://github.com/edward-shen/MMM-pages
|
||||||
```
|
```
|
||||||
|
|
||||||
## Update
|
Configure the module in your config.js file.
|
||||||
|
|
||||||
Go to the module’s directory inside your MagicMirror's module directory and pull the latest version:
|
*\<self-promotion>*
|
||||||
|
|
||||||
```bash
|
To display what page you're on, I'd highly recommend checking out my
|
||||||
cd ~/MagicMirror/modules/MMM-pages
|
[page indicator module][page indicator].
|
||||||
git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
## Configuration
|
*\<\\self-promotion>*
|
||||||
|
|
||||||
|
## Using the module
|
||||||
|
|
||||||
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*: Some of the module names used in the following example are fictitious.
|
Note: 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": [
|
"screenSaver": [ "clock", "MMM-SomeBackgroundImageModule" ],
|
||||||
"clock",
|
"admin": [ "MMM-ShowMeSystemStatsModule", "MMM-AnOnScreenMenuModule" ],
|
||||||
"MMM-SomeBackgroundImageModule"
|
|
||||||
],
|
|
||||||
"admin": [
|
|
||||||
"MMM-ShowMeSystemStatsModule",
|
|
||||||
"MMM-AnOnScreenMenuModule"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configuration options
|
## Configuration options
|
||||||
|
|
||||||
| Option | Type | Default Value | Description |
|
| Option | Type | Default Value | Description |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
|
@ -98,7 +87,7 @@ To use this module, add it to the modules array in the `config/config.js` file.
|
||||||
| `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