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

News Feed Jenkins empty feed

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 1 Posters 1.8k Views 1 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.
  • B Offline
    BeatIdo
    last edited by Mar 8, 2017, 10:32 AM

    Hi,

    Back again about using News Feed default module to retrieve data from Jenkins server.

    Jenkins provides several RSS feeds such as all failed builds for example.

    On the nice case where there is no failed build the feed is quite empty but still available.

    In this situation News Feed module shows “Loading …” text.

    Is this the expected behaviour or should it show another status or eventually nothing ? Honestly I was expecting the last one ^^

    Here is a copy of this kind of feed where I obfuscated IP and UUID.

    
      Tous failed builds2001-01-01T00:00:00ZJenkins Serverurn:uuid:00000000-0000-0000-0000-000000000000
    

    PS : No Proxy problem anymore ;-)

    1 Reply Last reply Reply Quote 0
    • B Offline
      BeatIdo
      last edited by Mar 9, 2017, 1:10 PM

      Here is a better view of what is received by News Feed module, just replaced <> by [] of course …

      Would it be possible that module replies nothing at all instead of “Loading …” ?

      [?xml version=“1.0” encoding=“UTF-8”?]
      [feed xmlns=“http://www.w3.org/2005/Atom”][title]Tous failed builds[/title][link type=“text/html” href=“http://000.000.000.000:8080/” rel=“alternate”/][updated]2001-01-01T00:00:00Z[/updated][author][name]Jenkins Server[/name][/author][id]urn:uuid:00000000-0000-0000-0000-000000000000[/id][/feed]

      1 Reply Last reply Reply Quote 0
      • B Offline
        BeatIdo
        last edited by BeatIdo Mar 9, 2017, 1:20 PM Mar 9, 2017, 1:20 PM

        Seems commenting following lines in newsfeed.js does the trick but it removes completely “Loading …” status when one could still use it.

        Would you accept if I push a modification to add another configuration parameter to this module to manage this behaviour ?

        I prefer to ask before risking refusal …

        // wrapper.innerHTML = this.translate(“LOADING”);
        // wrapper.className = “small dimmed”;

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