Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (46 sloc) 1.646 kb

Brioche

The fun way to slice the bread.

What is it?

A simple way to enter expenses and mileage into Google Docs from a text-message. You can specify "m" or "M" for mileage driven and "d" or "D" for dollars spent. For example, if you texted:

  • "35d Burgers with the team"
  • "44.1m Denver Airport"

You would end up with this:

Item Type Amount Date Who
Burgers with the team d $35.00 12/05/2013 +13035555555
Denver Airport m 44.1 12/05/2013 +13035555555

You can then use the "m" in Google Docs for mileage reimbursement calculation, etc.

Setup

  1. Push this code up to a Heroku Cedar app.
  2. Setup the following env variables (.env if you're using Foreman):
    • GOOGLE_EMAIL: The email address associated with your Google account.
    • GOOGLE_PASSWORD: The password for your Google account.
    • TWILIO_ACCOUNT_SID: Available on your Twilio dashboard.
    • TWILIO_AUTH_TOKEN: Keep this a secret.
    • SPREADSHEET_KEY: Grab this from the URL to the Google Doc spreadsheet.
    • WORKSHEET_INDEX: The index (0-based) of the worksheet.
    • Make sure you don't add these files to your git repo!
  3. Register a Twilio number.
  4. Point the SMS URL for that number to http://your-app.herokuapp.com/expenses.
  5. Send a text to the number in the format: "<amount> <description>".
Jump to Line
Something went wrong with that request. Please try again.