Git Product home page Git Product logo

caltrain's Introduction

CaltrainNext

A project that allows you to text the name of a Caltrain station and receive the next hour's worth of trains arriving at that station. This makes it really convenient to know how close the trains are to the station where you are waiting.

Usage

To use the Caltrain Notifier, you will need to set up a Google Cloud Function and configure it to run the code in this repository. You will also need to set up a Twilio account and configure it to send and receive text messages.

Installation

To get started with the Caltrain Notifier, you will need to clone this repository and install the requirements listed in the requirements.txt file in the caltrain_response folder. Here's how to do it:

  1. Clone the repository: git clone https://github.com/tyler-simons/caltrain-notifier.git
  2. Navigate to the caltrain_response folder: cd caltrain_response
  3. Install the requirements: pip install -r requirements.txt

Once you have installed the requirements, you can play around with the script locally.

You can also deploy the function like this once you've set up your google cloud tools. See the file deploy_caltrain_check.sh for an example of what your deploy script could look like. You'll need to configure the options for yourself. This will deploy the function to Google Cloud, and you will be able to access it via the HTTP trigger URL provided by Google Cloud, which can trigger the Twilio function.

Contributing

We welcome additions from the community. Please create an issue or make a PR to add something.

License

MIT

caltrain's People

Contributors

sfc-gh-trichards avatar tyler-simons avatar

Watchers

 avatar

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.