Navigation

    MagicMirror Forum

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

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

    Modules
    3
    10
    190
    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.
    • lavolp3
      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

      S 1 Reply Last reply Reply Quote 0
      • S
        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

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

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

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

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

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

              @sdetweil 16kb png didn’t work for me

              Error

              Something went wrong while parsing server response

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

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

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

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

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

                    @lavolp3 i am using chrome

                    1 Reply Last reply Reply Quote 0
                    • L
                      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.

                      lavolp3 1 Reply Last reply Reply Quote 0
                      • lavolp3
                        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.

                        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