Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ineffyble/nationbuilder-tag-watcher
Script that reports on new tags in a NationBuilder nation
https://github.com/ineffyble/nationbuilder-tag-watcher
Last synced: 3 days ago
JSON representation
Script that reports on new tags in a NationBuilder nation
- Host: GitHub
- URL: https://github.com/ineffyble/nationbuilder-tag-watcher
- Owner: ineffyble
- Created: 2016-05-20T13:59:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-01T19:18:11.000Z (over 3 years ago)
- Last Synced: 2024-12-20T13:26:58.063Z (3 days ago)
- Language: Ruby
- Size: 14.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nationbuilder-tag-watcher
Script that reports on new tags in a NationBuilder nation, via email or slack notification. Can be automated as a cronjob.## Usage
### Email reports
```
export NATION=nation_slug
export API_KEY=valid_api_token
export MODE=email
export [email protected]
export [email protected]
ruby tagwatcher.rb
```### Slack alerts
You will need a (Slack webhook URL)[https://api.slack.com/services/new/incoming-webhook].
```
export NATION=nation_slug
export API_KEY=valid_api_token
export MODE=slack
export WEBHOOK_URL=a_slack_webhook_url
export CHANNEL=nationbuilderalerts
export USERNAME=NationBot
ruby tagwatcher.rb
```### Multiple nations or configurations
If you would like to easily run multiple instances of the tag watcher, you can use a bash script to set the environment variables before each run.
For simplicity, one option is to create .env.nationslug files in your tag watcher folder, and use the bash `source` command.