update config.js.sample to use openmeteo as weather provider (#3476)

which needs no api key.

I think this is a better choice than the old one because new users which
use this config as starting point will now see weather data instead of
`loading...`
This commit is contained in:
Karsten Hassel 2024-06-22 21:23:58 +02:00 committed by GitHub
parent 9cbd30f296
commit 4c748a4d32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 14 deletions

View File

@ -17,8 +17,9 @@ _This release is scheduled to be released on 2024-07-01._
### Updated ### Updated
- [chore] Update dependencies including electron to v31 - [core] Update dependencies including electron to v31
- [core] use node >= v20 - [core] use node >= v20
- [core] Update `config.js.sample` to use openmeteo as weather provider which needs no api key
### Fixed ### Fixed
@ -37,7 +38,7 @@ For more info, please read the following post: [A New Chapter for MagicMirror: T
### Added ### Added
- Output of system information to the console for troubleshooting (#3328 and #3337), ignore errors under aarch64 (#3349) - Output of system information to the console for troubleshooting (#3328 and #3337), ignore errors under aarch64 (#3349)
- [chore] Add `eslint-plugin-package-json` to lint the `package.json` files (#3368) - [core] Add `eslint-plugin-package-json` to lint the `package.json` files (#3368)
- [weather] `showHumidity` config is now a string describing where to show this element. Supported values: "wind", "temp", "feelslike", "below", "none". (#3330) - [weather] `showHumidity` config is now a string describing where to show this element. Supported values: "wind", "temp", "feelslike", "below", "none". (#3330)
- electron-rebuild test suite for electron and 3rd party modules compatibility (#3392) - electron-rebuild test suite for electron and 3rd party modules compatibility (#3392)
- Create MM² icon and attach it to electron process (#3407) - Create MM² icon and attach it to electron process (#3407)
@ -49,8 +50,8 @@ For more info, please read the following post: [A New Chapter for MagicMirror: T
- Use node prefix for build-in modules (#3340) - Use node prefix for build-in modules (#3340)
- Rework logging colors (#3350) - Rework logging colors (#3350)
- Update pm2 to v5.3.1 with no allow-ghsas (#3364) - Update pm2 to v5.3.1 with no allow-ghsas (#3364)
- [chore] Update husky and let lint-staged fix ESLint issues - [core] Update husky and let lint-staged fix ESLint issues
- [chore] Update dependencies including electron to v29 (#3357) and node-ical - [core] Update dependencies including electron to v29 (#3357) and node-ical
- Update translations for estonian (#3371) - Update translations for estonian (#3371)
- Update electron to v29 and update other dependencies - Update electron to v29 and update other dependencies
- [calendar] fullDay events over several days now show the left days from the first day on and 'today' on the last day - [calendar] fullDay events over several days now show the left days from the first day on and 'today' on the last day
@ -72,9 +73,9 @@ For more info, please read the following post: [A New Chapter for MagicMirror: T
- added message in case where config.js is missing the module.export line PR #3383 - added message in case where config.js is missing the module.export line PR #3383
- Fixed an issue where recurring events could extend past their recurrence end date (#3393) - Fixed an issue where recurring events could extend past their recurrence end date (#3393)
- Don't display any `npm WARN <....>` on install (#3399) - Don't display any `npm WARN <....>` on install (#3399)
- [chore] Moved suncalc dependency to production from dev, as it is used by clock module - [core] Moved suncalc dependency to production from dev, as it is used by clock module
- [compliments] Fix mirror not responding anymore when no compliments are to be shown (#3385) - [compliments] Fix mirror not responding anymore when no compliments are to be shown (#3385)
- [chore] Fixed mastermerge workflow (#3415) - [core] Fixed mastermerge workflow (#3415)
### Deleted ### Deleted

View File

@ -67,11 +67,10 @@ let config = {
module: "weather", module: "weather",
position: "top_right", position: "top_right",
config: { config: {
weatherProvider: "openweathermap", weatherProvider: "openmeteo",
type: "current", type: "current",
location: "New York", lat: 40.776676,
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city lon: -73.971321
apiKey: "YOUR_OPENWEATHER_API_KEY"
} }
}, },
{ {
@ -79,11 +78,10 @@ let config = {
position: "top_right", position: "top_right",
header: "Weather Forecast", header: "Weather Forecast",
config: { config: {
weatherProvider: "openweathermap", weatherProvider: "openmeteo",
type: "forecast", type: "forecast",
location: "New York", lat: 40.776676,
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city lon: -73.971321
apiKey: "YOUR_OPENWEATHER_API_KEY"
} }
}, },
{ {