Skip to content

Commit 447c0bf

Browse files
authored
Merge pull request #1968 from MichMich/develop
Release 2.11.0
2 parents 5bf90ae + 46df59d commit 447c0bf

Some content is hidden

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

78 files changed

+2680
-5790
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"curly": "error",
88
"camelcase": ["error", {"properties": "never"}],
99
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
10+
"no-multi-spaces": "error",
1011
"no-trailing-spaces": ["error", {"ignoreComments": false }],
1112
"no-irregular-whitespace": ["error"]
1213
},

.github/ISSUE_TEMPLATE.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
Please only submit reproducible issues.
2-
1+
## I'm not sure if this is a bug
32
If you're not sure if it's a real bug or if it's just you, please open a topic on the forum: [https://forum.magicmirror.builders/category/15/bug-hunt](https://forum.magicmirror.builders/category/15/bug-hunt)
3+
4+
## I'm having troubles installing or configuring MagicMirror
45
Problems installing or configuring your MagicMirror? Check out: [https://forum.magicmirror.builders/category/10/troubleshooting](https://forum.magicmirror.builders/category/10/troubleshooting)
56

7+
## I found a bug in the MagicMirror installer
8+
If you are facing an issue or found a bug while trying to install MagicMirror via the installer please report it in the respective GitHub repository:
9+
[https://github.com/sdetweil/MagicMirror_scripts](https://github.com/sdetweil/MagicMirror_scripts)
10+
11+
## I found a bug in the MagicMirror Docker image
12+
If you are facing an issue or found a bug while running MagicMirror inside a Docker container please create an issue in the GitHub repository of the MagicMirror Docker image:
13+
[https://github.com/bastilimbach/docker-MagicMirror](https://github.com/bastilimbach/docker-MagicMirror)
14+
15+
---
16+
17+
## I found a bug in MagicMirror
18+
Please make sure to only submit reproducible issues. You can safely remove everything above the dividing line.
619
When submitting a new issue, please supply the following information:
720

821
**Platform**: Place your platform here... give us your web browser/Electron version *and* your hardware (Raspberry Pi 2/3, Windows, Mac, Linux, System V UNIX).
922

10-
**Node Version**: Make sure it's version 0.12.13 or later.
23+
**Node Version**: Make sure it's version 8 or later.
1124

12-
**MagicMirror Version**: Now that the versions have split, tell us if you are using the PHP version (v1) or the newer JavaScript version (v2).
25+
**MagicMirror Version**: Please let us now which version of MagicMirror you are running. It can be found in the `package.log` file.
1326

1427
**Description**: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem.
1528

.travis.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
dist: trusty
22
language: node_js
33
node_js:
4-
- "10"
4+
- 10
5+
- lts/*
6+
- node
57
before_install:
68
- npm i -g npm
79
before_script:
8-
- yarn danger ci
9-
- npm install grunt-cli -g
10-
- "export DISPLAY=:99.0"
11-
- "sh -e /etc/init.d/xvfb start"
12-
- sleep 5
10+
- yarn danger ci
11+
- npm install grunt-cli -g
12+
- "export DISPLAY=:99.0"
13+
- "export ELECTRON_DISABLE_SANDBOX=1"
14+
- "sh -e /etc/init.d/xvfb start"
15+
- sleep 5
1316
script:
14-
- npm run test:e2e
15-
- npm run test:unit
16-
- grunt
17+
- npm run test:lint
18+
- npm run test:e2e
19+
- npm run test:unit
1720
after_script:
18-
- npm list
21+
- npm list
1922
cache:
20-
directories:
21-
- node_modules
23+
directories:
24+
- node_modules

CHANGELOG.md

100755100644
Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,54 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6-
❤️ **Donate:** Enjoying MagicMirror²? [Please consider a donation!](https://magicmirror.builders/donate) With your help we can continue to improve the MagicMirror² core.
6+
❤️ **Donate:** Enjoying MagicMirror²? [Please consider a donation!](https://magicmirror.builders/donate) With your help we can continue to improve the MagicMirror²
7+
8+
## [2.11.0] - 2020-04-01
9+
10+
🚨 READ THIS BEFORE UPDATING 🚨
11+
12+
In the past years the project has grown a lot. This came with a huge downside: poor maintainability. If I let the project continue the way it was, it would eventually crash and burn. More important: I would completely lose the drive and interest to continue the project. Because of this the decision was made to simplify the core by removing all side features like automatic installers and support for exotic platforms. This release (2.11.0) is the first real release that will reflect (parts) of these changes. As a result of this, some things might break. So before you continue make sure to backup your installation. Your config, your modules or better yet: your full MagicMirror folder. In other words: update at your own risk.
13+
14+
For more information regarding this major change, please check issue [#1860](https://github.com/MichMich/MagicMirror/issues/1860).
15+
16+
### Deleted
17+
- Remove installers.
18+
- Remove externalized scripts.
19+
- Remove jshint dependency, instead eslint checks your config file now
20+
21+
### Added
22+
- Brazilian translation for "FEELS".
23+
- Ukrainian translation.
24+
- Finnish translation for "PRECIP", "UPDATE_INFO_MULTIPLE" and "UPDATE_INFO_SINGLE".
25+
- Added the ability to hide the temp label and weather icon in the `currentweather` module to allow showing only information such as wind and sunset/rise.
26+
- The `clock` module now optionally displays sun and moon data, including rise/set times, remaining daylight, and percent of moon illumination.
27+
- Added Hebrew translation.
28+
- Add HTTPS support and update config.js.sample
29+
- Run tests on long term support and latest stable version of nodejs
30+
- Added the ability to configure a list of modules that shouldn't be update checked.
31+
- Run linters on git commits
32+
- Added date functionality to compliments: display birthday wishes or celebrate an anniversary
33+
34+
### Fixed
35+
- Force declaration of public ip address in config file (ISSUE #1852)
36+
- Fixes `run-start.sh`: If running in docker-container, don't check the environment, just start electron (ISSUE #1859)
37+
- Fix calendar time offset for recurring events crossing Daylight Savings Time (ISSUE #1798)
38+
- Fix regression in currentweather module causing 'undefined' to show up when config.hideTemp is false
39+
- Fix FEELS translation for Croatian
40+
- Fixed weather tests [#1840](https://github.com/MichMich/MagicMirror/issues/1840)
41+
- Fixed Socket.io can't be used with Reverse Proxy in serveronly mode [#1934](https://github.com/MichMich/MagicMirror/issues/1934)
42+
- Fix update checking skipping 3rd party modules the first time
43+
44+
### Changed
45+
- Remove documentation from core repository and link to new dedicated docs site: [docs.magicmirror.builders](https://docs.magicmirror.builders).
46+
- Updated config.js.sample: Corrected some grammar on `config.js.sample` comment section.
47+
- Removed `run-start.sh` script and update start commands:
48+
- To start using electron, use `npm run start`.
49+
- To start in server only mode, use `npm run server`.
50+
- Remove redundant logging from modules.
51+
- Timestamp in log output now also contains the date
52+
- Turkish translation.
53+
- Option to configure the size of the currentweather module.
754

855
## [2.10.1] - 2020-01-10
956

@@ -12,6 +59,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1259

1360
## [2.10.0] - 2020-01-01
1461

62+
Special thanks to @sdetweil for all his great contributions!
63+
1564
ℹ️ **Note:** This update uses new dependencies. Please update using the following command: `git pull && npm install`.
1665

1766
### Added
@@ -32,9 +81,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3281
- Fixed issue in weatherforecast module where predicted amount of rain was not using the decimal symbol specified in config.js.
3382
- Module header now updates correctly, if a module need to dynamically show/hide its header based on a condition.
3483
- Fix handling of config.js for serverOnly mode commented out.
35-
- Fixed issue in calendar module where the debug script didn't work correctly with authentication
36-
- Fixed issue that some full day events were not correctly recognized as such
37-
- Display full day events lasting multiple days as happening today instead of some days ago if they are still ongoing
84+
- Fixed issue in calendar module where the debug script didn't work correctly with authentication.
85+
- Fixed issue that some full day events were not correctly recognized as such.
86+
- Display full day events lasting multiple days as happening today instead of some days ago if they are still ongoing.
3887

3988
## [2.9.0] - 2019-10-01
4089

@@ -541,7 +590,7 @@ A huge, huge, huge thanks to user @fewieden for all his hard work on the new `we
541590
- Added option `remoteFile` to compliments module to load compliment array from filesystem.
542591
- Added option `zoom` to scale the whole mirror display with a given factor.
543592
- Added option `roundTemp` for currentweather and weatherforecast modules to display temperatures rounded to nearest integer.
544-
- Added abilty set the classes option to compliments module for style and text size of compliments.
593+
- Added ability set the classes option to compliments module for style and text size of compliments.
545594
- Added ability to configure electronOptions
546595
- Calendar module: option to hide private events
547596
- Add root_path for global vars

Gruntfile.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = function(grunt) {
22
require("time-grunt")(grunt);
3+
var fix = (grunt.option("env") || "lint") === "lint";
34
grunt.initConfig({
4-
pkg: grunt.file.readJSON("package.json"),
55
eslint: {
66
options: {
7-
fix: "true",
7+
fix: fix,
88
configFile: ".eslintrc.json"
99
},
1010
target: [
@@ -20,13 +20,13 @@ module.exports = function(grunt) {
2020
"!modules/default/alert/classie.js",
2121
"config/*",
2222
"translations/translations.js",
23-
"vendor/vendor.js",
24-
"modules/node_modules/node_helper/index.js"
23+
"vendor/vendor.js"
2524
]
2625
},
2726
stylelint: {
2827
simple: {
2928
options: {
29+
fix: fix,
3030
configFile: ".stylelintrc.json"
3131
},
3232
src: [
@@ -44,7 +44,6 @@ module.exports = function(grunt) {
4444
"package.json",
4545
".eslintrc.json",
4646
".stylelintrc.json",
47-
"installers/pm2_MagicMirror.json",
4847
"translations/*.json",
4948
"modules/default/*/translations/*.json",
5049
"vendor/package.json"
@@ -77,7 +76,8 @@ module.exports = function(grunt) {
7776
"MD018": false,
7877
"MD012": false,
7978
"MD026": false,
80-
"MD038": false
79+
"MD038": false,
80+
"MD047": false
8181
}
8282
},
8383
src: [
@@ -101,5 +101,6 @@ module.exports = function(grunt) {
101101
grunt.loadNpmTasks("grunt-jsonlint");
102102
grunt.loadNpmTasks("grunt-yamllint");
103103
grunt.loadNpmTasks("grunt-markdownlint");
104+
104105
grunt.registerTask("default", ["eslint", "stylelint", "jsonlint", "markdownlint", "yamllint"]);
105106
};

clientonly/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* jshint esversion: 6 */
2-
31
"use strict";
42

53
// Use separate scope to prevent global scope pollution

config/config.js.sample

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* By Michael Teeuw http://michaelteeuw.nl
44
* MIT Licensed.
55
*
6-
* For more information how you can configurate this file
6+
* For more information on how you can configure this file
77
* See https://github.com/MichMich/MagicMirror#configuration
88
*
99
*/
@@ -12,24 +12,28 @@ var config = {
1212
address: "localhost", // Address to listen on, can be:
1313
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
1414
// - another specific IPv4/6 to listen on a specific interface
15-
// - "", "0.0.0.0", "::" to listen on any interface
16-
// Default, when address config is left out, is "localhost"
15+
// - "0.0.0.0", "::" to listen on any interface
16+
// Default, when address config is left out or empty, is "localhost"
1717
port: 8080,
1818
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
1919
// or add a specific IPv4 of 192.168.1.5 :
2020
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
2121
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
2222
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
2323

24+
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
25+
httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true
26+
httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true
27+
2428
language: "en",
2529
timeFormat: 24,
2630
units: "metric",
2731
// serverOnly: true/false/"local" ,
28-
// local for armv6l processors, default
32+
// local for armv6l processors, default
2933
// starts serveronly and then starts chrome browser
3034
// false, default for all NON-armv6l devices
3135
// true, force serveronly mode, because you want to.. no UI on this device
32-
36+
3337
modules: [
3438
{
3539
module: "alert",
@@ -63,7 +67,7 @@ var config = {
6367
position: "top_right",
6468
config: {
6569
location: "New York",
66-
locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
70+
locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
6771
appid: "YOUR_OPENWEATHER_API_KEY"
6872
}
6973
},
@@ -73,7 +77,7 @@ var config = {
7377
header: "Weather Forecast",
7478
config: {
7579
location: "New York",
76-
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
80+
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
7781
appid: "YOUR_OPENWEATHER_API_KEY"
7882
}
7983
},

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class="region bottom right"><div class="container"></div></div>
3838
</div>
3939
<div class="region fullscreen above"><div class="container"></div></div>
40-
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
40+
<script type="text/javascript" src="socket.io/socket.io.js"></script>
4141
<script type="text/javascript" src="vendor/node_modules/nunjucks/browser/nunjucks.min.js"></script>
4242
<script type="text/javascript" src="js/defaults.js"></script>
4343
<script type="text/javascript" src="#CONFIG_FILE#"></script>

installers/dumpactivemodules.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)