Read the statement by Michael Teeuw here.
Finding the best commute time using MMM-MyCommute (and a graph)
-
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/devAnd see it here (imgur because upload doesn’t 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
-
@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 image
-
@sdetweil well then it’s the image that is not working . Maybe size? type? (png)
-
@lavolp3 that was a png (screen shot on linux), 86k size
-
@sdetweil 16kb png didn’t work for me
Error
Something went wrong while parsing server response
-
@lavolp3 hm… the file size limit is 2meg (tried to load a 7 meg jpg image)
-
@sdetweil I tried with Firefox.
Might try with Chrome later today. -
@lavolp3 i am using chrome
-
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.
-
@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.