mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
So finally I think this refactorin is ready to be reviewed :-) DONE: - [x] Removed all conversion functions for wind and temperature from specific weatherproviders - [x] Use internally only metric units: celsius for temperature, meters per seconds for wind - [x] Convert temp and wind into the configured units when displaying data on the UI - [x] look how beaufort calculation uses metrics, added knots as new windunit - [x] add more e2e tests Checked providers: - [x] Darksky - [x] EnvCanada - [x] OpenWeatherMap - [x] SMHI provider - [x] UK Met Office - [x] UK Met Office DataHub - [x] WeatherBit - [x] WeatherFlow - [x] WeatherGov TODO in different tickets: - check weatherproviders for usage of weatherEndpoint (as seen in https://github.com/MichMich/MagicMirror-Documentation/issues/131) -> see #2926 - cleanup precipations -> #2953 Co-authored-by: veeck <michael@veeck.de>
29 lines
562 B
JavaScript
29 lines
562 B
JavaScript
/* MagicMirror² Test config default weather
|
|
*
|
|
* By fewieden https://github.com/fewieden
|
|
* MIT Licensed.
|
|
*/
|
|
let config = {
|
|
modules: [
|
|
{
|
|
module: "weather",
|
|
position: "bottom_bar",
|
|
config: {
|
|
location: "Munich",
|
|
mockData: '"#####WEATHERDATA#####"',
|
|
windUnits: "beaufort",
|
|
showWindDirectionAsArrow: true,
|
|
showSun: false,
|
|
showHumidity: true,
|
|
roundTemp: true,
|
|
degreeLabel: true
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
|
if (typeof module !== "undefined") {
|
|
module.exports = config;
|
|
}
|