remoteFile
compliments.json
- null
(Do not load from file)
- remoteFile
compliments.json
+ null
(Do not load from file)
+ night_rain
* night_thunderstorm
* night_snow
-* night_alt_cloudy_windy
+* night_alt_cloudy_windy
#### Example use with currentweather module
````javascript
From 53d2c7e89fd662789bea98e4cc0d74560368821d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?=
Date: Wed, 7 Dec 2016 22:00:12 -0300
Subject: [PATCH 4/5] compliments: add abilty to set classes for compliments
module
---
CHANGELOG.md | 1 +
modules/default/compliments/compliments.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f757b0bf..673b5669 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Added option `remoteFile` to compliments module to load compliment array from filesystem.
- Added option `zoom` to scale the whole mirror display with a given factor.
- Added option `roundTemp` for currentweather and weatherforecast modules to display temperatures rounded to nearest integer.
+- Added abilty set the classes option to compliments module for style and text size of compliments.
### Updated
- Modified translations for Frysk.
diff --git a/modules/default/compliments/compliments.js b/modules/default/compliments/compliments.js
index 3bfdc8be..e43abe0d 100644
--- a/modules/default/compliments/compliments.js
+++ b/modules/default/compliments/compliments.js
@@ -144,7 +144,7 @@ Module.register("compliments",{
var compliment = document.createTextNode(complimentText);
var wrapper = document.createElement("div");
- wrapper.className = "thin xlarge bright";
+ wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright";
wrapper.appendChild(compliment);
return wrapper;
From 3c11c3fc16101d6e2afa48e1638a68ca8f82db6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?=
Date: Tue, 13 Dec 2016 00:33:29 -0300
Subject: [PATCH 5/5] splashscreen: remove flag not used into script plymouth
---
splashscreen/MagicMirror.script | 2 --
1 file changed, 2 deletions(-)
diff --git a/splashscreen/MagicMirror.script b/splashscreen/MagicMirror.script
index d7e7b860..9b614389 100644
--- a/splashscreen/MagicMirror.script
+++ b/splashscreen/MagicMirror.script
@@ -8,8 +8,6 @@ image_height = theme_image.GetHeight();
scale_x = image_width / screen_width;
scale_y = image_height / screen_height;
-flag = 1;
-
if (scale_x > 1 || scale_y > 1)
{
if (scale_x > scale_y)