|
Revision 1581
(checked in by miyagawa, 4 years ago)
|
some linting
|
| Line | |
|---|
| 1 |
# check Tokyo weather forecast on weather.livedoor.com |
|---|
| 2 |
# If the forecast says it rains, notify me via Email |
|---|
| 3 |
|
|---|
| 4 |
plugins: |
|---|
| 5 |
- module: Subscription::Config |
|---|
| 6 |
config: |
|---|
| 7 |
feed: |
|---|
| 8 |
- http://weather.livedoor.com/forecast/rss/13/63.xml |
|---|
| 9 |
|
|---|
| 10 |
# HACK: Grab the 2nd entry from livedoor Weather feed |
|---|
| 11 |
- module: Filter::Rule |
|---|
| 12 |
rule: |
|---|
| 13 |
expression: ++$::index == 2 |
|---|
| 14 |
|
|---|
| 15 |
- module: Publish::Gmail |
|---|
| 16 |
rule: |
|---|
| 17 |
expression: $args->{feed}->entries->[0]->title =~ /雨/ |
|---|
| 18 |
config: |
|---|
| 19 |
mailto: you@example.com |
|---|
| 20 |
|
|---|
| 21 |
|
|---|