This MagicMirror modules, shows latest winning Wheel of Fortune spin ID numbers. If your spin ID happens to be a winner then it will be highlighted for you.
Tested with:
- Raspberry Pi
- An installation of MagicMirror2
- npm
- OS level utilities curl, cut, awk, grep, etc...
- Uses data provided by www.wheeloffortunesolutions.com thus requires that the website have current data
Navigate into your MagicMirror's modules
folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/mlcampbe/MMM-SpinId
Navigate to the new MMM-SpinId
folder and install the node dependencies.
cd MMM-SpinId/ && npm install
Configure the module in your config.js
file.
Navigate into the MMM-SpinId
folder with cd ~/MagicMirror/modules/MMM-SpinId
and get the latest code from Github with git pull
.
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.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-SpinId',
position: 'top_center', // This can be any of the regions.
config: {
header: "Wheel of Fortune Spin-IDs",
updateInterval: 43200000, // every 12 hours
mySpinId: " MCxxxxxx", // your WOF spin id
winningColor: 'red', // color to use if you win
},
},
]
The following properties can be configured:
Option | Description |
---|---|
updateInterval |
How often does the content needs to be fetched? (Milliseconds)
Possible values: 1000 - 86400000
Default value: 43200000 (12 hours)
|
mySpinId |
What Wheel of Fortune spin ID to check
Default value: XXXXXX (dummy value, must be set)
|
winningColor |
If your spin ID is a winner what color to use
Default value: red
|
displayStyle |
Display the output in a single line or as bullet points.
Possible values: line or list
Default value: line
|