Now that I have my MM built and operational (you can see it in the “Show your mirror” forum - and please comment) I want to perfect the way I’ve done my editing. I’ll explain:
For example, a portion of my config.js file reads as follows:
header: ‘Weather Forecast’,
location: ‘New York’,
locationID: ‘5128581’, //ID from http://www.openweathermap.org
appid: ‘This is where my API key goes’
And a portion of my weatherforecast.js file reads:
// Default module config.
appid: “Im an idiot for posting my API key last time”,
updateInterval: 10 * 60 * 1000, // every 10 minutes
fadePoint: 0.25, // Start on 1/4th of the list.
initialLoadDelay: 2500, // 2.5 seconds delay. This delay is used to keep the OpenWeather API happy.
My question is this: Was I supposed to bring the settings in the weatherforecast.js file into the config.js file? Everything works fine but what is the right way of doing it? It would be easier to edit them if they were combined into the config.js file instead of bouncing back and forth between .js files. Or, are they supposed to remain separate?