Giter Site home page Giter Site logo

hipchat-strava-bot's Introduction

A Strava Hipchat Bot

The Strava Hipchat bot utilizes the "build your own integration" opion in Hipchat. When a request is made via a slash command, for example /strava, the hipchat bot requests the relevant information from Strava's api and posts it back to Hipchat.

Development
To get up and running on your local machine you'll need to install Node, NPM, and the Heroku toolbelt. You'll also need to create a new file in the same directory as the source named .env no file name just .env . This should include several environmental variables, like a token for accessing Strava's api and a token for posting to Hipchat. It will look something like this:

StravaToken=1234567890abcdefghijklmnopqrstuvwxyz1234  
hipChatCyclingTest=https://hipchat.com/v2/room/1234567/notification?auth_token=0123456789AbCdEfGhIjKlMnOpQrStUvWxYz1234  
hipChatCycling=https://hipchat.com/v2/room/2345678/notification?auth_token=AbCdEfGhIjKlMnOpQrStUvWxYz01234567891234  
hipChatRunning=https://hipchat.com/v2/room/3456789/notification?auth_token=rStUvWxYz01234567891234AbCdEfGhIjKlMnOpQ

For developing at Quicken, contact Alex Mudar for a completed .env file. This is done to avoid posting sensitive cridentials into public source control. When all that is in order, from the command line in the same folder as source type "heroku local web" wait a second and it will launch the application localy. To test use postman or another tool to post to http://localhost:5000/running with any valid json. This {} will work.

If all this sounds too foreboding but you'd still like to try out an idea, make blind changes and we can test them on my machine before deploying.

hipchat-strava-bot's People

Contributors

alexmudar avatar friism avatar hunterloftis avatar jonmountjoy avatar mattestevens avatar r0mdau avatar raul avatar samccone avatar theneva avatar zeke 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.