Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json data keeps loading #12

Open
Impertus opened this issue Jun 5, 2020 · 4 comments
Open

Json data keeps loading #12

Impertus opened this issue Jun 5, 2020 · 4 comments

Comments

@Impertus
Copy link

Impertus commented Jun 5, 2020

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-Json.js [all]

@timdows
Copy link
Owner

timdows commented Aug 5, 2020

Yes correct.
The first element of your json response is DepartureBoard
That will indeed only work if you force this on line 61

items = this.jsonData.DepartureBoard[this.config.arrayName];

Hope all is working fine now!

@gabriel-gfs
Copy link

gabriel-gfs commented Nov 5, 2020

Hi.
I am also trying to get your module to work but it keeps saying that its awaiting json data.
This is the json file:
{
"eins":[
{
"zeit": "24h",
"erfasst": 1001,
"faktoriert": 1215
},
{
"zeit": "48h",
"erfasst": 0,
"faktoriert": 230
},
{
"zeit": "älter",
"erfasst": 36,
"faktoriert": 1212
}
]
}, {
"zwei":[
{
"zeit": "24h",
"erfasst": 367,
"faktoriert": 495
},
{
"zeit": "48h",
"erfasst": 0,
"faktoriert": 19
},
{
"zeit": "älter",
"erfasst": 64,
"faktoriert": 140
}
]
}
and this is the part in the config.js file
{
module: 'MMM-JsonTable',
position: 'middle_center',
header: 'Liegelager',
config:{
url: 'https://infoscreen.greiffmode.local/logistik.json',
arrayName: 'eins',
size: 3
}
},

@timdows
Copy link
Owner

timdows commented Nov 9, 2020

@golli1337 Is there any debug information in the console of your broswer?

@gabriel-gfs
Copy link

@golli1337 Is there any debug information in the console of your broswer?
No there isn't. At least there are no errors concerning MMM-JsonTable. The only available information to me is the output that its awaiting json data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants