mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-28 09:01:44 +00:00
Add option to show hourly forecast in increments (#2998)
Adds new config option to show weather forecast for every X hour (default value is 1 which reflects the current behaviour) Also adds tests for hourly forecast Fixes #2996 Co-authored-by: veeck <michael@veeck.de>
This commit is contained in:
26
tests/configs/modules/weather/hourlyweather_options.js
Normal file
26
tests/configs/modules/weather/hourlyweather_options.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/* MagicMirror² Test config hourly weather options
|
||||
*
|
||||
* By rejas https://github.com/rejas
|
||||
* MIT Licensed.
|
||||
*/
|
||||
let config = {
|
||||
timeFormat: 12,
|
||||
|
||||
modules: [
|
||||
{
|
||||
module: "weather",
|
||||
position: "bottom_bar",
|
||||
config: {
|
||||
type: "hourly",
|
||||
location: "Berlin",
|
||||
mockData: '"#####WEATHERDATA#####"',
|
||||
hourlyForecastIncrements: 2
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== "undefined") {
|
||||
module.exports = config;
|
||||
}
|
Reference in New Issue
Block a user