• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Adding Modules... Please Please advise

Scheduled Pinned Locked Moved General Discussion
25 Posts 6 Posters 14.3k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    strawberry 3.141 Project Sponsor Module Developer @Guest
    last edited by Oct 24, 2016, 8:37 PM

    @wjdw87 you’re missing curly braces for config in the camera module

    Please create a github issue if you need help, so I can keep track

    1 Reply Last reply Reply Quote 0
    • ? Offline
      A Former User
      last edited by Oct 25, 2016, 6:33 AM

      Curley braces where sorry?

      1 Reply Last reply Reply Quote 0
      • K Offline
        KirAsh4 Moderator
        last edited by KirAsh4 Oct 25, 2016, 7:17 AM Oct 25, 2016, 7:02 AM

        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.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 1
        • ? Offline
          A Former User
          last edited by A Former User Oct 25, 2016, 7:09 AM Oct 25, 2016, 7:09 AM

          link text My config

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by Oct 25, 2016, 7:16 AM

            /// as used instead of ``` as they crash my system (the modules) just blank screen, will be removed when the issue is resolved.

            B 1 Reply Last reply Oct 25, 2016, 4:17 PM Reply Quote 0
            • B Offline
              bhepler Module Developer @Guest
              last edited by bhepler Oct 25, 2016, 4:19 PM Oct 25, 2016, 4:17 PM

              @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”.)

              ? 1 Reply Last reply Oct 25, 2016, 4:27 PM Reply Quote 0
              • ? Offline
                A Former User @bhepler
                last edited by Oct 25, 2016, 4:27 PM

                @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?

                B 1 Reply Last reply Oct 25, 2016, 4:28 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @Guest
                  last edited by Oct 25, 2016, 4:28 PM

                  @wjdw87 Indeed, you can. The documentation for the newsfeed module gives a simple example.

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by Oct 25, 2016, 4:33 PM

                    Ah cool, updated that, but still have issues around the modules i’ve /// out

                    much appreciated though!

                    B 1 Reply Last reply Nov 13, 2016, 10:58 PM Reply Quote 0
                    • B Offline
                      bhepler Module Developer @Guest
                      last edited by Nov 13, 2016, 10:58 PM

                      @wjdw87 Okay, I finally had some time so I looked at the file you linked.

                      As @strawberry-3-141 said, you have an issue on line 100, part of the configuration of the camera module. You have: config: selfieInterval: 3, // Time interval in seconds before the photo will be taken.

                      You need to follow the config key with a JSON object, designated by curly braces. So the camera module section should look like so:

                      {
                      	module: 'camera',
                      	position: 'top_center',
                      	config: {
                      		selfieInterval: 3    
                      		emailConfig: {
                      			service: 'gmail', 
                      			auth: {
                      				user: '<xxx@xxx.com>',
                      				pass: '<xxx>' 
                      				},
                      			},
                      		}
                      	},
                      

                      It doesn’t help that the config section is wrong in the README.MD in the camera module. I’ll see if I can’t get a PR to fix that.

                      ? 1 Reply Last reply Nov 16, 2016, 2:16 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy