@Mykle1 Outside of that though is there any syntax issue with the lines starting with config: { down to compliments: {?
Edit: thanks guys turns out I had left out a comma and putting that in fixed it (after changing the quotes).
Read the statement by Michael Teeuw here.
Posts
-
RE: Modifying Compliments module
-
RE: Modifying Compliments module
@Mykle1 Thank you. I’m new at this and didn’t notice it but will do from now on.
-
Modifying Compliments module
So i’ve been working on this for a few weeks now and i’m completely stuck. I tried to change the compliments module in config.js and get an error at the three lines after position. Can anyone figure out what I’m doing wrong? here is my config.js
/* Magic Mirror Config Sample
*- 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 = {
address: “localhost”, // Address to listen on, can be:
// - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - “”, “0.0.0.0”, “::” to listen on any interface
// Default, when address config is left out, is “localhost”
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”],language: "en", timeFormat: 12, units: "imperial", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "compliments", position: "lower_third", Config: { updateInterval: 30000, compliments: { morning: [ “Good morning love!”, “Have a great day!”, “Hey Sexy!” ], afternoon: [ “Still looking great!”, “The cats are being bastards again”, ], evening: [ “How was your day?”, “You can do anything!” ], } } }, { module: "currentweather", position: "top_right", config: { location: "New York", locationID: "", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR_OPENWEATHER_API_KEY" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "New York", locationID: "5128581", //ID from http://www.openweathermap.org/help/city_list.txt appid: "YOUR_OPENWEATHER_API_KEY" } }, ]
};