@sdetweil said in config.js in JSON format:
@Serge remember, this is not MagicMirror…
I have looked throught all the code. For simplicity I will call “SmartMirror” as SM and MagicMirror as MM further.
- config.schema.json files in SM contain plugins’ parameters and these files have JSON format. Example is a calendar config file smart-mirror/plugins/calendar/config.schema.json
{
"schema": {
"calendar": {
"type": "object",
"title": "Calendar Settings",
"properties": {
"icals": {
"type": "array",
"title": "iCal URLs",
"items": {
"type": "string"
}
},
"maxResults": {
"type": "integer",
"title": "Max Number of Events for all iCals",
"default": 9
- config.js in MagicMirror is not made in JSON format so it is not easy to make changes there as compared to SM’s config.schema.json
var config = {
address: "localhost",
port: 8080,
ipWhitelist: [],
language: "en",
timeFormat: 24,
units: "metric",
modules: [
{
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
}, }, ], };
Maybe I think wrong, please correct me if so.