Skip to content

Commit 8a101f9

Browse files
authored
Merge pull request #931 from MichMich/develop
Release 2.1.2
2 parents 5c41e24 + ce98d01 commit 8a101f9

Some content is hidden

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

55 files changed

+1142
-263
lines changed

.dockerignore

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

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ Temporary Items
6565

6666
# Ignore changes to the custom css files.
6767
/css/custom.css
68+
69+
# Vim
70+
## swap
71+
[._]*.s[a-w][a-z]
72+
[._]s[a-w][a-z]
73+
74+
## diff patch
75+
*.orig
76+
*.rej
77+
*.bak

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_script:
1010
- sleep 5
1111
script:
1212
- grunt
13-
- npm test
13+
- npm run test:unit
1414
cache:
1515
directories:
1616
- node_modules

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,44 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [2.1.2] - 2017-07-01
6+
7+
### Changed
8+
- Revert Docker related changes in favor of [docker-MagicMirror](https://github.com/bastilimbach/docker-MagicMirror). All Docker images are outsourced. ([#856](https://github.com/MichMich/MagicMirror/pull/856))
9+
- Change Docker base image (Debian + Node) to an arm based distro (AlpineARM + Node) ([#846](https://github.com/MichMich/MagicMirror/pull/846))
10+
- Fix the dockerfile to have it running from the first time.
11+
12+
### Added
13+
- Add in option to wrap long calendar events to multiple lines using `wrapEvents` configuration option.
14+
- Add test e2e `show title newsfeed` for newsfeed module.
15+
- Add task to check configuration file.
16+
- Add test check URLs of vendors.
17+
- Add test of match current week number on clock module with showWeek configuration.
18+
- Add test default modules present modules/default/defaultmodules.js.
19+
- Add unit test calendar_modules function capFirst.
20+
- Add test for check if exists the directories present in defaults modules.
21+
- Add support for showing wind direction as an arrow instead of abbreviation in currentWeather module.
22+
- Add support for writing translation fucntions to support flexible word order
23+
- Add test for check if exits the directories present in defaults modules.
24+
- Add calendar option to set a separate date format for full day events.
25+
- Add ability for `currentweather` module to display indoor temperature via INDOOR_TEMPERATURE notification
26+
- Add ability to change the path of the `custom.css`.
27+
- Add translation Dutch to Alert module.
28+
- Added Romanian translation.
29+
30+
### Updated
31+
- Added missing keys to Polish translation.
32+
- Added missing key to German translation.
33+
- Added better translation with flexible word order to Finnish translation
34+
35+
### Fixed
36+
- Fix instruction in README for using automatically installer script.
37+
- Bug of duplicated compliments as described in [here](https://forum.magicmirror.builders/topic/2381/compliments-module-stops-cycling-compliments).
38+
- Fix double message about port when server is starting
39+
- Corrected Swedish translations for TODAY/TOMORROW/DAYAFTERTOMORROW.
40+
- Removed unused import from js/electron.js
41+
- Made calendar.js respect config.timeFormat irrespecive of locale setting
42+
- Fixed alignment of analog clock when a large calendar is displayed in the same side bar
543

644
## [2.1.1] - 2017-04-01
745

Dockerfile

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

Gruntfile.js

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,47 @@ module.exports = function(grunt) {
66
options: {
77
configFile: ".eslintrc.json"
88
},
9-
target: ["js/*.js", "modules/default/*.js", "modules/default/*/*.js",
10-
"serveronly/*.js", "*.js", "tests/*/*.js", "!modules/default/alert/notificationFx.js",
11-
"!modules/default/alert/modernizr.custom.js", "!modules/default/alert/classie.js",
9+
target: [
10+
"js/*.js",
11+
"modules/default/*.js",
12+
"modules/default/*/*.js",
13+
"serveronly/*.js",
14+
"*.js",
15+
"tests/**/*.js",
16+
"!modules/default/alert/notificationFx.js",
17+
"!modules/default/alert/modernizr.custom.js",
18+
"!modules/default/alert/classie.js",
1219
"config/*",
13-
"translations/translations.js", "vendor/vendor.js"
14-
20+
"translations/translations.js",
21+
"vendor/vendor.js",
22+
"modules/node_modules/node_helper/index.js"
1523
]
1624
},
1725
stylelint: {
1826
simple: {
1927
options: {
2028
configFile: ".stylelintrc"
2129
},
22-
src: ["css/main.css", "modules/default/calendar/calendar.css", "modules/default/clock/clock_styles.css", "modules/default/currentweather/currentweather.css", "modules/default/weatherforcast/weatherforcast.css"]
30+
src: [
31+
"css/main.css",
32+
"modules/default/calendar/calendar.css",
33+
"modules/default/clock/clock_styles.css",
34+
"modules/default/currentweather/currentweather.css",
35+
"modules/default/weatherforcast/weatherforcast.css"
36+
]
2337
}
2438
},
2539
jsonlint: {
2640
main: {
27-
src: ["package.json", ".eslintrc.json", ".stylelintrc", "translations/*.json",
28-
"modules/default/*/translations/*.json", "installers/pm2_MagicMirror.json",
29-
"vendor/package.js"],
41+
src: [
42+
"package.json",
43+
".eslintrc.json",
44+
".stylelintrc",
45+
"translations/*.json",
46+
"modules/default/*/translations/*.json",
47+
"installers/pm2_MagicMirror.json",
48+
"vendor/package.js"
49+
],
3050
options: {
3151
reporter: "jshint"
3252
}
@@ -58,11 +78,20 @@ module.exports = function(grunt) {
5878
"MD038": false
5979
}
6080
},
61-
src: ["README.md", "CHANGELOG.md", "LICENSE.md", "modules/README.md", "modules/default/**/*.md", "!modules/default/calendar/vendor/ical.js/readme.md"]
81+
src: [
82+
"README.md",
83+
"CHANGELOG.md",
84+
"LICENSE.md",
85+
"modules/README.md",
86+
"modules/default/**/*.md",
87+
"!modules/default/calendar/vendor/ical.js/readme.md"
88+
]
6289
}
6390
},
6491
yamllint: {
65-
all: [".travis.yml"]
92+
all: [
93+
".travis.yml"
94+
]
6695
}
6796
});
6897
grunt.loadNpmTasks("grunt-eslint");

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ docker run -d \
5959
--volume ~/magic_mirror/config:/opt/magic_mirror/config \
6060
--volume ~/magic_mirror/modules:/opt/magic_mirror/modules \
6161
--name magic_mirror \
62-
MichMich/MagicMirror
62+
bastilimbach/docker-magicmirror
6363
```
6464

6565
| **Volumes** | **Description** |
@@ -75,6 +75,8 @@ var config = {
7575
};
7676
```
7777

78+
If you want to run the server on a raspberry pi, use the `raspberry` tag. (bastilimbach/docker-magicmirror:raspberry)
79+
7880
#### Manual
7981

8082
1. Download and install the latest Node.js version.
@@ -104,6 +106,11 @@ Type `git status` to see your changes, if there are any, you can reset them with
104106
1. Duplicate `config/config.js.sample` to `config/config.js`. **Note:** If you used the installer script. This step is already done for you.
105107
2. Modify your required settings.
106108

109+
Note: You'll can check your configuration running the follow command:
110+
```bash
111+
npm run config:check
112+
```
113+
107114
The following properties can be configured:
108115

109116
| **Option** | **Description** |
@@ -117,7 +124,7 @@ The following properties can be configured:
117124
| `units` | The units that will be used in the default weather modules. Possible values are `metric` or `imperial`. The default is `metric`. |
118125
| `modules` | An array of active modules. **The array must contain objects. See the next table below for more information.** |
119126
| `electronOptions` | An optional array of Electron (browser) options. This allows configuration of e.g. the browser screen size and position (example: `electronOptions: { fullscreen: false, width: 800, height: 600 }`). Kiosk mode can be enabled by setting `kiosk = true`, `autoHideMenuBar = false` and `fullscreen = false`. More options can be found [here](https://github.com/electron/electron/blob/master/docs/api/browser-window.md). |
120-
127+
| `customCss` | The path of the `custom.css` stylesheet. The default is `css/custom.css`. |
121128

122129
Module configuration:
123130

config/config.js.sample

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22
*
33
* By Michael Teeuw http://michaelteeuw.nl
44
* MIT Licensed.
5+
*
6+
* For more information how you can configurate this file
7+
* See https://github.com/MichMich/MagicMirror#configuration
8+
*
59
*/
610

711
var config = {
812
port: 8080,
9-
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.
13+
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
14+
// or add a specific IPv4 of 192.168.1.5 :
15+
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
16+
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
17+
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
1018

1119
language: "en",
1220
timeFormat: 24,

docker-entrypoint.sh

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

installers/raspberry.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if command_exists node; then
6565
fi
6666

6767
else
68-
echo -e "\e[92mNo Node.js upgrade nessecery.\e[0m"
68+
echo -e "\e[92mNo Node.js upgrade necessary.\e[0m"
6969
fi
7070

7171
else
@@ -150,8 +150,7 @@ fi
150150

151151
# Use pm2 control like a service MagicMirror
152152
read -p "Do you want use pm2 for auto starting of your MagicMirror (y/n)?" choice
153-
if [[ $choice =~ ^[Yy]$ ]]
154-
then
153+
if [[ $choice =~ ^[Yy]$ ]]; then
155154
sudo npm install -g pm2
156155
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"
157156
pm2 start ~/MagicMirror/installers/pm2_MagicMirror.json

0 commit comments

Comments
 (0)