MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Load,format,display a json file

    Development
    3
    5
    2601
    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.
    • G
      gismo2006 last edited by

      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

      1 Reply Last reply Reply Quote 0
      • J
        jayahosh last edited by

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

        1 Reply Last reply Reply Quote 0
        • G
          gismo2006 last edited by

          @jayahosh

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

          1 Reply Last reply Reply Quote 0
          • strawberry 3.141
            strawberry 3.141 Project Sponsor Module Developer last edited by

            interesting questions for this would be:

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

            Please create a github issue if you need help, so I can keep track

            J 1 Reply Last reply Reply Quote 0
            • J
              jayahosh @strawberry 3.141 last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy