MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. anyhowat
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 0

    anyhowat

    @anyhowat

    0
    Reputation
    136
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    anyhowat Unfollow Follow

    Latest posts made by anyhowat

    • Calendar Module Error "Exceeded maxRedirects. Probably stuck in a redirect loop"

      Hi!

      I’m trying to fetch this calender in the default calendar module:

      http://weboffice.orf.at/owa/calendar/4820fc8ddfc0468cbe426b3e08c330b8@orf.at/b5842d9f817246008d95c9f8360a1dbe10919048264267524527/calendar.ics

      This gives me the following error:

      (node:22123) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
      Calendar Error. Could not fetch calendar:  http://weboffice.orf.at/owa/calendar/4820fc8ddfc0468cbe426b3e08c330b8@orf.at/b5842d9f817246008d95c9f8360a1dbe10919048264267524527/calendar.ics Error: Exceeded maxRedirects. Probably stuck in a redirect loop https://weboffice.orf.at/my.policy
          at Redirect.onResponse (/home/pi/MagicMirror/modules/node_modules/request/lib/redirect.js:98:27)
          at Request.onRequestResponse (/home/pi/MagicMirror/modules/node_modules/request/request.js:993:22)
          at ClientRequest.emit (events.js:182:13)
          at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:546:21)
          at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
          at TLSSocket.socketOnData (_http_client.js:432:20)
          at TLSSocket.emit (events.js:182:13)
          at addChunk (_stream_readable.js:279:12)
          at readableAddChunk (_stream_readable.js:264:11)
          at TLSSocket.Readable.push (_stream_readable.js:219:10)
      

      I googled a possible solution, which is to add

      require('events').EventEmitter.defaultMaxListeners = 15;
      

      somewhere. But I don’t know where. Changing the Node Module Files is probably not best practise…

      Thanks for help!

      posted in Troubleshooting
      A
      anyhowat
    • RE: Loading and selecting an external DOM Element with jsdom

      Sam, thanks. That’s awesome.
      I’ll dig into the changes right now. Made my day.

      posted in Development
      A
      anyhowat
    • Loading and selecting an external DOM Element with jsdom

      Hi,

      I’m trying to write a module which loads a DOM-element of a remote URL with JSDOM.
      https://github.com/anyhow/MMM-scrape

      Example usecase: Displaying the current onair artistname and songtitle of a radio station.
      (In the example: The Span-Elements with the class “playing” at https://fm4.orf.at/player/live)

      @fewieden did something similar before, but I’m not able to adapt it:
      https://github.com/fewieden/MMM-VocabularyTrainer/blob/master/apis/geschichtsvereinkoengen.js#L89

      I can’t get jsdom to work at all. Anybody could have a look and have some tips? Do I need to put it into a node_helper?

      Thanks.

      posted in Development
      A
      anyhowat