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.

    Config Options in the News Module

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    15 Posts 2 Posters 3.4k Views 2 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.
    • edwardssjE Offline
      edwardssj @sdetweil
      last edited by

      @sdetweil I have broken something and I cannot see where

      /*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/
      
      var config = 
      {
        address: '0.0.0.0',
        electronOptions: {},
        ipWhitelist: [],
        modules: [
          {
            module: 'MMM-Remote-Control',
            position: 'bottom_right',
            config: {
              apiKey: '',
              customCommand: {}
            }
          },
          {
            module: 'alert',
            config: {}
          },
          {
            module: 'updatenotification',
            position: 'top_bar',
            config: {}
          },
          {
            module: 'clock',
            position: 'top_left',
            config: {}
          },
          {
            module: 'calendar',
            header: 'UK Holidays',
            position: 'top_left',
            config: {
              calendars: [
                {
                  symbol: 'calendar-check',
                  url: 'webcal://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics'
                }
              ],
              titleReplace: {
                'De verjaardag van ': '',
                '\'s birthday': ''
              },
              excludedEvents: []
            }
          },
          {
            module: 'currentweather',
            position: 'top_right',
            config: {
              location: 'Cwmbran',
              locationID: '2651654',
              appid: 'c1a5ad438e20f60a0f61165ef64837da',
              iconTable: {
                '01d': 'wi-day-sunny',
                '02d': 'wi-day-cloudy',
                '03d': 'wi-cloudy',
                '04d': 'wi-cloudy-windy',
                '09d': 'wi-showers',
                '10d': 'wi-rain',
                '11d': 'wi-thunderstorm',
                '13d': 'wi-snow',
                '50d': 'wi-fog',
                '01n': 'wi-night-clear',
                '02n': 'wi-night-cloudy',
                '03n': 'wi-night-cloudy',
                '04n': 'wi-night-cloudy',
                '09n': 'wi-night-showers',
                '10n': 'wi-night-rain',
                '11n': 'wi-night-thunderstorm',
                '13n': 'wi-night-snow',
                '50n': 'wi-night-alt-cloudy-windy'
              }
            },
            header: ''
          },
          {
            module: 'weatherforecast',
            position: 'top_right',
            header: 'Weather Forecast',
            config: {
              location: 'Cwmbran',
              locationID: '2651654',
              appid: '6ad7c913f464a99eef2b61631b084d42',
              iconTable: {
                '01d': 'wi-day-sunny',
                '02d': 'wi-day-cloudy',
                '03d': 'wi-cloudy',
                '04d': 'wi-cloudy-windy',
                '09d': 'wi-showers',
                '10d': 'wi-rain',
                '11d': 'wi-thunderstorm',
                '13d': 'wi-snow',
                '50d': 'wi-fog',
                '01n': 'wi-night-clear',
                '02n': 'wi-night-cloudy',
                '03n': 'wi-night-cloudy',
                '04n': 'wi-night-cloudy',
                '09n': 'wi-night-showers',
                '10n': 'wi-night-rain',
                '11n': 'wi-night-thunderstorm',
                '13n': 'wi-night-snow',
                '50n': 'wi-night-alt-cloudy-windy'
              }
            }
          },
          {
            module: 'newsfeed',
            position: 'top_center',
            config: {
              feeds: [
                {
                  title: 'BBC News',
                  url: 'http://feeds.bbci.co.uk/news/rss.xml'
                }
              ],
              showDescription: true,
              ignoreOldItems: true,
              scrollLength: true,
              startTags: [],
              endTags: [],
              prohibitedWords: []
      }
            },
            header: ''
        ],
        paths: {
          modules: 'modules',
          vendor: 'vendor'
        }
      }
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @edwardssj
        last edited by

        @edwardssj u could edit the code not to be full screen. Careful the article could be clipped at the iframe edge

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @edwardssj
          last edited by

          @edwardssj what is that extra } after prohibited words?

          Match the braces and brackets

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          edwardssjE 1 Reply Last reply Reply Quote 0
          • edwardssjE Offline
            edwardssj @sdetweil
            last edited by

            @sdetweil Do I just remove it?

            Coding is not my strong suit, I tried adding an extra module and got it very wrong

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @edwardssj
              last edited by

              @edwardssj run npm run config:check from the MagicMirror folder.

              Fix errors starting from the top.
              Errors are usually reported on the line after the problem.

              (Usually)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              edwardssjE 1 Reply Last reply Reply Quote 0
              • edwardssjE Offline
                edwardssj @sdetweil
                last edited by

                @sdetweil Fixed it by copying the lower portion of the sample file into the live file, will look at the differences later to see where I went wrong, thank you for your help.

                Stuart

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • 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