Load,format,display a json file



  • Hi,

    I only like to say:

    Ok Pi you have won! I lay down my weapons… 😃

    But maybe, i am not sure, Maybe some one can help me.

    I have a "simple " Problem. On every webpage was written its easy but it didn’t work.

    My Problem is i have a local json File created by a website. And I only try to display this data in a list on my magic Mirror. I have searched and try yesterday all the day everything I found. But nothing. (My wife like to kill me now, because I spent all the day yesterday 🙂 ) I have searched in this forum to an found some topics but I am to stupid to use them. I think I have to create a *.js file which will load the json file, formating it, and display it. That’s all. I will not use/need the data for other scripts. Only load, put in a list and display.

    Maybe someone can help a noob. 🙂

    Greets gismo



  • I was looking for something like this too. Would be a nice add-on for sure!



  • @jayahosh

    Look at my thread under request. There was a great help that work perfect. 🙂



  • interesting questions for this would be:

    • local or remote file?
    • how does the structure of the file look like?


  • @strawberry-3.141 , the json will be on the server, check the link below. It will be very similar. The number 83139 refers to a bus stop and will query the bus arrival timings. The module will need to be able to reload the content every minute to get the updates arrival timings.

    Ability to query multiple bus stops will be great!

    https://arrivelah.herokuapp.com/?id=83139


 

285
Online

6.0k
Users

4.5k
Topics

37.1k
Posts