Read the statement by Michael Teeuw here.
MMM-JsonTable, keeps loading
-
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#L61if (this.config.arrayName) { items = this.jsonData[this.config.arrayName]["all"]; } else { items = this.jsonData; } -
@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", -
yeahh. it works now…
Now is just the
descriptiveRow:that wont show up :D
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login