Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:MichMich/MagicMirror into task/i…
Browse files Browse the repository at this point in the history
…mprove_dockerfile
  • Loading branch information
javiersigler committed Apr 6, 2017
2 parents b9749ba + 28e8cc2 commit 8f8dfab
Show file tree
Hide file tree
Showing 8 changed files with 492 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Added
- Add in option to wrap long calendar events to multiple lines using `wrapEvents` configuration option.
- Add test e2e `show title newsfeed` for newsfeed module.

### Updated
- Added missing keys to Polish translation.
- Added missing key to German translation.

### Fixed
- Fix instruction in README for using automatically installer script.

## [2.1.1] - 2017-04-01

**Note:** This update uses new dependencies. Please update using the following command: `git pull && npm install`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Electron, the app wrapper around MagicMirror², only supports the Raspberry Pi 2

Execute the following command on your Raspberry Pi to install MagicMirror²:
````
curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash
bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
````

### Manual Installation
Expand Down
10 changes: 7 additions & 3 deletions config/config.js.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/

var config = {
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

language: "en",
timeFormat: 24,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"bugs": {
"url": "https://github.com/MichMich/MagicMirror/issues"
},
"homepage": "https://github.com/MichMich/MagicMirror#readme",
"homepage": "https://magicmirror.builders",
"devDependencies": {
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
Expand All @@ -46,6 +46,7 @@
"time-grunt": "latest"
},
"dependencies": {
"body-parser": "^1.17.1",
"colors": "^1.1.2",
"electron": "^1.4.7",
"express": "^4.14.0",
Expand Down
410 changes: 410 additions & 0 deletions tests/configs/data/feed_test_rodrigoramirez.xml

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions tests/configs/modules/newsfeed/default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/* Magic Mirror Test config newsfeed module
*
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
* MIT Licensed.
*/

var config = {
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],

language: "en",
timeFormat: 12,
units: "metric",
electronOptions: {
webPreferences: {
nodeIntegration: true,
},
},

modules: [
{

module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "Rodrigo Ramirez Blog",
url: "http://localhost:8080/tests/configs/data/feed_test_rodrigoramirez.xml"
},
]
}
}
]
};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
28 changes: 28 additions & 0 deletions tests/e2e/modules/newsfeed_spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const globalSetup = require("../global-setup");
const app = globalSetup.app;
const chai = require("chai");
const expect = chai.expect;

describe("Newsfeed module", function () {

this.timeout(20000);

beforeEach(function (done) {
app.start().then(function() { done(); } );
});

afterEach(function (done) {
app.stop().then(function() { done(); });
});

describe("Default configuration", function() {

before(function() {
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
});

it("show title newsfeed", function () {
return app.client.waitUntilTextExists(".newsfeed .small", "Rodrigo Ramirez Blog", 10000).should.be.fulfilled;
});
});
});
2 changes: 2 additions & 0 deletions translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"RUNNING": "Заканчивается через",
"EMPTY": "Нет предстоящих событий",

"WEEK": "Неделя",

"N": "С",
"NNE": "ССВ",
"NE": "СВ",
Expand Down

0 comments on commit 8f8dfab

Please sign in to comment.