mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
make config for compliments more organized
This commit is contained in:
parent
4bca536404
commit
2e812ac8ae
@ -2,12 +2,12 @@ var compliments = {
|
||||
complimentLocation: '.compliment',
|
||||
currentCompliment: '',
|
||||
complimentList: {
|
||||
'morning': morning,
|
||||
'afternoon': afternoon,
|
||||
'evening': evening
|
||||
'morning': config.compliments.morning,
|
||||
'afternoon': config.compliments.afternoon,
|
||||
'evening': config.compliments.evening
|
||||
},
|
||||
updateInterval: 30000,
|
||||
fadeInterval: 4000,
|
||||
updateInterval: config.compliments.interval || 30000,
|
||||
fadeInterval: config.compliments.fadeInterval || 4000,
|
||||
intervalId: null
|
||||
};
|
||||
|
||||
|
53
js/config.js
53
js/config.js
@ -1,37 +1,40 @@
|
||||
var config = {
|
||||
compliments: {
|
||||
interval: 2000,
|
||||
fadeInterval: 4000,
|
||||
morning: [
|
||||
'Are you always so stupid or is today a special occasion?',
|
||||
'Don\'t feel bad. A lot of people have no talent!',
|
||||
'I don\'t know what makes you so stupid, but it really works.'
|
||||
],
|
||||
afternoon: [
|
||||
'How did you get here? Did someone leave your cage open?',
|
||||
'I know you were born ugly, but why did you have a relapse?',
|
||||
'I know you\'re not as stupid as you look. Nobody could be!'
|
||||
],
|
||||
evening: [
|
||||
'How come you\'re here? I thought the zoo is closed at night!',
|
||||
'I\'d like to kick you in the teeth, but why should I improve your looks?',
|
||||
'If I had a face like yours. I\'d sue my parents!'
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
// for navigator language
|
||||
// var lang = window.navigator.language;
|
||||
// you can change the language
|
||||
var lang = 'nl';
|
||||
var lang = 'en';
|
||||
|
||||
//change weather params here:
|
||||
//units: metric or imperial
|
||||
var weatherParams = {
|
||||
'q':'Baarn,Netherlands',
|
||||
'units':'metric',
|
||||
'q':'Philadelphia,Pennsylvania',
|
||||
'units':'imperial',
|
||||
'lang':lang,
|
||||
'APPID':'YOUR_FREE_OPENWEATHER_API_KEY'
|
||||
'APPID':'ba8a928b5152be1d4b371b256554abfc'
|
||||
};
|
||||
|
||||
var feed = 'http://feeds.nos.nl/nosjournaal?format=rss';
|
||||
// var feed = 'http://feeds.nos.nl/nosjournaal?format=rss';
|
||||
//var feed = 'http://www.nu.nl/feeds/rss/achterklap.rss';
|
||||
//var feed = 'http://www.nu.nl/feeds/rss/opmerkelijk.rss';
|
||||
//var feed = 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml';
|
||||
|
||||
// compliments:
|
||||
var morning = [
|
||||
'Good morning, handsome!',
|
||||
'Enjoy your day!',
|
||||
'How was your sleep?'
|
||||
];
|
||||
|
||||
var afternoon = [
|
||||
'Hello, beauty!',
|
||||
'You look sexy!',
|
||||
'Looking good today!'
|
||||
];
|
||||
|
||||
var evening = [
|
||||
'Wow, you look hot!',
|
||||
'You look nice!',
|
||||
'Hi, sexy!'
|
||||
];
|
||||
var feed = 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml';
|
||||
|
Loading…
x
Reference in New Issue
Block a user