Read the statement by Michael Teeuw here.
Adding Modules... Please Please advise
-
Ok, cant find anything in the Readme, all git repos just state add to the modules…
Can someone please share their config file with multiple mods past the default, so i can see where i am going wrong…
Thanks
-
Just post your config.js file content and let others see what might be missing.
Please tab indent your file content before posting or use proper markup so the code is readable -
var config = {
port: 8080,language: 'en', timeFormat: 12, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left' }, { module: 'calendar', header: 'British Holidays', position: 'top_left', config: { calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics' } ] } }, { module: 'compliments', position: 'lower_third' }, { module: 'currentweather', position: 'top_right', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather huh!', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg!", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'MMM-WorldTides', position: 'top-right', config: { longitude: '7.880', //longitude and latitude need to be written with . instead of , latitude: '98.392', appid: '5d3d65d6-f4a6-45d4-ab44-13e4eab4b421' //appid needs to be requested from worldtides.info } }, ]};
Just getting a black screen…
-
Not sure if this is the problem but the position for module WorldTides should be top_right and not top-right
That btw is my fault, a stupid typo in the readme :(
-
ah, cool thanks, hopefully that’s all the problem is, :)
-
:( nope, i updated yet still have a blank screen :(
var config = {
port: 8080,language: 'en', timeFormat: 12, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left' }, { module: 'calendar', header: 'British Holidays Bitch', position: 'top_left', config: { calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics' } ] } }, { module: 'compliments', position: 'lower_third' }, { module: 'currentweather', position: 'top_right', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather huh!', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg Baby!", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'MMM-WorldTides', position: 'top_right', config: { longitude: '7.880', //longitude and latitude need to be written with . instead of , latitude: '98.392', appid: '5d3d65d6-f4a6-45d4-ab44-13e4eab4b421' //appid needs to be requested from worldtides.info } }, ]};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== ‘undefined’) {module.exports = config;} -
Is it due to not pasting the code like this
modules: [
{
module: ‘MMM-WorldTides’,
position: ‘top-right’,
config: {
longitude: ‘’, //longitude and latitude need to be written with . instead of ,
latitude: ‘’,
appid: ‘’ //appid needs to be requested from worldtides.info
}
} -
I need to check on my machine this evening, when I am at home
-
Thanks, much appreciated :)
-
var config = {
port: 8080,language: 'en', timeFormat: 12, units: 'metric', modules: [ { module: 'alert', }, { module: 'clock', position: 'top_left', }, { module: 'calendar', header: 'British Holidays Bitch', position: 'top_left', config: { calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics' } ] } }, { module: 'compliments', position: 'lower_third', }, { module: 'currentweather', position: 'top_right', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather huh!', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg Baby!", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'MMM-WorldTides', position: 'top_right', config: { longitude: '7.880', //longitude and latitude need to be written with . instead of , latitude: '98.392', appid: '5d3d65d6-f4a6-45d4-ab44-13e4eab4b421' //appid needs to be requested from worldtides.info } }, ]};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== ‘undefined’) {module.exports = config;} -
I think the error is that the line
module: 'alert',has a trailing comma, it should read
module: 'alert' -
Thanks will check now.
-
Strange these modules have not been pre- code checked before uploading to GH…?
I’ve updated my script as been adding other modules, and getting errors or just “loading”…
have added /// pre module lines to highlight the ones that i am having issues with …
var config = {
port: 8080,language: 'en', timeFormat: 12, units: 'metric', modules: [ { module: 'alert' }, { module: 'clock', position: 'top_left', }, { module: 'calendar', header: 'British Holidays', position: 'top_left', config: { calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/UK-Holidays.ics' } ] } }, { module: 'compliments', position: 'lower_third', }, { module: 'currentweather', position: 'top_right', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather huh!', config: { location: 'Phuket', locationID: '1151254', //ID from http://www.openweathermap.org appid: '297ccc98662ac6f508ac9e47c549a716' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { tittle: "BBC Sci-Tech", url: "http://feeds.bbci.co.uk/news/video_and_audio/technology/rss.xml?edition=uk" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'MMM-Instagram', position: 'top_right', config: { access_token: 'e897699215d0464f9aac278e4fdc25ba', count: 20, min_timestamp: 0, animationSpeed: 2500, updateInterval: 12500 } },/// {
/// module: ‘MMM-Carousel’,
/// config: {
/// // See below for configurable options
/// }
/// },
/// {
/// module: ‘camera’,
/// position: ‘top_center’,
/// config: selfieInterval: 3, // Time interval in seconds before the photo will be taken.
/// emailConfig: {
/// service: ‘gmail’, // Email provider to use to send email with a photo.
/// auth: {
/// user: ‘xxxx@xxx.com’, // Your email account
/// pass: ‘’ // Your password for email account
/// }
/// },
/// {
/// module: ‘voicecontrol’,
/// position: ‘bottom_left’,
/// config: {
/// models: [
/// {
/// keyword: “Show Camera”,
/// description: “Say ‘Show Camera’ to display camera”,
/// file: “showCamera.pmdl”,
/// message: “SHOW_CAMERA”
/// },
/// {
/// keyword: “Hide Camera”,
/// description: “Say ‘Hide Camera’ to hide camera”,
/// file: “hideCamera.pmdl”,
/// message: “HIDE_CAMERA”
/// },
/// {
/// keyword: “Selfie”,
/// description: “Say ‘Selfie’ when camera is visible”,
/// file: “selfie.pmdl”,
/// message: “SELFIE”
/// }
/// },
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== ‘undefined’) {module.exports = config;} -
@wjdw87 you’re missing curly braces for config in the camera module
-
Curley braces where sorry?
-
Guys, use proper formatting for your code! (edited to add: when posting on the forums - not in your config files)
Block code is done with
```on a line by itself, then your code, and closed with another```on a line by itself again. This is not the same as an apostrophe! It’s called a'back tick'or'accent grave'and can be found to the left of the numerical number 1 at the top on a US keyboard. Please use it! It makes reading your config files a lot easier.On non-US keyboards, um, its location will vary. You can also press and hold your ALT key, and using the numerical pad, enter 9 followed by 6, then let go of the ALT key. Repeat that three times and you get the three back ticks necessary.
-
link text My config
-
/// as used instead of ``` as they crash my system (the modules) just blank screen, will be removed when the issue is resolved.
-
@wjdw87 Why do you have the newsfeed module specified twice? You have:
{ module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg Baby!", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { tittle: "BBC Sci-Tech", url: "http://feeds.bbci.co.uk/news/video_and_audio/technology/rss.xml?edition=uk" } ], showSourceTitle: true, showPublishDate: true } },Would it not make more sense to just put both feeds in the feed array?
{ module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg Baby!", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" }, { title: "BBC Sci-Tech", url: "http://feeds.bbci.co.uk/news/video_and_audio/technology/rss.xml?edition=uk" } ], showSourceTitle: true, showPublishDate: true } }(Also, you misspelled “title” in your second newsfeed. You have an extra “t”.)
-
@bhepler said in Adding Modules... Please Please advise:
@wjdw87 Why do you have the newsfeed module specified twice? You have:
{ module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg Baby!", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { tittle: "BBC Sci-Tech", url: "http://feeds.bbci.co.uk/news/video_and_audio/technology/rss.xml?edition=uk" } ], showSourceTitle: true, showPublishDate: true } },Would it not make more sense to just put both feeds in the feed array?
{ module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Bloomberg Baby!", url: "https://www.bloomberg.com/feeds/podcasts/etf_report.xml" }, { title: "BBC Sci-Tech", url: "http://feeds.bbci.co.uk/news/video_and_audio/technology/rss.xml?edition=uk" } ], showSourceTitle: true, showPublishDate: true } }(Also, you misspelled “title” in your second newsfeed. You have an extra “t”.)
you can add them to the same array?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login