Added few improvements to make MagicMirror better

Used momentjs' translations for every DateTime strings. No more need to add translations.

Added config.js to use as a central file for configurations.

Try to use Gmail's calendars and I've seen that there are some problems (with old events,
when an event has "email remembers", and with TimeZones). I'll try to solve it soon.
This commit is contained in:
Yuki (aka Ruben Gomez)
2014-05-22 19:48:46 +02:00
parent d33d681887
commit 0eea07f3d9
4 changed files with 63 additions and 96 deletions

23
js/config.js Normal file
View File

@@ -0,0 +1,23 @@
// for navigator language
var lang = window.navigator.language;
// you can change the language
//var lang = 'en';
//change weather params here:
var weatherParams = {
'q':'Baarn,Netherlands',
'units':'metric',
'lang':lang
};
// compliments:
var compliments = [
'Hey, handsome!',
'Hi, sexy!',
'Hello, beauty!',
'You look sexy!',
'Wow, you look hot!',
'Looking good today!',
'You look nice!',
'Enjoy your day!'
];