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

MMM-JsonTable, keeps loading

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 467 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.
  • I Offline
    Impertus
    last edited by Jun 5, 2020, 9:30 AM

    Hi. i am trying to get som bus times om my MM.

    Have install the Jsontable and using this config here.

    Hi.

    I am trying to get your module to work :)

    i have the json url: http://xmlopen.rejseplanen.dk/bin/rest.exe/departureBoard?id=731643902&format=json

    This i my config.

    {
    module: 'MMM-JsonTable',
    position: 'bottom_right',
    header: 'Bus tider ',
    config: {
    url: 'https://xmlopen.rejseplanen.dk/bin/rest.exe/departureBoard?id=731643902&format=json'
    arrayName: 'Departure',
    keepColumns: ["Name"] // Optional
    }
    },
    

    I have made the adding to line 61 in MMM-JsonTable.js [all]
    Saw an issue on the github page, (nested arrays)
    https://github.com/timdows/MMM-JsonTable/blob/master/MMM-JsonTable.js#L61

    if (this.config.arrayName) {
    	items = this.jsonData[this.config.arrayName]["all"];
    } else {
    	items = this.jsonData;
    }
    
    S 1 Reply Last reply Jun 5, 2020, 11:50 AM Reply Quote 0
    • S Away
      sdetweil @Impertus
      last edited by Jun 5, 2020, 11:50 AM

      @Impertus said in MMM-JsonTable, keeps loading:

      keepColumns: [“Name”] // Optional

      the named field is ‘name’, not ‘Name’
      one of the array elements

          "name":"Bus 211",                // <- 
          "type":"BUS",
          "stop":"Randers Produktionshøjskole/Grenåvej",
          "time":"13:47",
          "date":"05.06.20",
          "id":"731643901",
          "line":"211",
          "messages":"0",
          "rtTime":"13:51",
          "rtDate":"05.06.20",
          "finalStop":"Ørsted (Norddjurs Kom)",
          "direction":"Ørsted",
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • I Offline
        Impertus
        last edited by Jun 5, 2020, 11:55 AM

        yeahh. it works now…

        Now is just the
        descriptiveRow:

        that wont show up :D

        S 1 Reply Last reply Jun 5, 2020, 12:03 PM Reply Quote 0
        • S Away
          sdetweil @Impertus
          last edited by Jun 5, 2020, 12:03 PM

          @Impertus

          keepNames requires ALL the fields to show (of all the fields available) … u only said name

          keepColumns [] Columns on json will be showed

          and if u want it formatted a specific way

          from the module example

          	descriptiveRow: '<tr><td>Name</td><td>Today</td><td>ThisWeek</td><td>LastWeek</td><td>ThisMonth</td><td>LastMonth</td></tr>'
          

          you have to make a little table row type declaration

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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