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

      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.

      cirdanC 1 Reply Last reply Reply Quote 0
      • cirdanC Offline
        cirdan @electros
        last edited by

        @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 Reply Quote 1
        • E Offline
          electros Project Sponsor @cirdan
          last edited by

          @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 Reply Quote 0
          • E Offline
            electros Project Sponsor @electros
            last edited by

            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
            • cirdanC Offline
              cirdan
              last edited by

              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 Mykle1M 2 Replies Last reply Reply Quote 1
              • E Offline
                electros Project Sponsor @cirdan
                last edited by

                @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 Reply Quote 0
                • S Do not disturb
                  sdetweil @electros
                  last edited by sdetweil

                  @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 Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @cirdan
                    last edited by

                    @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

                      @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 Reply Quote 0
                      • S Do not disturb
                        sdetweil @electros
                        last edited by

                        @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

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 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