Whether to present the module in colour or black-and-white. (e.g., no precipitation accumulation, no wind gusts, etc.) When set to true, this presents less information. This parameter has no effect if units is set to "imperial". Set this to true if you would like to see wind speed displayed in km/h. When "standard" or "metric" are used for units OpenWeather's API returns wind speed in m/s. One of the following: standard (e.g., degrees Kelvin), metric (e.g., degress Celcius), or imperial (e.g., degrees Fahrenheit). Set this to 0 for no fade.ĭefaults to the language set for Magic Mirror, but can be overridden with any of the language codes listed here: How quickly in milliseconds to fade the module out and in upon data refresh. If you have multiple instances of the module running, set one of them to a delay of a second or two to keep the API calls from being too close together. In milliseconds, how long to delay the request. How frequently, in minutes, to poll for data. You need to create a free account with OpenWeather in order to get an API key:įree tier is fine - this module will not make anywhere near 60 calls per minute / 1,000,000 requests per month.įind out your latitude and longitude here: Both work fine.Īpikey: "a1b2c3d4e5f6g7h8j9k0", //only string here Enter the new MMM-OpenWeatherForecast directory and execute npm install.Īt a minimum you need to supply the following required configuration parameters:Īpikey needs to be specified as a String, while latitude and longitude can be specified as either a String or a Number.Navigate into your MagicMirror modules folder and execute.If you're seeing nothing on your display where you expect this module to appear, make sure your MagicMirror version is at least 2.2.0. NOTE This module uses the Nunjucks templating system introduced in version 2.2.0 of MagicMirror. This maintains much of the same functionality and adds a few new features. This is a replacement module for MMM-DarkSkyForecast, now that Dark Sky no longer allows free API access. Using data from the OpenWeather One Call API. A weather module that displays current, hourly and daily forecast information
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |