A first setup of the new Weather Module

This commit is contained in:
Michael Teeuw
2017-09-21 16:38:18 +02:00
parent 8a101f9e9a
commit ef172592b8
5 changed files with 343 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
/* global Class */
/* Magic Mirror
* Module: Weather
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* This class is the blueprint for a day which includes weather information.
*/
// Currently this is focused on the information which is nessecery for the current weather.
// As soon as we start implementing the forecast, mode properties will be added.
class WeatherDay {
constructor() {
this.windSpeed = null
this.windDirection = null
this.sunrise = null
this.sunset = null
this.temperature = null
this.weatherType = null
}
};