• 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.

Config Options in the News Module

Scheduled Pinned Locked Moved Unsolved Troubleshooting
15 Posts 2 Posters 2.6k 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.
  • S Offline
    sdetweil @edwardssj
    last edited by Mar 21, 2020, 2:52 PM

    @edwardssj I did that in the message above this one

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    E 1 Reply Last reply Mar 21, 2020, 2:54 PM Reply Quote 0
    • E Offline
      edwardssj @sdetweil
      last edited by Mar 21, 2020, 2:54 PM

      @sdetweil Sorry Sam, I should have refresehed :)

      S 1 Reply Last reply Mar 21, 2020, 2:56 PM Reply Quote 0
      • S Offline
        sdetweil @edwardssj
        last edited by Mar 21, 2020, 2:56 PM

        @edwardssj no problem. Hope it works for you.

        The New York Times doesn’t allow it’s feed to be framed away from it’s parent site

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        E 2 Replies Last reply Mar 21, 2020, 3:01 PM Reply Quote 0
        • E Offline
          edwardssj @sdetweil
          last edited by Mar 21, 2020, 3:01 PM

          @sdetweil It does but of course brings the story up into a full screen, I just have to find a way to bring the text only into the window.

          Thank you for showing me the anatomy of the module.

          Stuart

          S 1 Reply Last reply Mar 21, 2020, 3:55 PM Reply Quote 0
          • E Offline
            edwardssj @sdetweil
            last edited by Mar 21, 2020, 3:55 PM

            @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 Mar 21, 2020, 3:57 PM Reply Quote 0
            • S Offline
              sdetweil @edwardssj
              last edited by Mar 21, 2020, 3:55 PM

              @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 Mar 21, 2020, 3:57 PM

                @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

                E 1 Reply Last reply Mar 21, 2020, 3:58 PM Reply Quote 0
                • E Offline
                  edwardssj @sdetweil
                  last edited by Mar 21, 2020, 3:58 PM

                  @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 Mar 21, 2020, 4:05 PM Reply Quote 0
                  • S Offline
                    sdetweil @edwardssj
                    last edited by Mar 21, 2020, 4:05 PM

                    @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

                    E 1 Reply Last reply Mar 21, 2020, 4:11 PM Reply Quote 0
                    • E Offline
                      edwardssj @sdetweil
                      last edited by Mar 21, 2020, 4:11 PM

                      @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
                      • 1 / 2
                      1 / 2
                      • First post
                        10/15
                        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