Skip to content

MichaelByers/MMM-AC-3Day-Forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-AC-3Day-Forecast

3 day forecast

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!

Installation

  1. Navigate into your MagicMirror's modules folder and execute git clone https://github.com/MichaelByers/MMM-AC-3Day-Forecast. A new folder MMM-AC-3Day-Forecast will appear, navigate into it.

Config

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
	}
},

Dependencies

  • axios (installed via npm install)

Notes

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.

Thanks To...

About

MagicMirror 3day forecast using Accuweather

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published