Skip to content

dewback/TwiProwl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= Instruction =

Version : 2.0.1

1. install some ruby libraries

 for Ruby 1.8
  - openssl
  - json (deb or rubygems)
  - hmac-ruby (deb or rubygems)
  - oauth (from rubygems)

   $ sudo apt-get install libopenssl-ruby1.8 libjson-ruby1.8 libhmac-ruby1.8
   $ sudo gem install --no-rdoc --no-ri oauth

 for Ruby >= 1.9.1 (recommend >= 1.9.2)
  - openssl
  - ruby-hmac >= 0.4.0 (from rubygems)
  - oauth (from rubygems)

   $ sudo apt-get install rubygems1.9.1 libopenssl-ruby1.9.1
   $ sudo gem1.9.1 install --no-rdoc --no-ri ruby-hmac oauth

2. copy config.yml to ~/.twiprowl.conf and edit it.

3. run twiprowl


= config.yml =

LogDir: /tmp               # Log Directory
Debug: false               # Debugging ouput to log.
Daemon: true               # Daemon mode.
ProxyURI:                  # URI for http proxy.

Prowl:
 APIKey: xxxxxxxxxxxxxxxx  # the Prowl API Key

NMA:
 APIKey: xxxxxxxxxxxxxxxx  # the NMA's API Key


Accounts:
 -
  Application: <application name (optional)> 
  NotifyMethods:           # notify methods you want to use.
   - prowl
   - nma
  User: <Twitter username>
  RateLimitThreshold: 20   # polling limitter for basic API
  UseProxy: false          # <= use Prowl::ProxyURL
  Mentions:                # Event on Mentions
    Enable: false          # Enable, true or false
    Priority: 0            # Prowl priority, -2 to 2
    IgnoreSelf: false      # Ignore Mention from myself
  Direct:                  # Event on Direct Messages
    Enable: false
    Priority: 0
    IgnoreSelf: false      # Ignore DM from myself
  Retweets:                # Event on Retweets
    Enbale: false
    Priority: 0
    IgnoreSelf: false      # Ignore RT by myself
  Membership:              # Event on List Membership
    Enable: false
    Priority: 0
    IgnoreSelf: false      # Ignore event by myself
    IgnoreNegative: false  # Ignore removal event
  Unfollowed:              # Event on Unfollowed, requires API rate
    Enable: false
    Priority: 0
    Interval: 1800
  Favorite:                # Event on Favorite/Unfavorite
    Enable: false
    Priority: 0
    IgnoreSelf: false      # Ignore favorite event by myself
    IgnoreNegative: false  # Ignore Unfavorite event
  RegexpMatch:             # notify when match with Regexp
    -
      User: "^hogehoge.*"  # Regexp for screen name
      Text: "hugahuga"     # Regexp for body text
      Enable: true
      Priority: 0
    -                      # all user and text contains "TwiProwl"
      Text: "TwiProwl"
      Enable: true
    -                      # all of takuo_jp's post.
      User: "takuo_jp"
      Enable: true
 - 
  <Other account config here>

About

Twitter notification script with Prowl

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%