A MagicMirror² helper module to display incident and component status from a StatusPage.io page.
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/spydersoft-consulting/MMM-StatusPageIo.git
Go to the modules folder:
cd MMM-StatusPageIo
Install the dependencies and transpile the Typescript
npm install
Add the module to the modules array in the config/config.js
file:
{
module: 'MMM-StatusPageIo'
},
Option | Default | Description |
---|---|---|
pageId |
'' | The Page ID of the StatusPage.io page to monitor. |
animationSpeed |
3000 | Optional The speed of the show and hide animations in milliseconds |
useHeader |
true |
Optional Whether or not to show the header |
maxWidth |
300px |
Optional The maximum width for this module |
initialLoadDelay |
3250 |
Optional How long to wait, in milliseconds, before the first status check |
updateInterval |
2 * 60 * 1000 |
Optional How often to check the status (defaults to 2 minutes) |
showComponents |
true |
Optional Output component status when set to true |
componentsToIgnore |
[] | Optional String array of components to ignore in display |
{
module: "MMM-StatusPageIo",
position: "bottom_right",
config: {
pageId: "abcdefgh"
}
},
To update the module to the latest version, use your terminal to go to your MMM-StatusPageIo module folder and type the following command:
git pull
npm install
If you haven't changed the modules, this should work without any problems.
Type git status
to see your changes, if there are any, you can reset them with git reset --hard
. After that, git pull should be possible.
Please read the Contribution Guide for details on contributing to the project.