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.

    Finding the best commute time using MMM-MyCommute (and a graph)

    Scheduled Pinned Locked Moved Transport
    10 Posts 3 Posters 3.3k 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.
    • lavolp3L Offline
      lavolp3 Module Developer
      last edited by lavolp3

      From the “exciting projects in the MagicMirror universe” series I present to you something I’m working on and like very much.

      The great module MMM-MyCommute (thank you @j-e-f-f !!) shows you commuting times, especially helpful for me driving min. 40min by car on a very crowded highway to my new job.
      But there’s only the current value, and it is gone after a few minutes. What a waste!

      So, let’s use historic data and find out the best commute time for my way to work and back home.

      This is what I’ve done:

      • collect data for every destination (including timestamp and driving time) in a json file
      • create a scatter chart (using highcharts) and show driving times
        – sorted by start time
        – and filtered to the current weekday.

      Doing this for some time should give me some big-data-scatter-plot to find the best commute time.
      I’ll be happy about the data and the cool plot, practicability might be limited, but hey … something was created!

      Find my work here
      https://github.com/lavolp3/MMM-MyCommute/tree/dev

      And see it here (imgur because upload doesn’t work again):
      imgur because upload doesnt work again

      Looking forward to your suggestions, improvement ideas.
      And if anyone can help me setting up a mysql table to store the data, I’d highly appreciate it!

      Cheers

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @lavolp3
        last edited by sdetweil

        @lavolp3 said in Finding the best commute time using MMM-MyCommute (and a graph):

        And see it here (imgur because upload doesn’t work again):

        image upload worked for me this week…

        there is file upload and image upload, right… need to use imagerrule-fail.png

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        lavolp3L 1 Reply Last reply Reply Quote 0
        • lavolp3L Offline
          lavolp3 Module Developer @sdetweil
          last edited by

          @sdetweil well then it’s the image that is not working . Maybe size? type? (png)

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @lavolp3
            last edited by sdetweil

            @lavolp3 that was a png (screen shot on linux), 86k size

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            lavolp3L 1 Reply Last reply Reply Quote 0
            • lavolp3L Offline
              lavolp3 Module Developer @sdetweil
              last edited by

              @sdetweil 16kb png didn’t work for me

              Error

              Something went wrong while parsing server response

              How to troubleshoot modules
              MMM-soccer v2, MMM-AVStock

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @lavolp3
                last edited by

                @lavolp3 hm… the file size limit is 2meg (tried to load a 7 meg jpg image)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                lavolp3L 1 Reply Last reply Reply Quote 0
                • lavolp3L Offline
                  lavolp3 Module Developer @sdetweil
                  last edited by

                  @sdetweil I tried with Firefox.
                  Might try with Chrome later today.

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @lavolp3
                    last edited by

                    @lavolp3 i am using chrome

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      lhoggatt17
                      last edited by

                      This looks awesome! Unfortunately, your dev branch did not work for me (I got “Error” for the commute time). The qistoph fork works well for me so I’m not sure what the issue is. I think he is handling the API request differently than you are. I would love to see a plot of historical commute times, so please let me know if you know what might be the issue.

                      lavolp3L 1 Reply Last reply Reply Quote 0
                      • lavolp3L Offline
                        lavolp3 Module Developer @lhoggatt17
                        last edited by

                        @lhoggatt17 I guess you are referring to me?

                        I have done some more dev work on the branch but am not using it now.
                        Will have a new look on this.

                        Have you done npm install after switching to my fork?
                        Also can you show me any errors in dev console? See my link below to do troubleshooting on the module.

                        How to troubleshoot modules
                        MMM-soccer v2, MMM-AVStock

                        1 Reply Last reply Reply Quote 0
                        • rejasR rejas moved this topic from Modules on
                        • 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