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

Bus timetable from json file

Scheduled Pinned Locked Moved Unsolved Requests
10 Posts 4 Posters 2.3k Views 4 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.
  • E Offline
    electros Project Sponsor
    last edited by electros Jun 12, 2019, 5:18 PM Jun 12, 2019, 5:16 PM

    Hello guys, I need your help. For a few days I’ve been trying to create a way to display my bus timetables. The data I’m trying to get from a json file. I tried with mmm-jsonTable and with mmm-json-feed without success. Below is what I get.
    0_1560359498755_Opera Snapshot_2019-06-12_175811_localhost.png
    In the link you can see the json files that I would like to display, only one or two at the same time in separate instances, but I would like to choose which ones to display. I do not really know programming but I’m trying to learn, so please give me some ideas how can i do it.
    If you have any questions please ask me.
    Thanks.

    C 1 Reply Last reply Jun 12, 2019, 7:30 PM Reply Quote 0
    • C Offline
      cirdan @electros
      last edited by Jun 12, 2019, 7:30 PM

      @electros you could look at mmm-bustimes. It is a similar module and also parses a json file (a different one) into a table
      Git link. https://github.com/73cirdan/MMM-bustimes

      Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

      E 1 Reply Last reply Jun 14, 2019, 5:25 PM Reply Quote 1
      • E Offline
        electros Project Sponsor @cirdan
        last edited by Jun 14, 2019, 5:25 PM

        @cirdan Sorry for late reply but in last day’s i worked away without access to my computer. I will look in that module today to see the code but please if you have some time can you show me where i need to change the code to start read one of my file M21.json for example ?

        E 1 Reply Last reply Jun 15, 2019, 4:23 PM Reply Quote 0
        • E Offline
          electros Project Sponsor @electros
          last edited by Jun 15, 2019, 4:23 PM

          Well, in the last 2 days I tried to work on this module but I did not succeed. I tried to look at how other modules are built with the same destination and I search the internet for various tutorials about js but I think I’m too old to understand:disappointed_face: :face_with_cold_sweat: .
          That being said I am willing to pay a modest amount for someone who takes the time to make this module for me. Please help me. Thank you

          1 Reply Last reply Reply Quote 0
          • C Offline
            cirdan
            last edited by Jun 15, 2019, 9:00 PM

            Its not that hard electros. Mykle isn’t the youngest either:grinning_face_with_smiling_eyes:

            Make 1 small target at a time. Eg

            1 run an existing module eg bustimes
            2 change the nodehelper to read your datasource
            3 decide on the dataformat to feed into the getdom
            4 format the dataformat

            Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

            E M 2 Replies Last reply Jun 15, 2019, 9:25 PM Reply Quote 1
            • E Offline
              electros Project Sponsor @cirdan
              last edited by Jun 15, 2019, 9:25 PM

              @cirdan it’s easy to say for you, you created that module.:grinning_face_with_smiling_eyes: But I’m still trying for a few days and nothing, no progress. The problem is I know what the module should do to display the correct data but I do not know how to put this in js.:disappointed_face:

              S 1 Reply Last reply Jun 15, 2019, 10:24 PM Reply Quote 0
              • S Offline
                sdetweil @electros
                last edited by sdetweil Jun 15, 2019, 10:28 PM Jun 15, 2019, 10:24 PM

                @electros i will help… ok, i see your data…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                E 1 Reply Last reply Jun 16, 2019, 1:13 AM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @cirdan
                  last edited by Jun 16, 2019, 12:56 AM

                  @cirdan said in Bus timetable from json file:

                  Mykle isn’t the youngest either

                  Ha! Nor am I the oldest!

                  You are in very good hands, @electros. I see @sdetweil is going to help you. He has helped me in the past, too. Really, he’s a genius. :thumbsup:

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    electros Project Sponsor @sdetweil
                    last edited by Jun 16, 2019, 1:13 AM

                    @sdetweil Thank you for your time. I look forward to hearing you. If you need more information please ask me. Thanks again.

                    S 1 Reply Last reply Jun 16, 2019, 3:18 AM Reply Quote 0
                    • S Offline
                      sdetweil @electros
                      last edited by Jun 16, 2019, 3:18 AM

                      @electros I sent u a private message asking for more info

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        2/10
                        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