Trello Utilities

Purpose

  1. Fetch info from trello todo list
  2. Execute some command with cards name in todo list
  3. After this, move cards from todo list to ongoing list

References

Installation

  git clone https://github.com/charlietag/trello-utils.git
  bundle install

Configuration

  cp config/config.yml.sample config/config.yml
  • config.yml
  #API token
  public_key:xxxxxxxxxxxxxxxx
  member_token:yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

  # Trello Resource
  trello_account: MyTrelloAccountID #charlie123123
  trello_board: MyBoardName #HelpCenter
  trello_list_todo: MyTodolistName #todo
  trello_list_ongoing: MyOngoingListName #ongoing

  # String Type
  # url | text
  # if card.name is a url, parse host only
  string_type: url

  # External Command
  # the following example will execute: /script/fetch_data.sh -u www.google.com (assume card.name is "www.google.com"
  # ex. /script/fetch_data.sh -u
  run_command: MyOSCommandOrScriptName
  • Start to use

    • Fetch card name and execute external command
    ./trello.rb
    
    • Analyze trello usage
    ./analyze.rb
    

Trello API limitation

API Rate Limits

  • http://help.trello.com/article/838-api-rate-limits
    • To help prevent strain on Trello‚Äôs servers, our API imposes rate limits per API key for all issued tokens.
    • There is a limit of 300 requests per 10 seconds for each API key and no more than 100 requests per 10 second interval for each token.
    • If a request exceeds the limit, Trello will return a 429 error.
  • https://developers.trello.com/page/webhooks
    • For some cases, which someone own a callback server online, webhook is much more useful.