Skip to content

Commit 9e02930

Browse files
authored
Merge pull request #2921 from MichMich/develop
Release 2.21.0
2 parents 30d5bfe + 298e585 commit 9e02930

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2858
-2243
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ If you are facing an issue or found a bug while trying to install MagicMirror²
2020
## I found a bug in the MagicMirror² Docker image
2121

2222
If you are facing an issue or found a bug while running MagicMirror² inside a Docker container please create an issue in the corresponding repository:
23-
24-
- karsten13/magicmirror: [https://gitlab.com/khassel/magicmirror](https://gitlab.com/khassel/magicmirror)
25-
- (deprecated) bastilimbach/docker-magicmirror: [https://github.com/bastilimbach/docker-MagicMirror](https://github.com/bastilimbach/docker-MagicMirror)
23+
[https://gitlab.com/khassel/magicmirror](https://gitlab.com/khassel/magicmirror)
2624

2725
---
2826

.github/workflows/automated-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
- name: Checkout code
2424
uses: actions/checkout@v3
2525
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v3
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
cache: "npm"
3030
- name: Install dependencies and run tests
3131
run: |
3232
Xvfb :99 -screen 0 1024x768x16 &
3333
export DISPLAY=:99
34-
npm install
34+
npm run install-mm:dev
3535
touch css/custom.css
3636
npm run test:prettier
3737
npm run test:js

.github/workflows/codecov-test-suites.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
touch css/custom.css
2828
npm run test:coverage
2929
- name: Upload coverage results to codecov
30-
uses: codecov/codecov-action@v2
30+
uses: codecov/codecov-action@v3
3131
with:
3232
files: ./coverage/lcov.info
3333
fail_ci_if_error: true

CHANGELOG.md

Lines changed: 66 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,38 @@ This project adheres to [Semantic Versioning](https://semver.org/).
55

66
❤️ **Donate:** Enjoying MagicMirror²? [Please consider a donation!](https://magicmirror.builders/donate) With your help we can continue to improve the MagicMirror².
77

8+
## [2.21.0] - 2022-10-01
9+
10+
Special thanks to: @BKeyport, @buxxi, @davide125, @khassel, @kolbyjack, @krukle, @MikeBishop, @rejas, @sdetweil, @SkySails and @veeck
11+
12+
## Added
13+
14+
- Possibility to fetch calendars through socket notifications.
15+
- New scripts `install-mm` (and `install-mm:dev`) for simplifying mm installation (now: `npm run install-mm`) and adding params `--no-audit --no-fund --no-update-notifier` for less noise.
16+
- New `showTimeToday` option in calendar module shows time for current-day events even if `timeFormat` is `"relative"`.
17+
- Add hourly forecasts, apparent temperature & custom location name to SMHI weather provider.
18+
19+
## Removed
20+
21+
- Old weather deprecated modules `currentweather` and `weatherforecast`.
22+
23+
## Updated
24+
25+
- Removed `DAYAFTERTOMORROW` from English.
26+
- Update dependencies.
27+
- Updated jsdoc.
28+
- Updated font tree to use variables consistantly.
29+
- Removed deprecated Docker Repository from issue template.
30+
31+
## Fixed
32+
33+
- Broadcast all calendar events while still honoring global and per-calendar maximumEntries.
34+
- Respect rss ttl provided by newsfeed (#2883).
35+
- Fix multi day calendar events always presented as "(1/X)" instead of the amount of days the event has progressed.
36+
- Fix weatherbit provider to use type config value instead of endpoint.
37+
- Fix calendar events which DO NOT specify rrule byday adjusted incorrectly (#2885).
38+
- Fix e2e tests not failing on errors (#2911).
39+
840
## [2.20.0] - 2022-07-02
941

1042
Special thanks to the following contributors: @eouia, @khassel, @kolbyjack, @KristjanESPERANTO, @nathannaveen, @naveensrinivasan, @rejas, @rohitdharavath and @sdetweil.
@@ -13,13 +45,13 @@ Special thanks to the following contributors: @eouia, @khassel, @kolbyjack, @Kri
1345

1446
- Added a new config option `httpHeaders` used by helmet (see https://helmetjs.github.io/). You can now set own httpHeaders which will override the defaults in `js/defauls.js` which is useful e.g. if you want to embed MagicMirror into annother website (solves #2847).
1547
- Show endDate for calendar events when dateHeader is enabled and showEnd is set to true (#2192).
16-
- Added the notification emitting from the weather module on infromation updated.
17-
- Use recommended file extention for YAML files (#2864).
48+
- Added the notification emitting from the weather module on information updated.
49+
- Use recommended file extension for YAML files (#2864).
1850

1951
### Updated
2052

2153
- Use latest node 18 when running tests on github actions.
22-
- Update `electron` to v19 and other dependencies.
54+
- Updated `electron` to v19 and other dependencies.
2355
- Use internal fetch function of node instead external `node-fetch` library if used node version >= `v18`.
2456
- Include duplicate events in broadcasts.
2557

@@ -45,12 +77,12 @@ Special thanks to the following contributors: @10bias, @CFenner, @JHWelch, @k1rd
4577
### Updated
4678

4779
- Deprecated roboto fonts package `roboto-fontface-bower` replaced with `fontsource`.
48-
- Update `electron` to v17, `helmet` to v5 (use defaults of v4) and other dependencies
49-
- Updates Font Awesome css class to new default style (fixes #2768)
80+
- Updated `electron` to v17, `helmet` to v5 (use defaults of v4) and other dependencies
81+
- Updated Font Awesome css class to new default style (fixes #2768)
5082
- Replaced deprecated modules `currentweather` and `weatherforecast` with dummy modules only displaying that they have to be replaced.
5183
- Include all calendar events from the configured date range when broadcasting.
52-
- Update Danish and German translation.
53-
- Update `node-ical` to v0.15 and added `luxon` as dependency for not breaking the "no-optional" install (see #2718 and #2824).
84+
- Updated Danish and German translation.
85+
- Updated `node-ical` to v0.15 and added `luxon` as dependency for not breaking the "no-optional" install (see #2718 and #2824).
5486

5587
### Fixed
5688

@@ -76,8 +108,8 @@ Special thanks to the following contributors: @AmpioRosso, @eouia, @fewieden, @j
76108
- ESLint version supports now ECMAScript 2018.
77109
- Cleaned up `updatenotification` module and switched to nunjuck template.
78110
- Moved calendar tests from category `electron` to `e2e`.
79-
- Update missed translations for Korean language (ko.json).
80-
- Update missed translations for Dutch language (nl.json).
111+
- Updated missed translations for Korean language (ko.json).
112+
- Updated missed translations for Dutch language (nl.json).
81113
- Cleaned up `alert` module and switched to nunjuck template.
82114
- Moved weather tests from category `electron` to `e2e`.
83115
- Updated github actions.
@@ -128,14 +160,14 @@ Special thanks to the following contributors: @apiontek, @eouia, @jupadin, @khas
128160
- Refactor test configs, use default test config for all tests.
129161
- Updated github templates.
130162
- Actually test all js and css files when lint script is run.
131-
- Update jsdocs and print warnings during testing too.
132-
- Update weathergov provider to try fetching not just current, but also foreacst, when API URLs available.
163+
- Updated jsdocs and print warnings during testing too.
164+
- Updated weathergov provider to try fetching not just current, but also foreacst, when API URLs available.
133165
- Refactored clock layout.
134166
- Refactored methods from weatherproviders into weatherobject (isDaytime, updateSunTime).
135167
- Use of `logger.js` in jest tests.
136168
- Run prettier over all relevant files.
137169
- Move tests needing electron in new category `electron`, use `server only` mode in `e2e` tests.
138-
- Update dependencies in package.json.
170+
- Updated dependencies in package.json.
139171

140172
### Fixed
141173

@@ -169,13 +201,13 @@ Special thanks to the following contributors: @210954, @B1gG, @codac, @Crazylegs
169201
- Refactor code into es6 where possible (e.g. var -> let/const).
170202
- Use node v16 in github workflow (replacing node v10).
171203
- Moved some files into better suited directories.
172-
- Update dependencies in package.json, require node >= v12, remove `rrule-alt` and `rrule`.
173-
- Update dependencies in package.json and migrate husky to v6, fix husky setup in prod environment.
204+
- Updated dependencies in package.json, require node >= v12, remove `rrule-alt` and `rrule`.
205+
- Updated dependencies in package.json and migrate husky to v6, fix husky setup in prod environment.
174206
- Cleaned up error handling in newsfeed and calendar modules for real.
175207
- Updated default WEATHER module such that a provider can optionally set a custom unit-of-measure for precipitation (`weatherObject.precipitationUnits`).
176-
- Update documentation.
177-
- Update jest tests: Reset changes on js/logger.js, mock logger.js in global_vars tests.
178-
- Update dependencies in package.json.
208+
- Updated documentation.
209+
- Updated jest tests: Reset changes on js/logger.js, mock logger.js in global_vars tests.
210+
- Updated dependencies in package.json.
179211

180212
### Removed
181213

@@ -287,10 +319,10 @@ Special thanks to the following contributors: @Alvinger, @AndyPoms, @ashishtank,
287319

288320
- Merging .gitignore in the config-folder with the .gitignore in the root-folder.
289321
- Weather module - forecast now show TODAY and TOMORROW instead of weekday, to make it easier to understand.
290-
- Update dependencies to latest versions.
291-
- Update dependencies eslint, feedme, simple-git and socket.io to latest versions.
292-
- Update lithuanian translation.
293-
- Update config sample.
322+
- Updated dependencies to latest versions.
323+
- Updated dependencies eslint, feedme, simple-git and socket.io to latest versions.
324+
- Updated lithuanian translation.
325+
- Updated config sample.
294326
- Highlight required version mismatch.
295327
- No select Text for TouchScreen use.
296328
- Corrected logic for timeFormat "relative" and "absolute".
@@ -318,12 +350,12 @@ Special thanks to the following contributors: @Alvinger, @AndyPoms, @ashishtank,
318350
- Catch errors when parsing calendar data with ical. (#2022)
319351
- Fix Default Alert Module does not hide black overlay when alert is dismissed manually. (#2228)
320352
- Weather module - Always displays night icons when local is other than English. (#2221)
321-
- Update node-ical 0.12.4, fix invalid RRULE format in cal entries
353+
- Updated node-ical 0.12.4, fix invalid RRULE format in cal entries
322354
- Fix package.json for optional electron dependency (2378)
323-
- Update node-ical version again, 0.12.5, change RRULE fix (#2371, #2379)
355+
- Updated node-ical version again, 0.12.5, change RRULE fix (#2371, #2379)
324356
- Remove undefined objects from modules array (#2382)
325-
- Update node-ical version again, 0.12.7, change RRULE fix (#2371, #2379), node-ical now throws error (which we catch)
326-
- Update simple-git version to 2.31 unhandled promise rejection (#2383)
357+
- Updated node-ical version again, 0.12.7, change RRULE fix (#2371, #2379), node-ical now throws error (which we catch)
358+
- Updated simple-git version to 2.31 unhandled promise rejection (#2383)
327359

328360
## [2.13.0] - 2020-10-01
329361

@@ -548,10 +580,10 @@ Special thanks to @sdetweil for all his great contributions!
548580

549581
- English translation for "Feels" to "Feels like"
550582
- Fixed the example calendar url in `config.js.sample`
551-
- Update `ical.js` to solve various calendar issues.
552-
- Update weather city list url [#1676](https://github.com/MichMich/MagicMirror/issues/1676)
583+
- Updated `ical.js` to solve various calendar issues.
584+
- Updated weather city list url [#1676](https://github.com/MichMich/MagicMirror/issues/1676)
553585
- Only update clock once per minute when seconds aren't shown
554-
- Update weatherprovider documentation.
586+
- Updated weatherprovider documentation.
555587

556588
### Fixed
557589

@@ -571,7 +603,7 @@ Special thanks to @sdetweil for all his great contributions!
571603
- use current username vs hardcoded 'pi' to support non-pi install
572604
- check for npm installed. node install doesn't do npm anymore
573605
- check for mac as part of PM2 install, add install option string
574-
- update pm2 config with current username instead of hard coded 'pi'
606+
- Updated pm2 config with current username instead of hard coded 'pi'
575607
- check for screen saver config, "/etc/xdg/lxsession", bypass if not setup
576608

577609
## [2.7.1] - 2019-04-02
@@ -779,7 +811,7 @@ A huge, huge, huge thanks to user @fewieden for all his hard work on the new `we
779811
- Add types for module.
780812
- Implement Danger.js to notify contributors when CHANGELOG.md is missing in PR.
781813
- Allow scrolling in full page article view of default newsfeed module with gesture events from [MMM-Gestures](https://github.com/thobach/MMM-Gestures)
782-
- Changed 'compliments.js' - update DOM if remote compliments are loaded instead of waiting one updateInterval to show custom compliments
814+
- Changed 'compliments.js' - Updated DOM if remote compliments are loaded instead of waiting one updateInterval to show custom compliments
783815
- Automated unit tests utils, deprecated, translator, cloneObject(lockstrings)
784816
- Automated integration tests translations
785817
- Add advanced filtering to the excludedEvents configuration of the default calendar module
@@ -791,7 +823,7 @@ A huge, huge, huge thanks to user @fewieden for all his hard work on the new `we
791823

792824
- Add link to GitHub repository which contains the respective Dockerfile.
793825
- Optimized automated unit tests cloneObject, cmpVersions
794-
- Update notifications use now translation templates instead of normal strings.
826+
- Updated notifications use now translation templates instead of normal strings.
795827
- Yarn can be used now as an installation tool
796828
- Changed Electron dependency to v1.7.13.
797829

@@ -998,7 +1030,7 @@ A huge, huge, huge thanks to user @fewieden for all his hard work on the new `we
9981030

9991031
### Fixed
10001032

1001-
- Update .gitignore to not ignore default modules folder.
1033+
- Updated .gitignore to not ignore default modules folder.
10021034
- Remove white flash on boot up.
10031035
- Added `update` in Raspberry Pi installation script.
10041036
- Fix an issue where the analog clock looked scrambled. ([#611](https://github.com/MichMich/MagicMirror/issues/611))
@@ -1083,8 +1115,8 @@ A huge, huge, huge thanks to user @fewieden for all his hard work on the new `we
10831115
### Updated
10841116

10851117
- Force fullscreen when kioskmode is active.
1086-
- Update the .github templates and information with more modern information.
1087-
- Update the Gruntfile with a more functional StyleLint implementation.
1118+
- Updated the .github templates and information with more modern information.
1119+
- Updated the Gruntfile with a more functional StyleLint implementation.
10881120

10891121
## [2.0.4] - 2016-08-07
10901122

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License (MIT)
22

3-
Copyright © 2016-2021 Michael Teeuw
3+
Copyright © 2016-2022 Michael Teeuw
44

55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation

css/main.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
--font-secondary: "Roboto";
99

1010
--font-size: 20px;
11-
--font-size-small: 0.75rem;
11+
--font-size-xsmall: 0.75rem;
12+
--font-size-small: 1rem;
13+
--font-size-medium: 1.5rem;
14+
--font-size-large: 3.25rem;
15+
--font-size-xlarge: 3.75rem;
1216

1317
--gap-body-top: 60px;
1418
--gap-body-right: 60px;
@@ -60,27 +64,27 @@ body {
6064
}
6165

6266
.xsmall {
63-
font-size: var(--font-size-small);
67+
font-size: var(--font-size-xsmall);
6468
line-height: 1.275;
6569
}
6670

6771
.small {
68-
font-size: 1rem;
72+
font-size: var(--font-size-small);
6973
line-height: 1.25;
7074
}
7175

7276
.medium {
73-
font-size: 1.5rem;
77+
font-size: var(--font-size-medium);
7478
line-height: 1.225;
7579
}
7680

7781
.large {
78-
font-size: 3.25rem;
82+
font-size: var(--font-size-large);
7983
line-height: 1;
8084
}
8185

8286
.xlarge {
83-
font-size: 3.75rem;
87+
font-size: var(--font-size-xlarge);
8488
line-height: 1;
8589
letter-spacing: -3px;
8690
}
@@ -115,7 +119,7 @@ body {
115119

116120
header {
117121
text-transform: uppercase;
118-
font-size: var(--font-size-small);
122+
font-size: var(--font-size-xsmall);
119123
font-family: var(--font-primary), Arial, Helvetica, sans-serif;
120124
font-weight: 400;
121125
border-bottom: 1px solid var(--color-text-dimmed);

fonts/package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fonts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/MichMich/MagicMirror/issues"
1111
},
1212
"dependencies": {
13-
"@fontsource/roboto": "^4.5.7",
14-
"@fontsource/roboto-condensed": "^4.5.8"
13+
"@fontsource/roboto": "^4.5.8",
14+
"@fontsource/roboto-condensed": "^4.5.9"
1515
}
1616
}

0 commit comments

Comments
 (0)