Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 2.19 KB

README.textile

File metadata and controls

41 lines (26 loc) · 2.19 KB

This ruby script + cron job allows you to text message expense reports to be posted (via curl) to the google spread sheet that calculates the shared expenses.

Twitter Format:

d <twitter account> <cost><delimiter><item name><delimiter><item description>

Example yaml:

:delimiter: ! :account: mytwixpenser :pass: mypass :url: http://spreadsheets.google.com/formResponse?formkey=mykey

Based on the above information, tweeting: ==d mytwixpenser 25.15!myitem!This is the item I bought==

…will produce…

Time Stamp Item Description Amount Who Paid? Original Tweet
(Time of Tweet) myitem This is the item I bought 25.15 d mytwixpenser 25.15This is the item I bought

Step by step:

  • Follow your new twitter account, and have your new twitter account follow you.
  • Do the following
    • git clone git://github.com/bluepojo/twixpenser.git
    • cd twixpenser
    • mv example.twix.conf.yml twix.conf.yml
    • emacs twix.conf.yml # or which ever your favorite text editor is
  • Enter your new twitter account information in the fields provided in twix.conf.yml
  • Here you have the option of selecting a different delimiter for your text messages. Default is “!”. Note the format above to see how the delimiter is used.
  • Todo: how to set up the google form. (with example?)