This a module for the MagicMirror. This module shows a 3 day forecast (today, tomorrow and the day after) using the AccuWeather API. It displays the overall weather condition, highest temperature, likely-hood of rain, average humidity, highest windspeed and its direction forecast. This is designed to compliment the default Current Weather module.
Note: This is now based on the API offered by Accuweather. You will need your own API key!
- Navigate into your MagicMirror's
modules
folder and executegit clone https://github.com/MichaelByers/MMM-AC-3Day-Forecast
. A new folderMMM-AC-3Day-Forecast
will appear, navigate into it.
The entry in config.js
can include the following options:
Option | Description |
---|---|
apikey |
Required This is the API key you need to use to request weather data from the Weather Underground site. Details on how to request an API key can be found here Type: string Default value: null |
loc |
This is the loaction code for the city you want to get the weather for, from Accuweather location API call. Type: number Default value: 347810 //Denver |
units |
Option to show units in metric. Type string Use true for metric OR false for imperial.Default value: M |
lang |
This is the two character country code for the language you want the weather in.* Type string Default value en-us |
interval |
How often the weather is updated. Type: integer Default value: 1800000 // 30 minutes |
Here is an example of an entry in config.js
{
module: 'MMM-AC-3Day-Forecast',
position: 'top_left',
config: {
apikey: 'xxxxxxxxxxxxxxxxxxxxxx',
loc: '347810',
metric: 'false',
lang: 'en-us',
interval: 1800000
}
},
- axios (installed via
npm install
)
I hope you like this module, I know it duplicates many other weather modules, however I preferred the data from Accuweather. Feel free to submit pull requests or post issues and I'll do my best to respond.
- Michael Teeuw for the MagicMirror2 framework that made this module possible.
- MMM-3Day-Forecast module I used and whose code I learnt a great deal from.