Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.12.0 #2064

Merged
merged 163 commits into from
Jul 1, 2020
Merged
Changes from 1 commit
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
351e0f3
add https support
Mar 28, 2020
501a314
Start of 2.12.0-develop
MichMich Apr 1, 2020
ca32757
Fix release date.
MichMich Apr 1, 2020
31b3f77
no single quotes
Apr 3, 2020
8e38910
Merge branch 'develop' into feature/client_https
Apr 3, 2020
54542f7
added basename config
Legion2 Apr 5, 2020
eb37a49
changed headings in Changelog
Legion2 Apr 5, 2020
e6c0011
renamed basename to basePath
Legion2 Apr 6, 2020
3f8363a
Merge pull request #1976 from Legion2/develop
MichMich Apr 6, 2020
37ee0e5
socketclient.js: add backward compatibility for old module code
khassel Apr 7, 2020
1fd3645
update CHANGELOG.md
khassel Apr 7, 2020
1914573
fixed again ...
khassel Apr 7, 2020
fc62435
Merge pull request #1980 from khassel/socketclient_fix
MichMich Apr 9, 2020
18989d5
Replace grunt-yamllint with yaml-lint
rejas Mar 18, 2020
84e9c47
Replace grunt-stylelint with stylelint
rejas Mar 19, 2020
427d186
Replace grunt-markdownlint with markdownlint-cli
rejas Mar 19, 2020
61462cf
Replace grunt-eslint with eslint
rejas Mar 19, 2020
f36df15
Replace grunt-jsonlint with jsonlint
rejas Apr 10, 2020
ab3015d
Remove rest of grunt calls
rejas Apr 10, 2020
194af0e
Run linter and npm audit
rejas Apr 10, 2020
ed28ce1
Update changelog and lock
rejas Apr 10, 2020
c755f44
Merge pull request #1981 from rejas/remove_grunt
MichMich Apr 10, 2020
b651dc8
no single quotes
Apr 14, 2020
172d668
Merge pull request #1963 from AndreKoepke/feature/client_https
MichMich Apr 15, 2020
c7c6dc4
Move config check into js folder, cleanup var usage
Apr 1, 2020
e85b49c
Update changelog
Apr 19, 2020
c8a9c9b
Merge pull request #1991 from rejas/cleanup_config_check
MichMich Apr 19, 2020
06e8308
Replace old js files with modern code
Apr 20, 2020
b3dcc82
Remove old webkit prefix styles
Apr 20, 2020
5819ef3
Rename stylesheet for clarity that its about the notificationFX
Apr 20, 2020
b56a930
Update changelog
Apr 20, 2020
fb557b9
Update ignored files for eslint
Apr 20, 2020
7a976c0
Fix tests, use non-spread object extend version again
Apr 20, 2020
8c0e98e
Ignore some other files when linting markdown too
Apr 20, 2020
291a8f5
Fix warnings for jsonlint
Apr 20, 2020
cc53369
Update dependencies
Apr 20, 2020
711c566
Merge pull request #1995 from rejas/cleanup_alert
MichMich Apr 20, 2020
4ddb8ce
Update roboto fonts, remove ttf entries
Apr 19, 2020
81ab12c
Update changelog
Apr 19, 2020
8650876
Remove yarn.locks
Apr 19, 2020
a1285b1
Remove some other prefixed styles since we are at it
Apr 20, 2020
d4eb5fa
Merge pull request #1992 from rejas/update_fonts
MichMich Apr 21, 2020
e668d48
Use eslint:recommend
rejas Apr 20, 2020
ef8d857
Run automatic fix
rejas Apr 20, 2020
941d5d7
Fix mixed tabs and whitespace errors
rejas Apr 20, 2020
d08bd4e
Fix lots of warnings
rejas Apr 21, 2020
9ec329b
Final fixes for eslint:recommended
Apr 21, 2020
ec187fe
Update changelog and commen tags
Apr 21, 2020
b1fb177
Undo "fix" in main.js that broke the tests
rejas Apr 21, 2020
be6f1f9
Move eslint to dependencies, update some devdependcies
Apr 21, 2020
e510d27
Cleanup some more header comments
Apr 21, 2020
0c60d54
Add eqeqeq rule to not confuse == with ===
Apr 21, 2020
14aa403
Some spelling and doc fixes
rejas Apr 22, 2020
ebfbf0e
Literal translation (not used in Portuguese)
andrezibaia Apr 23, 2020
3c54d4a
Merge pull request #1996 from rejas/eslint_recommend
MichMich Apr 23, 2020
e7fc4ef
Replace unsecure links with https ones
rejas Apr 28, 2020
1eecf4b
Fix docs, grunt is removed
rejas Apr 28, 2020
93deebe
Update changelog
rejas Apr 28, 2020
7e42e98
Merge pull request #2002 from rejas/https
MichMich Apr 30, 2020
63a2d83
Start checking for undef
rejas May 2, 2020
d8f093b
Cleanup some globals
rejas May 2, 2020
b9d19cf
First round of undef fixes
rejas May 2, 2020
c04fa49
Second round of undef fixes
rejas May 3, 2020
703335c
Update changelog
rejas May 3, 2020
bd6bbf8
Update dependencies
rejas May 3, 2020
55c6a5a
remove unused file
MichMich May 5, 2020
08ed019
Merge branch 'develop' of /~https://github.com/MichMich/MagicMirror int…
MichMich May 5, 2020
5386ca1
Merge branch 'develop' into no_undef
May 5, 2020
1e7ce8b
Merge pull request #2007 from rejas/no_undef
MichMich May 5, 2020
c8aedc6
Merge pull request #1997 from andrezibaia/patch-1
MichMich May 5, 2020
c8a0f1d
Fix some more undefs that popped up out of nowhere
May 5, 2020
7fc7d62
Add Module to globals, cleanup comments
May 5, 2020
b38b879
Merge pull request #2010 from rejas/no_undef_and_more
MichMich May 5, 2020
18820c3
Use correct object in browser context
May 6, 2020
8a1f9b7
Merge pull request #2012 from rejas/issue_2011
MichMich May 7, 2020
c202c0d
Add prettier, configs and editorconfig
rejas Mar 28, 2020
3a5a29e
Add pretty-quick
May 11, 2020
abb5dc5
Run prettier over ALL files once
May 11, 2020
205de72
add: advice api to compliments module
ndom91 May 14, 2020
a35e8f3
update: spaces -> tabs
ndom91 May 14, 2020
bbf48a0
Merge pull request #2021 from ndom91/update-compliments-module-advice…
MichMich May 24, 2020
4e1dce7
Merge pull request #2013 from rejas/prettier
MichMich May 25, 2020
94f212a
Fix travis error due to merge before prettier run
May 25, 2020
8a3a4d6
Merge pull request #2027 from rejas/fix_travis_error
MichMich May 25, 2020
52aa8b8
Truncate event title
radokristof May 28, 2020
766140f
Ability to hide sun details
radokristof May 28, 2020
6aa0a4a
Renamed function
radokristof May 29, 2020
b179c8e
Merge branch 'develop' into calendar-module
radokristof May 29, 2020
f449feb
Updated CHANGELOG.md
radokristof May 29, 2020
6f3b87c
Merge branch 'develop' into weather-module
radokristof May 29, 2020
e6ef649
Disable Sunrise/Sunset in Config option
radokristof May 29, 2020
bb972f8
Updated CHANGELOG.md
radokristof May 29, 2020
457c80f
Correct #2018
Ekristoffe May 30, 2020
d306bb2
Update CHANGELOG.md
Ekristoffe May 30, 2020
4a7076e
Prettier correction
Ekristoffe May 31, 2020
cc01c1f
Update weatherforecast.js
Ekristoffe May 31, 2020
d31b696
updated changelog
DarthBrento May 31, 2020
37e31ba
Update node_helper.js
DarthBrento May 31, 2020
1405e88
Update calendar.js
DarthBrento May 31, 2020
aeb287f
Attach identifier to socket notifications to allow multiple instances
DarthBrento Jun 1, 2020
21f76a8
Attach identifier to socket notifications to allow multiple instances
DarthBrento Jun 1, 2020
4fe974e
Check identifier for type, too
DarthBrento Jun 1, 2020
8fa2256
linted
DarthBrento Jun 1, 2020
3d73153
Revert "Renamed function"
radokristof Jun 1, 2020
efbb964
Introduce new function for location title shortening.
radokristof Jun 1, 2020
a692d6b
Reworked titleTransform.
radokristof Jun 1, 2020
fdaa0bc
Merge pull request #2031 from radokristof/calendar-module
MichMich Jun 2, 2020
5f2c465
Merge pull request #2032 from radokristof/weather-module
MichMich Jun 2, 2020
aac6757
Merge pull request #2035 from Ekristoffe/develop
MichMich Jun 2, 2020
4d21f8d
Merge branch 'develop' into develop
MichMich Jun 2, 2020
3b32605
Merge pull request #2036 from DarthBrento/develop
MichMich Jun 2, 2020
9461c16
Add node/browser wrapper around logger
rejas May 11, 2020
367233c
Add console-stamp to node-logger
rejas May 11, 2020
f2d03a5
User logger in node files
rejas May 11, 2020
d0c6a4e
Make logger configurable
May 11, 2020
c60446a
Fix tests
rejas May 11, 2020
0cae954
Use Log in loader too
rejas May 11, 2020
2334cbd
User logger in checkconfig script
May 18, 2020
8c31990
Cleanup outcommented logging
May 18, 2020
13073bc
Lint stuff
May 25, 2020
23c0e01
Use logger in node_helpers
rejas May 25, 2020
2330b16
Totall forgot we need a changelog entry
rejas May 25, 2020
008ac28
More console -> Logger conversions
rejas May 31, 2020
963b1aa
Final cleanups I think
rejas Jun 1, 2020
c7a88e2
Throw error when check_config fails
rejas Jun 14, 2020
d9a8d26
Merge pull request #2046 from rejas/issue_1928
MichMich Jun 14, 2020
c40a564
Merge branch 'develop' into config_logger
MichMich Jun 14, 2020
fd49be1
Remove unreachable code.
MichMich Jun 14, 2020
6d33086
Merge pull request #2017 from rejas/config_logger
MichMich Jun 14, 2020
6d60baa
Install latest ical version and use it
rejas Jun 17, 2020
7ab74c6
Remove old ical version
rejas Jun 17, 2020
442f270
Update CHANGELOG
rejas Jun 17, 2020
bb9ad3d
Use some const/let instead of var
rejas Jun 17, 2020
7d521ed
More var -> let/const conversions
rejas Jun 18, 2020
5d4a575
Undo switch to fetch, use request like ical did
rejas Jun 20, 2020
b2f71a2
Update dependencies
rejas Jun 20, 2020
53363b0
Simplify return call to make a better diff
rejas Jun 20, 2020
7e5bfa8
Fix slice parameter type
rejas Jun 20, 2020
1e5bd98
Make calendar debuger use const stuff and add npm script for it
rejas Jun 20, 2020
daa6f50
Use object.entries to iterate over data
rejas Jun 20, 2020
be3616a
Bug fix to correctly handle the logic for 'maxEntries' Issue #2050
chamakura Jun 20, 2020
2afff6c
Updating files to the latest versions from 'develop' branch
chamakura Jun 20, 2020
d328250
Merge pull request #2052 from chamakura/develop
MichMich Jun 20, 2020
9831f81
Merge branch 'develop' into issue_1926
rejas Jun 20, 2020
3b442d4
Merge pull request #2048 from rejas/issue_1926
MichMich Jun 22, 2020
42c13fa
Update compliments.js
MichMich Jun 24, 2020
2c5909a
Update CHANGELOG.md
MichMich Jun 24, 2020
c4bc3e2
Merge pull request #2054 from MichMich/revert-pr-2021
MichMich Jun 24, 2020
dd32d3a
New Met Office provider
XBCreepinJesus Jun 28, 2020
4339cdd
Included check for Met Office DataHub provider.
XBCreepinJesus Jun 28, 2020
d911b07
Met Office DataHub weather provider
XBCreepinJesus Jun 28, 2020
b91fccc
Update metofficedatahub.js
XBCreepinJesus Jun 28, 2020
fdd389d
Merge pull request #2058 from XBCreepinJesus/develop
MichMich Jun 28, 2020
7a3ea37
added config option to hide sunrise/sunset in Current Weather module
bryanzzhu Jun 29, 2020
ea31d34
Fix #2030 - Clock can be off by a minute
ZoneMR Jun 30, 2020
c9d0bd2
Updated the BG translation
Jul 1, 2020
6d829fa
Merge pull request #2059 from bryanzzhu/bryanzzhu-currentweather
MichMich Jul 1, 2020
8c01413
Fix EOF issue.
MichMich Jul 1, 2020
22fcee2
Merge branch 'develop' into pr/ZoneMR/2061
MichMich Jul 1, 2020
e0dcdc2
Merge pull request #2063 from lyubomirv/develop
MichMich Jul 1, 2020
2d3849a
Merge pull request #2061 from ZoneMR/patch-1
MichMich Jul 1, 2020
5d90a08
Prepare release 2.12.0
MichMich Jul 1, 2020
e16db22
Fix contributor list.
MichMich Jul 1, 2020
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
Prev Previous commit
Next Next commit
Fix #2030 - Clock can be off by a minute
Set minute/second in our model based on the actual time from moment() rather than our own attempt to track the time - which can drift or fail to respond to time changes.

Also, schedule time refreshes to happen 50ms after the minute/second is expected to change - preventing premature fires and rapid re-firings of notifications due to accuracy limits in setTimeout
  • Loading branch information
ZoneMR authored Jun 30, 2020
commit ea31d346494790eeb596f90e590ae96644b980c5
10 changes: 6 additions & 4 deletions modules/default/clock/clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ Module.register("clock",{

//Calculate how many ms should pass until next update depending on if seconds is displayed or not
var delayCalculator = function(reducedSeconds) {
var EXTRA_DELAY = 50; //Deliberate imperceptable delay to prevent off-by-one timekeeping errors

if (self.config.displaySeconds) {
return 1000 - moment().milliseconds();
return 1000 - moment().milliseconds() + EXTRA_DELAY;
} else {
return ((60 - reducedSeconds) * 1000) - moment().milliseconds();
return ((60 - reducedSeconds) * 1000) - moment().milliseconds() + EXTRA_DELAY;
}
};

Expand All @@ -64,7 +66,7 @@ Module.register("clock",{

//If seconds is displayed CLOCK_SECOND-notification should be sent (but not when CLOCK_MINUTE-notification is sent)
if (self.config.displaySeconds) {
self.second = (self.second + 1) % 60;
self.second = moment().second();
if (self.second !== 0) {
self.sendNotification("CLOCK_SECOND", self.second);
setTimeout(notificationTimer, delayCalculator(0));
Expand All @@ -73,7 +75,7 @@ Module.register("clock",{
}

//If minute changed or seconds isn't displayed send CLOCK_MINUTE-notification
self.minute = (self.minute + 1) % 60;
self.minute = moment().minute();
self.sendNotification("CLOCK_MINUTE", self.minute);
setTimeout(notificationTimer, delayCalculator(0));
};
Expand Down