kylebanks / commuter Goto Github PK
View Code? Open in Web Editor NEWCommute times on the command line!
Home Page: https://kylewbanks.com/blog/introducing-commuter-commute-times-on-command-line
License: MIT License
Commute times on the command line!
Home Page: https://kylewbanks.com/blog/introducing-commuter-commute-times-on-command-line
License: MIT License
Add a flag to attempt to use the users current location as the 'from' address.
Ex:
commuter -from-current -to work
This would attempt to determine the users current location and use that as the from address.
Thank you for this software. It is quite ingeneous. Is there a way to specify route? There are two main routes between my home and work, and I'd like to get the commute time for each route so that I can compare.
[Background: I'm trying to create a cron job that will run every morning, get the commute time for each route, then send me a text message advising which of the two routes is best.]
Instructions in the README say to use:
$ commuter add -name work -address "321 Maple Ave. Toronto, Ontario"
However, the -address
command is not recognized and returns the error:
flag provided but not defined: -address
It should be -location
Travis CI, GoDoc, Go Report Card, etc.
Would be nice to be able to monitor a commute, and optionally write the output to a file. By default, monitor would poll every minute, and the user could supply their own interval (in minutes).
Ex:
commuter monitor --from home --to work
Would print the commute time to stdout every minute.
commuter monitor --from home --to work --interval 5 --out file.txt
Would write the commute every five minutes to file.txt.
This would allow you to get commute times for other methods of transportation:
commuter -to work -drive
commuter -to work -transit
commuter -to work -walk
commuter -to work -bike
Specifying multiple commands would display the commute time for each:
commuter -to work -drive -transit
Drive: 45 mins
Transit: 37 mins
-all-methods
could also be used to specify that all transit types should be used.
Provide a URL to the commute map to view in a browser.
I think the code already does this, but if it can output the URL with the start and end locations, then it canadd a visual component that would be helpful. eg:
I've installed both the binary, and from within GO, in Ubuntu and both will always ask for the google maps API key and home location, and seem unable to store them. I haven't been able to figure out how to debug the issue commuter is having storing the data, and as such it is not currently usable.
This would allow you to save an address, similar to the default, and use it as an address in other commands.
Ex:
commuter add -name home -value "123 Main st."
commuter -to home
The second command would print the commute from default
to home
.
Regardless of the command, if any, commuter should prompt the user for API key and default location if there is no existing configuration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.