Read the statement by Michael Teeuw here.
Need help
-
`/* 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: 24, units: "metric", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check", url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics" } ] } }, { module: "compliments", position: "lower_third", }, { module: "currentweather", position: "top_right", config: { location: "Memphis", locationID: "5526145", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "3007140bdfc742d642dfe84a75fe3032" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "Memphis", locationID: "5526145", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "3007140bdfc742d642dfe84a75fe3032" }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, {
module: “MMM-NowPlayingOnSpotify”,
position: “bottom_left”,config: {
showCoverArt: false,
clientID: “a0f4d0df56b6446ca2be3f81ed7d544f”,
clientSecret: “9fd7e975f6c64e74a24c8c1e37f53abb”,
accessToken: “BQAyYFsDVd5q982SILK2l-xeytM49RKC-UrfHUAzt8hgRMhNI9s0WcZ2pVmxNLjODGP82rl1WcKoFZPHiSC9jzcgSbXmxRs9-efUCd8NWdzk_NQWopDe_8IjdSKFwL9hiLh6bWIGt4rdVgZJ6v1CnlifLE-ao3GC”,
refreshToken: “AQDgYew540LhC4nKUwFcEUaisenwciMBbzagl0Ok-jXJfAlABx3UDgaQMQ4HHh5-FV46pbG-PpHQog4fdIoomzyCYOt220YphZws79yUQfIUdsD1TnKEAxJAC4QzRQA707xWoA”
}
},
{
` module: “MMM-AVStock”,
position: “top_center”,
config: {
apiKey : “LWQTCZMIKEGOSSXJ”,
timeFormat: “YYYY-MM-DD HH:mm:ss”,
symbols : [“TSLA”],
alias: [“TESLA”],
tickerDuration: 60,
chartDays: 90,
poolInterval : 1000*15,
mode : “series”,
decimals: 4,
candleSticks : false,
coloredCandles : false,
premiumAccount: false,
}},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== “undefined”) {module.exports = config;} -
@Calrus what help?
-
@sdetweil The code isn’t running. It says syntax error
-
@Calrus ok… from the MagicMirror folder do
npm run config:check
start fixing errors in config.js at the top
rerun after each change…
i see a quote in front of the module: “avstock” but it may be your cut/paste
-
That fixed it! Thanks so much!
-
@Calrus - I’m glad you got it working. In the future, please use the markdown features of the board when posting code.