Giter Site home page Giter Site logo

kurtern84 / mmm-weather-now Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nigel-daniels/mmm-weather-now

0.0 1.0 0.0 102 KB

MagicMirror 2 module to show the current weather using the Wunderground API.

License: MIT License

JavaScript 93.96% CSS 6.04%

mmm-weather-now's Introduction

MMM-Weather-Now

Weather now

This a module for the MagicMirror. This module shows weather conditions now using the Wunderground API. This is designed to compliment the MMM-3Day-Forecast module.

Note: The Weather company has ceased the free API that this module was based on, as a result this is now based on the API offered by BitWeather. If you are updating to this version then please don't forget to update your config too!

Installation

  1. Navigate into your MagicMirror's modules folder and execute git clone https://github.com/nigel-daniels/MMM-Weather-Now. A new folder MMM-Weather-Now will appear, navigate into it.
  2. Execute npm install to install the node dependencies.

Config

The entry in config.js can include the following options:

Option Description
api_key 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
lat This is the latitude of the location you want to get the weather for.

Type: number
Default value: 0.0
lon This is the longitude of the location you want to get the weather for.

Type: number
Default value: 0.0
units This is the units you want the weather reporting in.
Type string Use M for metric OR I for imperial.
Default value: M
lang This is the two character country code for the language you want the weather in, see all the supported codes here.*

Type string
Default value en
interval How often the weather is updated.

Type: integer
Default value: 900000 // 15 minutes

* This module itself only currently supports en and da for the text 'Now' and 'Feels like'. If you have translations for these please send them over and I'll add your language to the set I can support :)

Here is an example of an entry in config.js

{
	module: 	'MMM-Weather-Now',
	position: 	'top_right',
	config: {
		api_key:    'xxxxxxxxxxxxxxxxxxxxxx',
		lat:		37.3397352,
		lon:		-121.894958,
		units:		'M',
		lang:		'en',
		interval:   900000
	}
},

Dependencies

  • request (installed via npm install)

Notes

I hope you like this module, I know it duplicates many other weather modules, however I missed my home-brew mirrors weather information so I recreated it for MM2. Feel free to submit pull requests or post issues and I'll do my best to respond.

Thanks To...

mmm-weather-now's People

Contributors

nigel-daniels avatar stefanbols avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.