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

Load,format,display a json file

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 3.0k Views 3 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.
  • G Offline
    gismo2006
    last edited by Nov 7, 2016, 7:57 AM

    Hi,

    I only like to say:

    Ok Pi you have won! I lay down my weapons… :-D

    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 Offline
      jayahosh
      last edited by Nov 16, 2016, 6:53 AM

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

      1 Reply Last reply Reply Quote 0
      • G Offline
        gismo2006
        last edited by Nov 16, 2016, 8:01 AM

        @jayahosh

        Look at my thread under request. There was a great help that work perfect. :-)

        1 Reply Last reply Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer
          last edited by Nov 16, 2016, 12:20 PM

          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 Nov 16, 2016, 12:32 PM Reply Quote 0
          • J Offline
            jayahosh @strawberry 3.141
            last edited by Nov 16, 2016, 12:32 PM

            @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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy