Coder Social home page Coder Social logo

kylebanks / commuter Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 4.0 1.07 MB

Commute times on the command line!

Home Page: https://kylewbanks.com/blog/introducing-commuter-commute-times-on-command-line

License: MIT License

Go 99.15% Makefile 0.85%
commute commuting drivers driving transit transportation google-maps commute-times command-line-app

commuter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

commuter's Issues

Add geolocation for the 'from address'

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.

how to specify route?

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

[BUG] README instructions fail

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

Ability to monitor a commute

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.

Ability to specify a commute method

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.

Does not write configuration file

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.

Ability to add named locations

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.

Prompt to configure on first use

Regardless of the command, if any, commuter should prompt the user for API key and default location if there is no existing configuration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.