Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
0431f45
Merge branch 'develop' into new_cal
MichMich Oct 6, 2020
28b93b7
Merge pull request #2152 from sdetweil/new_cal
MichMich Oct 6, 2020
7a2278d
Merge branch 'develop' into fixparse
MichMich Oct 6, 2020
ec80b25
Merge pull request #2150 from sdetweil/fixparse
MichMich Oct 6, 2020
ebfeebc
Merge pull request #4 from MichMich/develop
ashishtank Oct 7, 2020
1bc0270
Update forecast.njk
flopp999 Oct 11, 2020
569dec1
Update CHANGELOG.md
flopp999 Oct 11, 2020
b95ef72
Merge branch 'develop' of https://github.com/ashishtank/MagicMirror i…
ashish-decos Oct 11, 2020
7462d61
Makes the module stay hidden without a lock.
Snille Oct 11, 2020
ecd9828
Makes the module stay hidden without a lock.
Snille Oct 11, 2020
644aa26
Update CHANGELOG.md
Snille Oct 11, 2020
a3bad8a
fix subsequent calendar fetcher timing
sdetweil Oct 12, 2020
e8f60d3
fix subsequent calendar fetcher timing
sdetweil Oct 12, 2020
6f3239d
Merge branch 'develop' into fixfetch
sdetweil Oct 12, 2020
3b76ca4
Update forecast.njk
flopp999 Oct 12, 2020
d116960
Update forecast.njk
flopp999 Oct 12, 2020
4a7cb88
typo, remove dead code, comments, fix recurring refresh, let fetcher …
sdetweil Oct 12, 2020
26caeec
Merge branch 'fixfetch' of https://github.com/sdetweil/MagicMirror in…
sdetweil Oct 12, 2020
485f662
revert fetcher filtering results
sdetweil Oct 12, 2020
0c61ba8
Merge pull request #2161 from Snille/develop
MichMich Oct 13, 2020
8c04712
Merge pull request #2162 from sdetweil/fixfetch
MichMich Oct 13, 2020
480e1ad
Merge pull request #1 from MichMich/develop
sdetweil Oct 13, 2020
43b6c71
Revert "Fixes the un-hide problem with currentwether and weatherforca…
MichMich Oct 13, 2020
af09b42
Merge pull request #2165 from MichMich/revert-2161-develop
MichMich Oct 13, 2020
01aa57e
Merge pull request #2 from MichMich/develop
sdetweil Oct 13, 2020
3c84002
Fix linter issues.
MichMich Oct 15, 2020
02148f6
Rename greek translation. (#2155)
MichMich Oct 15, 2020
13c542a
Merge pull request #2167 from MichMich/fix-greek-translation
MichMich Oct 15, 2020
5781c25
A space after icon of sunrise and sunset
bluemanos Oct 16, 2020
fc1e488
Merge pull request #2169 from bluemanos/patch-1
MichMich Oct 16, 2020
568f952
Merge pull request #3 from MichMich/develop
sdetweil Oct 16, 2020
e09fec5
Update weather_spec.js
flopp999 Oct 20, 2020
da302fc
Merge pull request #2158 from flopp999/patch-2
MichMich Oct 20, 2020
e83b4d7
fix calendar when event has no DTEND record
sdetweil Oct 26, 2020
b624aee
fix the fullDayEvent checker function
sdetweil Oct 26, 2020
8a1d46d
fix fullday event compare operator
sdetweil Oct 26, 2020
a735275
fix full day recurring events east of UTC for RRULE/Luxon confusion, …
sdetweil Oct 28, 2020
74b0c3e
update node-ical dependency version
sdetweil Oct 28, 2020
1e0fc7e
add package-lock for test
sdetweil Oct 28, 2020
8466ff0
change debug logging from console. to Log.
sdetweil Oct 28, 2020
b73cfd8
fix time adjustment routine
sdetweil Oct 28, 2020
82c742f
fix prettier problems, was run on commit before
sdetweil Oct 28, 2020
844a59d
one more offset only test
sdetweil Oct 28, 2020
5d2f706
fix time offset calcs for any timezone
sdetweil Nov 1, 2020
5ac20d6
Add new log level "debug" for such a purpose
Nov 6, 2020
0784384
Cleanup some log levels
Nov 6, 2020
262711a
Merge pull request #2184 from rejas/debug_log_level
MichMich Nov 6, 2020
3220702
Merge pull request #2178 from sdetweil/fix-cal2
MichMich Nov 6, 2020
198525f
Weather config enhancement
Sub028 Nov 7, 2020
0a58767
Use Log.debug where applicable
rejas Nov 7, 2020
da88e11
Add files via upload
AndyPoms Nov 8, 2020
0d6f736
Fix windspeed convertion error in ukmetoffice weather provider
Sub028 Nov 8, 2020
1460f00
Add new parameter "useKmh" to weather module
Sub028 Nov 8, 2020
a6386bd
Update npm packages and resolve package changes
jakemulley Oct 23, 2020
1eae442
Merge branch 'develop' into packages
jakemulley Nov 8, 2020
8abca80
Revert node-ical to 0.12.2
jakemulley Nov 8, 2020
2b6ceed
Sync package-lock.json
jakemulley Nov 8, 2020
8b8be26
Update packages
jakemulley Nov 10, 2020
8d0da61
Allow node-ical minor version upgrades again
jakemulley Nov 10, 2020
b42c05f
Create cv.json
mirontoli Nov 10, 2020
d4412fe
Add Chuvash
mirontoli Nov 8, 2020
ae32645
improve Chuvash translation
mirontoli Nov 10, 2020
874a50d
update changelog for Chuvash translation addition
mirontoli Nov 10, 2020
16feda8
Merge pull request #5 from MichMich/develop
ashishtank Nov 11, 2020
a270c73
Hindi and Gujarati Language
ashishtank Nov 11, 2020
ef32589
Merge branch 'develop' of https://github.com/ashishtank/MagicMirror i…
ashishtank Nov 11, 2020
aa6ad01
Change log
ashishtank Nov 11, 2020
8a23bcc
Update CHANGELOG.md
AndyPoms Nov 14, 2020
2951f0c
Update weatherbit.js
AndyPoms Nov 14, 2020
92ab705
Update weatherbit.js
AndyPoms Nov 14, 2020
2c3f83c
Merge pull request #2186 from rejas/use_debug
MichMich Nov 15, 2020
7944045
Merge branch 'develop' into weatherbit
MichMich Nov 15, 2020
61bcd93
Merge pull request #2193 from mirontoli/develop
MichMich Nov 15, 2020
90af31c
Merge branch 'develop' into develop
MichMich Nov 15, 2020
8a4173d
Merge pull request #2175 from jakemulley/packages
MichMich Nov 15, 2020
fc68321
Merge branch 'develop' into develop
MichMich Nov 15, 2020
f311ba3
Merge branch 'develop' into develop
MichMich Nov 15, 2020
9e5a9b5
fix full date start time and duration, east of UTC, make getCorrectio…
sdetweil Nov 16, 2020
469a907
fix full date start time and duration, east of UTC, make getCorrectio…
sdetweil Nov 16, 2020
a05c08e
Merge pull request #2196 from ashishtank/develop
MichMich Nov 16, 2020
3a85873
fix full date start time and duration, east of UTC, make getCorrectio…
sdetweil Nov 16, 2020
ecd0b6f
Merge branch 'develop' of https://github.com/MichMich/MagicMirror int…
sdetweil Nov 16, 2020
12405b6
fix full date start time and duration, east of UTC, make getCorrectio…
sdetweil Nov 16, 2020
afd676a
Merge branch 'develop' into weatherbit
AndyPoms Nov 16, 2020
1065eda
Update CHANGELOG.md
AndyPoms Nov 20, 2020
6c3100e
Merge pull request #2202 from sdetweil/cal-again
MichMich Nov 20, 2020
819923e
Merge branch 'develop' into weatherbit
AndyPoms Nov 20, 2020
a19c3a4
New option "limitDays" that will limit the number of days displayed.
Alvinger Nov 21, 2020
021f8d2
Update lt.json
MariusVaice Nov 22, 2020
c466b20
Update lt.json
MariusVaice Nov 22, 2020
2f70366
Update CHANGELOG.md
MariusVaice Nov 22, 2020
e348a61
Update CHANGELOG.md
MariusVaice Nov 22, 2020
e86fa9d
Revised handling of timeFormat "absolute" and "relative".
Alvinger Nov 23, 2020
1ba845f
Make calendarfetcher return all events, not just a slice
Alvinger Nov 23, 2020
720bc12
Changelog updated
Alvinger Nov 23, 2020
839ca9e
Lines that were commented out has been removed
Alvinger Nov 23, 2020
ce5c0ed
Fixed typo in condition
Alvinger Nov 23, 2020
d8f19e6
Fixed variable declarations to pass Travic CI check
Alvinger Nov 24, 2020
ea264cb
Update console-stamp to latest version and configure it
Nov 24, 2020
958a2ee
Update CHANGELOG
Nov 24, 2020
e0ceed5
Correct error in custom.js in calendar tests
Alvinger Nov 24, 2020
21284e7
Reverted change in calendarfetcher so events are limited to maximumEn…
Alvinger Nov 24, 2020
20a50f8
Reverted changes in custom.js for testing
Alvinger Nov 24, 2020
056f3a6
limitDays and coloredEvents are now only module-wide options, not per…
Alvinger Nov 24, 2020
bd0d91d
Create ps.json
jakobsarwary1 Nov 24, 2020
ccf98c0
Surround ical parsing with try/catch to catch unknown bugs
rejas Nov 24, 2020
38d4a8b
Update CHANGELOG
rejas Nov 24, 2020
2779d19
All events from the beginning of today were fetched but we only want …
Alvinger Nov 24, 2020
8a5e87b
All events from the beginning of today were fetched but we only want
Alvinger Nov 24, 2020
d00c25e
Fetch maximumEntries of current events (and all past events if broadc…
Alvinger Nov 25, 2020
b735cb9
Fetch maximumEntries of current events (and all past events if
Alvinger Nov 25, 2020
51a1399
Change custom calendar test to not include past events
Alvinger Nov 25, 2020
a01f083
Removed test on maximumEntries
Alvinger Nov 25, 2020
3c5d50b
Include all past events (if broadcastPastEvents set) and up to maximu…
Alvinger Nov 25, 2020
f288581
Reverted changes to test case for calendar
Alvinger Nov 25, 2020
99aaae4
Reverted changes to test case for calendar
Alvinger Nov 25, 2020
1e34764
coloredEvents should also color the symbol if that is displayed
Alvinger Nov 26, 2020
b735f8a
New option "customEvents"
Alvinger Nov 28, 2020
db129cc
Added "customEvents" to changelog
Alvinger Nov 28, 2020
472bf16
New option "limitDays" - limit the number of discreet days to be disp…
Alvinger Nov 28, 2020
655ca83
New option "limitDays" - limit the number of discreet days to be disp…
Alvinger Nov 28, 2020
260bc96
Fixed variable redeclaration
Alvinger Nov 28, 2020
9c5383d
fix between.from to use now, instead of yesterday for non-full day ev…
sdetweil Nov 29, 2020
8afba3a
fix between.from to use now, instead of yesterday for non-full day ev…
sdetweil Nov 29, 2020
137facf
Merge branch 'develop' into cal-again2
sdetweil Nov 29, 2020
97f3514
Bugfix after Travis CI error (redeclaring variables)
Alvinger Nov 30, 2020
00bdf6a
update depencencies
khassel Dec 4, 2020
d531730
Merge pull request #1 from MichMich/develop
sdetweil Dec 7, 2020
6f82f9e
update changelog
sdetweil Dec 7, 2020
e7dd2b4
Merge pull request #2187 from AndyPoms/weatherbit
MichMich Dec 8, 2020
053f9c3
Merge pull request #2205 from marvai-vgtu/patch-1
MichMich Dec 8, 2020
f54690c
Merge pull request #2206 from Alvinger/calendar-enhance
MichMich Dec 8, 2020
ac1d237
Merge branch 'develop' into issue-2199_console-debug
MichMich Dec 8, 2020
adb50a9
Merge pull request #2208 from rejas/issue-2199_console-debug
MichMich Dec 8, 2020
c49386b
Merge branch 'develop' into issue-2022_catch-ical-parsing-errors
MichMich Dec 8, 2020
667be46
Merge pull request #2210 from rejas/issue-2022_catch-ical-parsing-errors
MichMich Dec 8, 2020
284bed6
Merge pull request #2209 from jakobsarwary1/patch-1
MichMich Dec 8, 2020
87a3e4d
Merge branch 'develop' into limitDays
MichMich Dec 8, 2020
cdb9b9b
Merge branch 'develop' into cal-again2
MichMich Dec 8, 2020
35a2839
Merge branch 'develop' into customEvents
MichMich Dec 8, 2020
db874a0
Merge pull request #2214 from Alvinger/customEvents
MichMich Dec 8, 2020
00ff3ab
Merge branch 'develop' into limitDays
MichMich Dec 8, 2020
1074fba
Merge pull request #2215 from Alvinger/limitDays
MichMich Dec 8, 2020
3a9b154
Fix code style issue.
MichMich Dec 8, 2020
0344399
Fix prettier issue.
MichMich Dec 8, 2020
43b33cb
Fix prettier issue.
MichMich Dec 8, 2020
ce46fb5
Fix Prettier Issue
MichMich Dec 8, 2020
d43679d
Merge pull request #2185 from Sub028/master
MichMich Dec 8, 2020
72f0d77
Merge pull request #2217 from sdetweil/cal-again2
MichMich Dec 8, 2020
46fd2de
Merge branch 'develop' into develop
MichMich Dec 8, 2020
be0c8f4
Prettier fix.
MichMich Dec 8, 2020
f97be2f
Fix prettier issue.
MichMich Dec 8, 2020
e950cda
Prettier fixes.
MichMich Dec 8, 2020
1a4a9f6
Merge pull request #2190 from Sub028/develop
MichMich Dec 8, 2020
e4b8cd9
Merge branch 'develop' into update_dependencies
MichMich Dec 8, 2020
21ba652
Regenerate Package.lock
MichMich Dec 8, 2020
3024319
Merge pull request #2222 from khassel/update_dependencies
MichMich Dec 8, 2020
e984893
Issue #2221 - Night icons are always shown for locale other then english
ashishtank Dec 9, 2020
b3a9b7e
Merge branch 'develop' of https://github.com/ashishtank/MagicMirror i…
ashishtank Dec 9, 2020
a7b571e
Merge pull request #6 from MichMich/develop
ashishtank Dec 9, 2020
c675421
#Issue 2221
ashishtank Dec 9, 2020
85b6df3
Issue #2221
ashishtank Dec 9, 2020
2f4b8cd
Update dependencies incl ini
Dec 11, 2020
b373aa6
Hide alert overlay when dismissed manually
Dec 17, 2020
8cf16f1
Update changelog
Dec 17, 2020
3f851c1
Adding SMHI as a provider for the weather module
buxxi Dec 19, 2020
299e4a4
Create node.js.yml
MichMich Dec 20, 2020
54ac450
Update and rename node.js.yml to node-ci.js.yml
MichMich Dec 20, 2020
8251792
Update .prettierignore
MichMich Dec 20, 2020
39d7ceb
test github actions
khassel Dec 20, 2020
f485462
Merge pull request #2364 from khassel/ci-test
MichMich Dec 21, 2020
1c9c33b
Merge branch 'develop' into ci-test
MichMich Dec 21, 2020
911687a
Remove Travis
MichMich Dec 21, 2020
2945156
Create danger-ci.yml
MichMich Dec 21, 2020
0f58a56
Add env variable.
MichMich Dec 21, 2020
86220fa
Update danger-ci.yml
MichMich Dec 21, 2020
d0aeb90
Merge pull request #2365 from MichMich/ci-test
MichMich Dec 21, 2020
616431e
Disable Transpile.
MichMich Dec 21, 2020
30290f3
Merge pull request #2367 from MichMich/danger-ci
MichMich Dec 21, 2020
3c3ce24
Cleanup Danger-CI
MichMich Dec 21, 2020
a0366e7
Stupid commit to check github actions.
MichMich Dec 21, 2020
f966e50
Cleanup.
MichMich Dec 21, 2020
b72d0ed
Add ENV variable.
MichMich Dec 21, 2020
9622d02
Yolo.
MichMich Dec 21, 2020
83ec8ca
Restore.
MichMich Dec 21, 2020
20bd85b
Delete danger-ci.yml
MichMich Dec 21, 2020
9858d5b
Merge pull request #2360 from rejas/issue_2228
MichMich Dec 21, 2020
a8ef594
Stupid commit to check github actions.
MichMich Dec 21, 2020
30db9c3
Stupid commit to check github actions.
MichMich Dec 21, 2020
2ea38bd
Stupid commit to check github actions.
MichMich Dec 21, 2020
0419e06
Merge pull request #2361 from buxxi/smhi-provider
MichMich Dec 21, 2020
155351f
Merge pull request #2226 from rejas/update_dependencies
MichMich Dec 21, 2020
684dcdc
Merge pull request #2224 from ashishtank/develop
MichMich Dec 21, 2020
cdb8d35
Create enforce-changelog.yml
MichMich Dec 21, 2020
eb6ef3c
Update enforce-changelog.yml
MichMich Dec 21, 2020
0fd0fea
Update enforce-changelog.yml
MichMich Dec 21, 2020
af21205
Merge pull request #2369 from MichMich/enforce-changelog
MichMich Dec 21, 2020
202eeea
Fix changelog special character issues.
MichMich Dec 21, 2020
571f95e
Merge pull request #2370 from MichMich/fix-changelog
MichMich Dec 21, 2020
8462127
Update node-ci.js.yml
MichMich Dec 21, 2020
4e6e84c
Replace Badge
MichMich Dec 21, 2020
f8085ed
Update CHANGELOG.md
MichMich Dec 21, 2020
a5a5e73
Fix Prettier issue.
MichMich Dec 21, 2020
225bece
update node-ical to 0.12.4
sdetweil Dec 23, 2020
6b12601
update node-ical to 0.12.4
sdetweil Dec 23, 2020
0c3f9f4
Merge pull request #2372 from sdetweil/update_node-ical
MichMich Dec 23, 2020
a50824e
Merging config/.gitignore with .gitignore
buxxi Dec 28, 2020
02c1e47
Merge branch 'develop' of https://github.com/MichMich/MagicMirror int…
sdetweil Dec 28, 2020
e5ff320
fix package.json for optional dependency
sdetweil Dec 28, 2020
0975826
update node-ical version
sdetweil Dec 28, 2020
1e9fad8
Merge branch 'develop' of https://github.com/MichMich/MagicMirror int…
sdetweil Dec 28, 2020
07e75b8
Adjust log level in sample
rejas Dec 29, 2020
7802e0b
Set locationID everywhere on config sample
rejas Dec 29, 2020
30cf7f8
Update CHANGELOG
rejas Dec 29, 2020
dd23db0
Running prettier for CHANGELOG
buxxi Dec 29, 2020
46e77f8
Merge pull request #2377 from buxxi/gitignore-merge
MichMich Dec 29, 2020
28b52cd
Merge pull request #2379 from sdetweil/fix-package
MichMich Dec 29, 2020
d3a715b
Merge pull request #2381 from sdetweil/node-ical-again
MichMich Dec 29, 2020
c1d35b0
Merge pull request #2384 from rejas/log_level_sample
MichMich Dec 29, 2020
67bedf8
Add missing function ()
rejas Apr 23, 2020
efafb1c
Cleanup jsdoc
rejas Dec 29, 2020
3fcbf15
Update CHANGELOG
rejas Dec 29, 2020
7a4eddc
Adjust some log levels
rejas Jun 20, 2020
61cf92c
removes undefined objects from modules array, see issue #2382
khassel Dec 29, 2020
e507f95
added suggestion from @rejas
khassel Dec 29, 2020
a857412
Merge pull request #2385 from rejas/missing_function_call
MichMich Dec 29, 2020
e6cefcf
Merge branch 'develop' into fix_modules_array
khassel Dec 29, 2020
ff1a843
Merge pull request #2386 from khassel/fix_modules_array
MichMich Dec 29, 2020
4ded608
No Text Select for Touch Screen use
bugsounet Dec 30, 2020
3e5c1a2
Update CHANGELOG.md
bugsounet Dec 30, 2020
5079e30
Merge branch 'develop' of https://github.com/MichMich/MagicMirror int…
sdetweil Dec 31, 2020
4d09abe
fix node-ical version 0.12.7 for bad rrule throw
sdetweil Dec 31, 2020
020c8cc
fix update notification 2383
sdetweil Dec 31, 2020
9ea7de8
Permit substituting a falsy value in translator variables
MikeBishop Dec 31, 2020
c9fb389
CHANGELOG
MikeBishop Dec 31, 2020
057ef63
Merge pull request #7 from MichMich/develop
ashishtank Dec 31, 2020
353cc3b
Merge pull request #2393 from MikeBishop/translator_falsy_vars
MichMich Dec 31, 2020
fba9132
Added support optional support for DEGREE position in FEELS translation
ashishtank Dec 31, 2020
a97d87b
Merge pull request #2387 from bugsounet/patch-1
MichMich Dec 31, 2020
6a786aa
Merge branch 'develop' into fix-update
sdetweil Dec 31, 2020
c25b6dc
Merge pull request #2392 from sdetweil/fix-update
MichMich Dec 31, 2020
87e2e87
Merge pull request #2395 from ashishtank/develop
MichMich Dec 31, 2020
3fa98bc
Merge pull request #8 from MichMich/develop
ashishtank Dec 31, 2020
4a341b3
Added support for variables in nunjucks templates for translate filter
ashishtank Dec 31, 2020
a4ab0cb
Merge pull request #2397 from ashishtank/develop
MichMich Dec 31, 2020
dc5fb97
Update CHANGELOG.md
fewieden Jan 1, 2021
8286d5a
Highlight required version mismatch
fewieden Jan 1, 2021
da00c16
Merge pull request #2398 from fewieden/patch-2
MichMich Jan 1, 2021
090873d
Prepare release 2.14.0
MichMich Jan 1, 2021
0f1457b
Prepare release 2.14.0 - Fix Version
MichMich Jan 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/enforce-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Enforce Changelog"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
# Enforces the update of a changelog file on every pull request
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dangoslen/changelog-enforcer@v1.6.1
with:
changeLogPath: 'CHANGELOG.md'
skipLabels: 'Skip Changelog'
35 changes: 35 additions & 0 deletions .github/workflows/node-ci.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Automated Tests

on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: |
Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99
npm install
npm run test:prettier
npm run test:js
npm run test:css
npm run test:e2e
npm run test:unit
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ Temporary Items
# Ignore changes to the custom css files.
/css/custom.css

# Ignore users config file but keep the sample.
/config/*
!/config/config.js.sample

# Vim
## swap
[._]*.s[a-w][a-z]
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ package-lock.json
/config/**/*
/vendor/**/*
!/vendor/vendor.js
.github/**/*
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,70 @@ This project adheres to [Semantic Versioning](https://semver.org/).

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

## [2.14.0] - 2021-01-01

Special thanks to the following contributors: @Alvinger, @AndyPoms, @ashishtank, @bluemanos, @flopp999, @jakemulley, @jakobsarwary1, @marvai-vgtu, @mirontoli, @rejas, @sdetweil, @Snille & @Sub028.

ℹ️ **Note:** This update uses new dependencies. Please update using the following command: `git pull && npm install`.

### Added

- Added new log level "debug" to the logger.
- Added new parameter "useKmh" to weather module for displaying wind speed as kmh.
- Chuvash translation.
- Added Weatherbit as a provider to Weather module.
- Added SMHI as a provider to Weather module.
- Added Hindi & Gujarati translation.
- Added optional support for DEGREE position in Feels like translation.
- Added support for variables in nunjucks templates for translate filter.
- Added Chuvash translation.
- Calendar: new options "limitDays" and "coloredEvents".
- Added new option "limitDays" - limit the number of discreet days displayed.
- Added new option "customEvents" - use custom symbol/color based on keyword in event title.
- Added GitHub workflows for automated testing and changelog enforcement.

### Updated

- Merging .gitignore in the config-folder with the .gitignore in the root-folder.
- Weather module - forecast now show TODAY and TOMORROW instead of weekday, to make it easier to understand.
- Update dependencies to latest versions.
- Update dependencies eslint, feedme, simple-git and socket.io to latest versions.
- Update lithuanian translation.
- Update config sample.
- Highlight required version mismatch.
- No select Text for TouchScreen use.
- Corrected logic for timeFormat "relative" and "absolute".
- Added missing function call in module.show()
- Translator variables can have falsy values (e.g. empty string)
- Fix issue with weather module with DEGREE label in FEELS like

### Deleted

- Removed Travis CI intergration.

### Fixed

- JSON Parse translation files with comments crashing UI. (#2149)
- Calendar parsing where RRULE bug returns wrong date, add Windows timezone name support. (#2145, #2151)
- Wrong node-ical version installed (package.json) requested version. (#2153)
- Fix calendar fetcher subsequent timing. (#2160)
- Rename Greek translation to correct ISO 639-1 alpha-2 code (gr > el). (#2155)
- Add a space after icons of sunrise and sunset. (#2169)
- Fix calendar when no DTEND record found in event, startDate overlay when endDate set. (#2177)
- Fix windspeed convertion error in ukmetoffice weather provider. (#2189)
- Fix console.debug not having timestamps. (#2199)
- Fix calendar full day event east of UTC start time. (#2200)
- Fix non-fullday recurring rule processing. (#2216)
- Catch errors when parsing calendar data with ical. (#2022)
- Fix Default Alert Module does not hide black overlay when alert is dismissed manually. (#2228)
- Weather module - Always displays night icons when local is other then English. (#2221)
- Update Node-ical 0.12.4 , fix invalid RRULE format in cal entries
- Fix package.json for optional electron dependency (2378)
- Update node-ical version again, 0.12.5, change RRULE fix (#2371, #2379)
- Remove undefined objects from modules array (#2382)
- Update node-ical version again, 0.12.7, change RRULE fix (#2371, #2379), node-ical now throws error (which we catch)
- Update simple-git version to 2.31 unhandled promise rejection (#2383)

## [2.13.0] - 2020-10-01

Special thanks to the following contributors: @bryanzzhu, @bugsounet, @chamakura, @cjbrunner, @easyas314, @larryare, @oemel09, @rejas, @sdetweil & @sthuber90.
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<a href="https://david-dm.org/MichMich/MagicMirror#info=devDependencies"><img src="https://david-dm.org/MichMich/MagicMirror/dev-status.svg" alt="devDependency Status"></a>
<a href="https://bestpractices.coreinfrastructure.org/projects/347"><img src="https://bestpractices.coreinfrastructure.org/projects/347/badge"></a>
<a href="https://choosealicense.com/licenses/mit"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License"></a>
<a href="https://travis-ci.com/MichMich/MagicMirror"><img src="https://travis-ci.com/MichMich/MagicMirror.svg" alt="Travis"></a>
<a href="https://snyk.io/test/github/MichMich/MagicMirror"><img src="https://snyk.io/test/github/MichMich/MagicMirror/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/MichMich/MagicMirror" style="max-width:100%;"></a>
<a href="https://github.com/MichMich/MagicMirror/actions?query=workflow%3A%22Automated+Tests%22"><img src="https://github.com/MichMich/MagicMirror/workflows/Automated%20Tests/badge.svg" alt="Tests"></a>
</p>

**MagicMirror²** is an open source modular smart mirror platform. With a growing list of installable modules, the **MagicMirror²** allows you to convert your hallway or bathroom mirror into your personal assistant. **MagicMirror²** is built by the creator of [the original MagicMirror](https://michaelteeuw.nl/tagged/magicmirror) with the incredible help of a [growing community of contributors](https://github.com/MichMich/MagicMirror/graphs/contributors).
Expand Down Expand Up @@ -40,6 +39,6 @@ If we receive enough donations we might even be able to free up some working hou
To donate, please follow [this](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=G5D8E9MR5DTD2&source=url) link.

<p align="center">
<br>
<br>
<a href="https://forum.magicmirror.builders/topic/728/magicmirror-is-voted-number-1-in-the-magpi-top-50"><img src="https://magicmirror.builders/img/magpi-best-watermark-custom.png" width="150" alt="MagPi Top 50"></a>
</p>
2 changes: 0 additions & 2 deletions config/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions config/config.js.sample
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var config = {
httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true

language: "en",
logLevel: ["INFO", "LOG", "WARN", "ERROR"],
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
timeFormat: 24,
units: "metric",
// serverOnly: true/false/"local" ,
Expand Down Expand Up @@ -70,7 +70,7 @@ var config = {
position: "top_right",
config: {
location: "New York",
locationID: "", //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"
}
},
Expand Down
1 change: 1 addition & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ html {
cursor: none;
overflow: hidden;
background: #000;
user-select: none;
}

::-webkit-scrollbar {
Expand Down
2 changes: 1 addition & 1 deletion js/check_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function checkConfigFile() {
try {
fs.accessSync(configFileName, fs.F_OK);
} catch (e) {
Log.log(Utils.colors.error(e));
Log.error(Utils.colors.error(e));
throw new Error("No permission to access config file!");
}

Expand Down
10 changes: 7 additions & 3 deletions js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
(function (root, factory) {
if (typeof exports === "object") {
// add timestamps in front of log messages
require("console-stamp")(console, "yyyy-mm-dd HH:MM:ss.l");
require("console-stamp")(console, {
pattern: "yyyy-mm-dd HH:MM:ss.l",
include: ["debug", "log", "info", "warn", "error"]
});

// Node, CommonJS-like
module.exports = factory(root.config);
Expand All @@ -20,10 +23,11 @@
}
})(this, function (config) {
const logLevel = {
info: Function.prototype.bind.call(console.info, console),
debug: Function.prototype.bind.call(console.debug, console),
log: Function.prototype.bind.call(console.log, console),
error: Function.prototype.bind.call(console.error, console),
info: Function.prototype.bind.call(console.info, console),
warn: Function.prototype.bind.call(console.warn, console),
error: Function.prototype.bind.call(console.error, console),
group: Function.prototype.bind.call(console.group, console),
groupCollapsed: Function.prototype.bind.call(console.groupCollapsed, console),
groupEnd: Function.prototype.bind.call(console.groupEnd, console),
Expand Down
5 changes: 1 addition & 4 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,7 @@ var MM = (function () {
*/
modulesStarted: function (moduleObjects) {
modules = [];
for (var m in moduleObjects) {
var module = moduleObjects[m];
modules[module.data.index] = module;
}
moduleObjects.forEach((module) => modules.push(module));

Log.info("All modules started!");
sendNotification("ALL_MODULES_STARTED");
Expand Down
28 changes: 16 additions & 12 deletions js/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ var Module = Class.extend({
lstripBlocks: true
});

this._nunjucksEnvironment.addFilter("translate", function (str) {
return self.translate(str);
this._nunjucksEnvironment.addFilter("translate", function (str, variables) {
return self.translate(str, variables);
});

return this._nunjucksEnvironment;
Expand Down Expand Up @@ -228,7 +228,7 @@ var Module = Class.extend({
* Set the module config and combine it with the module defaults.
*
* @param {object} config The combined module config.
* @param {boolean} config Merge module config in deep.
* @param {boolean} deep Merge module config in deep.
*/
setConfig: function (config, deep) {
this.config = deep ? configMerge({}, this.defaults, config) : Object.assign({}, this.defaults, config);
Expand Down Expand Up @@ -434,20 +434,22 @@ var Module = Class.extend({
speed,
function () {
self.resume();
callback;
callback();
},
options
);
}
});

/** Merging MagicMirror (or other) default/config script
* merge 2 objects or/with array
* using:
/**
* Merging MagicMirror (or other) default/config script by @bugsounet
* Merge 2 objects or/with array
*
* Usage:
* -------
* this.config = configMerge({}, this.defaults, this.config)
* -------
* arg1: initial objet
* arg1: initial object
* arg2: config model
* arg3: config to merge
* -------
Expand All @@ -456,10 +458,12 @@ var Module = Class.extend({
* it don't merge all thing in deep
* -> object in object and array is not merging
* -------
* @bugsounet
* @Todo: idea of Mich determinate what do you want to merge or not
*
* Todo: idea of Mich determinate what do you want to merge or not
*
* @param {object} result the initial object
* @returns {object} the merged config
*/

function configMerge(result) {
var stack = Array.prototype.slice.call(arguments, 1);
var item;
Expand Down Expand Up @@ -506,7 +510,7 @@ Module.register = function (name, moduleDefinition) {
if (cmpVersions(window.version, moduleDefinition.requiresVersion) >= 0) {
Log.log("Version is ok!");
} else {
Log.log("Version is incorrect. Skip module: '" + name + "'");
Log.warn("Version is incorrect. Skip module: '" + name + "'");
return;
}
}
Expand Down
4 changes: 2 additions & 2 deletions js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var Server = function (config, callback) {
server.listen(port, config.address ? config.address : "localhost");

if (config.ipWhitelist instanceof Array && config.ipWhitelist.length === 0) {
Log.info(Utils.colors.warn("You're using a full whitelist configuration to allow for all IPs"));
Log.warn(Utils.colors.warn("You're using a full whitelist configuration to allow for all IPs"));
}

app.use(function (req, res, next) {
Expand All @@ -49,7 +49,7 @@ var Server = function (config, callback) {
res.status(403).send("This device is not allowed to access your mirror. <br> Please check your config.js or config.js.sample to change this.");
});
});
app.use(helmet());
app.use(helmet({ contentSecurityPolicy: false }));

app.use("/js", express.static(__dirname));
var directories = ["/config", "/css", "/fonts", "/modules", "/vendor", "/translations", "/tests/configs"];
Expand Down
12 changes: 10 additions & 2 deletions js/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ var Translator = (function () {
xhr.open("GET", file, true);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4 && xhr.status === 200) {
callback(JSON.parse(xhr.responseText));
// needs error handler try/catch at least
let fileinfo = null;
try {
fileinfo = JSON.parse(xhr.responseText);
} catch (exception) {
// nothing here, but don't die
Log.error(" loading json file =" + file + " failed");
}
callback(fileinfo);
}
};
xhr.send(null);
Expand Down Expand Up @@ -60,7 +68,7 @@ var Translator = (function () {
template = variables.fallback;
}
return template.replace(new RegExp("{([^}]+)}", "g"), function (_unused, varName) {
return variables[varName] || "{" + varName + "}";
return varName in variables ? variables[varName] : "{" + varName + "}";
});
}

Expand Down
3 changes: 3 additions & 0 deletions modules/default/alert/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,13 @@ Module.register("alert", {
message: image + message,
effect: this.config.alert_effect,
ttl: params.timer,
onClose: () => this.hide_alert(sender),
al_no: "ns-alert"
});

//Show alert
this.alerts[sender.name].show();

//Add timer to dismiss alert and overlay
if (params.timer) {
setTimeout(() => {
Expand Down
Loading