mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Merge pull request #2914 from khassel/remove-old-weather
Remove old weather modules
This commit is contained in:
commit
818fd7b490
@ -16,6 +16,10 @@ _This release is scheduled to be released on 2022-10-01._
|
|||||||
- New `showTimeToday` option in calendar module shows time for current-day events even if `timeFormat` is `"relative"`
|
- New `showTimeToday` option in calendar module shows time for current-day events even if `timeFormat` is `"relative"`
|
||||||
- Add hourly forecasts, apparent temperature & custom location name to SMHI weather provider
|
- Add hourly forecasts, apparent temperature & custom location name to SMHI weather provider
|
||||||
|
|
||||||
|
## Removed
|
||||||
|
|
||||||
|
- old weather modules `currentweather` and `weatherforecast`
|
||||||
|
|
||||||
## Updated
|
## Updated
|
||||||
|
|
||||||
- Removed DAYAFTERTOMORROW from English
|
- Removed DAYAFTERTOMORROW from English
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
/* MagicMirror²
|
|
||||||
* Module: CurrentWeather
|
|
||||||
*
|
|
||||||
* By Michael Teeuw https://michaelteeuw.nl
|
|
||||||
* MIT Licensed.
|
|
||||||
*
|
|
||||||
* This module is deprecated. Any additional feature will no longer be merged.
|
|
||||||
*/
|
|
||||||
Module.register("currentweather", {
|
|
||||||
// Define start sequence.
|
|
||||||
start: function () {
|
|
||||||
Log.info("Starting module: " + this.name);
|
|
||||||
},
|
|
||||||
|
|
||||||
// Override dom generator.
|
|
||||||
getDom: function () {
|
|
||||||
var wrapper = document.createElement("div");
|
|
||||||
wrapper.className = this.config.tableClass;
|
|
||||||
wrapper.innerHTML =
|
|
||||||
"<style>text-decoration: none</style>" +
|
|
||||||
"This module is deprecated since release v2.15 and removed with v2.19." +
|
|
||||||
'<br>Please use the `weather` module as replacement, more info in the <a href="https://docs.magicmirror.builders/modules/weather.html" style="color: #ffffff">documentation</a>.';
|
|
||||||
wrapper.className = "dimmed light small";
|
|
||||||
return wrapper;
|
|
||||||
},
|
|
||||||
|
|
||||||
// Override getHeader method.
|
|
||||||
getHeader: function () {
|
|
||||||
return "deprecated currentweather";
|
|
||||||
}
|
|
||||||
});
|
|
@ -4,7 +4,7 @@
|
|||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
const defaultModules = ["alert", "calendar", "clock", "compliments", "currentweather", "helloworld", "newsfeed", "weatherforecast", "updatenotification", "weather"];
|
const defaultModules = ["alert", "calendar", "clock", "compliments", "helloworld", "newsfeed", "updatenotification", "weather"];
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
if (typeof module !== "undefined") {
|
if (typeof module !== "undefined") {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Weather Module
|
# Weather Module
|
||||||
|
|
||||||
This module aims to be the replacement for the current `currentweather` and `weatherforcast` modules. The module will be configurable to be used as a current weather view, or to show the forecast. This way the module can be used twice to fulfill both purposes.
|
This module will be configurable to be used as a current weather view, or to show the forecast. This way the module can be used twice to fulfill both purposes.
|
||||||
|
|
||||||
For configuration options, please check the [MagicMirror² documentation](https://docs.magicmirror.builders/modules/weather.html).
|
For configuration options, please check the [MagicMirror² documentation](https://docs.magicmirror.builders/modules/weather.html).
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
|
|
||||||
/* MagicMirror²
|
|
||||||
* Module: CurrentWeather
|
|
||||||
*
|
|
||||||
* By Michael Teeuw https://michaelteeuw.nl
|
|
||||||
* MIT Licensed.
|
|
||||||
*
|
|
||||||
* This module is deprecated. Any additional feature will no longer be merged.
|
|
||||||
*/
|
|
||||||
Module.register("weatherforecast", {
|
|
||||||
// Define start sequence.
|
|
||||||
start: function () {
|
|
||||||
Log.info("Starting module: " + this.name);
|
|
||||||
},
|
|
||||||
|
|
||||||
// Override dom generator.
|
|
||||||
getDom: function () {
|
|
||||||
var wrapper = document.createElement("div");
|
|
||||||
wrapper.className = this.config.tableClass;
|
|
||||||
wrapper.innerHTML =
|
|
||||||
"<style>text-decoration: none</style>" +
|
|
||||||
"This module is deprecated since release v2.15 and removed with v2.19." +
|
|
||||||
'<br>Please use the `weather` module as replacement, more info in the <a href="https://docs.magicmirror.builders/modules/weather.html" style="color: #ffffff">documentation</a>.';
|
|
||||||
wrapper.className = "dimmed light small";
|
|
||||||
return wrapper;
|
|
||||||
},
|
|
||||||
|
|
||||||
// Override getHeader method.
|
|
||||||
getHeader: function () {
|
|
||||||
return "deprecated weatherforecast";
|
|
||||||
}
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user