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

Not reading RSS

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 2 Posters 3.5k 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.
  • N Offline
    ninjabreadman @goncalovsc
    last edited by Mar 16, 2018, 1:56 AM

    @goncalovsc That was just to check that the MM could reach cmjornal.pt.

    Hmm, if it works with NYT, it may have a problem parsing your RSS feed. Start your MM with npm start dev to see errors in both Terminal and the Chrome/Electron JavaScript console.

    The RSS feed contains errors, but it still loads for me:

    0_1521165345095_Screen Shot 2018-03-15 at 9.54.56 PM.png

    Problem with config or JavaScript? Copy/paste it into JSHint.
    Check out the detailed walkthroughs on install, config, modules, etc.

    1 Reply Last reply Reply Quote 0
    • G Offline
      goncalovsc
      last edited by Mar 16, 2018, 8:52 PM

      This is my newsfeed.js file

      // Default module config.
      	defaults: {
      		feeds: [
      			{
      				title: "Ultimas Noticias",
      				url: "http://www.cmjornal.pt/rss",
      				encoding: "UTF-8" //ISO-8859-1
      			}
      		],
      		showSourceTitle: true,
      		showPublishDate: true,
      		showDescription: false,
      		wrapTitle: true,
      		wrapDescription: true,
      		truncDescription: true,
      		lengthDescription: 400,
      		hideLoading: false,
      		reloadInterval: 5 * 60 * 1000, // every 5 minutes
      		updateInterval: 10 * 1000,
      		animationSpeed: 2.5 * 1000,
      		maxNewsItems: 0, // 0 for unlimited
      		ignoreOldItems: false,
      		ignoreOlderThan: 24 * 60 * 60 * 1000, // 1 day
      		removeStartTags: "",
      		removeEndTags: "",
      		startTags: [],
      		endTags: [],
      		prohibitedWords: []
      	},
      
      	// Define required scripts.
      	getScripts: function() {
      		return ["moment.js"];
      	},
      

      Any idea why its stuck on loading?

      N 1 Reply Last reply Mar 16, 2018, 10:08 PM Reply Quote 0
      • N Offline
        ninjabreadman @goncalovsc
        last edited by ninjabreadman Mar 16, 2018, 10:08 PM Mar 16, 2018, 10:08 PM

        @goncalovsc Is that your full newsfeed.js file? That is definitely not the complete file. Suggest running git checkout ~/MagicMirror/modules/newsfeed.js in Terminal.

        Best practice is to not edit your module files (e.g. newsfeed.js). Instead, override the defaults with your own settings in config/config.js.

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        1 Reply Last reply Reply Quote 0
        • G Offline
          goncalovsc
          last edited by Mar 16, 2018, 10:41 PM

          Thanks for the help, it was an “http://” that was missing :p
          But Now i have the se=ame problem that you had, a lot of "?"appears in special caracthers like “ç”, “ó”, etc.
          Any solution?

          1 Reply Last reply Reply Quote 0
          • G Offline
            goncalovsc
            last edited by Mar 16, 2018, 11:13 PM

            I discovered now how to fix, just changed the encoding in both files and its working

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