Git Product home page Git Product logo

surger's Introduction

surger

Version License Downloads Deps DevDeps

about

Is there surge pricing around me right now? This little CLI utility will determine your location (currently OS X only) using location services and determine if surge pricing is active within your range.

installation

$ npm -g install surger
$ surger

Location:   Nearby East 2nd Street

uberX       ✔ GOOD
uberXL      ✔ GOOD
UberBLACK   $ SURGE 2.8x
UberSUV     $ SURGE 2.8x
uberT       ✔ GOOD

yaaaasss queen yaaaaasssss

debug

$ surger --debug                                                                      !2882
debug.getCoords finding towers
debug.getCoords found 2 tower(s)
debug.getTowers err null
debug.getTowers towers [{"mac":"41:5f:32:5c:61:7c","ssid":"FiOS-02JG1","signal_level":"-90"},{"mac":"00:27:62:a4:14:81","ssid":"ARC","signal_level":"-62"}]
debug.getCoords finding location
debug.getLocation err null
debug.getLocation location {"accuracy":30,"latitude":31.0206837,"longitude":-76.02599699999999}
debug.getCoords confirming location
debug.handleCoords location confirmed from `getCoords`
debug.getPriceEstimateFromLatLng getting estimate

Location:  Nearby Strout Street

debug.estimates estimates [["uberX"," ✔ GOOD "],["uberXL"," ✔ GOOD "],["uberX + Car Seat"," ✔ GOOD "],["UberBLACK"," ✔ GOOD "],["UberSUV"," ✔ GOOD "],["BLACK CAR + Car Seat"," ✔ GOOD "],["SUV + Car Seat"," ✔ GOOD "]]
uberX                  ✔ GOOD
uberXL                 ✔ GOOD
uberX + Car Seat       ✔ GOOD
UberBLACK              ✔ GOOD
UberSUV                ✔ GOOD
BLACK CAR + Car Seat   ✔ GOOD
SUV + Car Seat         ✔ GOOD

surger's People

Contributors

dependabot-preview[bot] avatar greenkeeperio-bot avatar moimikey avatar

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

Forkers

nivertech

surger's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

handleCoords() bug

runtime error that happens on occassion when handleCoords tries to manipulate a lat/lng object that doesn't have a lat/lng due to API miscommunication.

/Users/mshertzberg/.nvm/versions/node/v6.8.1/lib/node_modules/surger/lib/index.js:90
      var _ref$lat = _ref.lat;
                         ^

TypeError: Cannot read property 'lat' of undefined
    at Surger.handleCoords (/Users/mshertzberg/.nvm/versions/node/v6.8.1/lib/node_modules/surger/lib/index.js:90:26)
    at /Users/mshertzberg/.nvm/versions/node/v6.8.1/lib/node_modules/surger/lib/index.js:170:58

Would love some input!

Any personal experiences using the node module? Does it work for you? Does it not work for you? Could it be improved? Are you constantly having location errors? Where are you located?

Thanks!!

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.