mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
deprecate module currentweather and weatherforecast
This commit is contained in:
parent
a3cb0b7b96
commit
948b6c8de8
@ -15,6 +15,7 @@ _This release is scheduled to be released on 2021-04-01._
|
|||||||
- Added CodeCov badge to Readme.
|
- Added CodeCov badge to Readme.
|
||||||
- Added CURRENTWEATHER_TYPE notification to currentweather and weather module, use it in compliments module.
|
- Added CURRENTWEATHER_TYPE notification to currentweather and weather module, use it in compliments module.
|
||||||
- Added `start:dev` command to the npm scripts for starting electron with devTools open.
|
- Added `start:dev` command to the npm scripts for starting electron with devTools open.
|
||||||
|
- Added logging when using deprecated modules weatherforecast or currentweather.
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
|
@ -66,22 +66,27 @@ var config = {
|
|||||||
position: "lower_third"
|
position: "lower_third"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
module: "currentweather",
|
module: "weather",
|
||||||
position: "top_right",
|
position: "top_right",
|
||||||
config: {
|
config: {
|
||||||
|
weatherProvider: "openweathermap",
|
||||||
|
type: "current",
|
||||||
location: "New York",
|
location: "New York",
|
||||||
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
|
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
|
||||||
appid: "YOUR_OPENWEATHER_API_KEY"
|
apiKey: "YOUR_OPENWEATHER_API_KEY"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
module: "weatherforecast",
|
module: "weather",
|
||||||
position: "top_right",
|
position: "top_right",
|
||||||
header: "Weather Forecast",
|
header: "Weather Forecast",
|
||||||
config: {
|
config: {
|
||||||
|
weatherProvider: "openweathermap",
|
||||||
|
type: "forecast",
|
||||||
|
weatherEndpoint: "/forecast",
|
||||||
location: "New York",
|
location: "New York",
|
||||||
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
|
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
|
||||||
appid: "YOUR_OPENWEATHER_API_KEY"
|
apiKey: "YOUR_OPENWEATHER_API_KEY"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# Module: Current Weather
|
# Module: Current Weather
|
||||||
|
|
||||||
|
> :warning: **This module is deprecated in favor of the [weather](https://docs.magicmirror.builders/modules/weather.html) module.**
|
||||||
|
|
||||||
The `currentweather` module is one of the default modules of the MagicMirror.
|
The `currentweather` module is one of the default modules of the MagicMirror.
|
||||||
This module displays the current weather, including the windspeed, the sunset or sunrise time, the temperature and an icon to display the current conditions.
|
This module displays the current weather, including the windspeed, the sunset or sunrise time, the temperature and an icon to display the current conditions.
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
*
|
*
|
||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
|
*
|
||||||
|
* This module is deprecated. Any additional feature will no longer be merged.
|
||||||
*/
|
*/
|
||||||
Module.register("currentweather", {
|
Module.register("currentweather", {
|
||||||
// Default module config.
|
// Default module config.
|
||||||
|
9
modules/default/currentweather/node_helper.js
Normal file
9
modules/default/currentweather/node_helper.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
const NodeHelper = require("node_helper");
|
||||||
|
const Log = require("../../../js/logger");
|
||||||
|
|
||||||
|
module.exports = NodeHelper.create({
|
||||||
|
// Override start method.
|
||||||
|
start: function () {
|
||||||
|
Log.warn(`The module '${this.name}' is deprecated in favor of the 'weather'-module, please refer to the documentation for a migration path`);
|
||||||
|
}
|
||||||
|
});
|
@ -1,5 +1,7 @@
|
|||||||
# Module: Weather Forecast
|
# Module: Weather Forecast
|
||||||
|
|
||||||
|
> :warning: **This module is deprecated in favor of the [weather](https://docs.magicmirror.builders/modules/weather.html) module.**
|
||||||
|
|
||||||
The `weatherforecast` module is one of the default modules of the MagicMirror.
|
The `weatherforecast` module is one of the default modules of the MagicMirror.
|
||||||
This module displays the weather forecast for the coming week, including an an icon to display the current conditions, the minimum temperature and the maximum temperature.
|
This module displays the weather forecast for the coming week, including an an icon to display the current conditions, the minimum temperature and the maximum temperature.
|
||||||
|
|
||||||
|
9
modules/default/weatherforecast/node_helper.js
Normal file
9
modules/default/weatherforecast/node_helper.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
const NodeHelper = require("node_helper");
|
||||||
|
const Log = require("../../../js/logger");
|
||||||
|
|
||||||
|
module.exports = NodeHelper.create({
|
||||||
|
// Override start method.
|
||||||
|
start: function () {
|
||||||
|
Log.warn(`The module '${this.name}' is deprecated in favor of the 'weather'-module, please refer to the documentation for a migration path`);
|
||||||
|
}
|
||||||
|
});
|
@ -3,6 +3,8 @@
|
|||||||
*
|
*
|
||||||
* By Michael Teeuw https://michaelteeuw.nl
|
* By Michael Teeuw https://michaelteeuw.nl
|
||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
|
*
|
||||||
|
* This module is deprecated. Any additional feature will no longer be merged.
|
||||||
*/
|
*/
|
||||||
Module.register("weatherforecast", {
|
Module.register("weatherforecast", {
|
||||||
// Default module config.
|
// Default module config.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user