Add mastodon notifications, make location configurable
This commit is contained in:
parent
7fcbb042d3
commit
b3417ce55a
1 changed files with 17 additions and 3 deletions
|
|
@ -1,14 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
WEBSITE_DIR=${WEBSITE_DIR:-output}
|
||||
TOOT=${TOOT:-/usr/local/bin/toot}
|
||||
|
||||
cd `dirname $0`/..
|
||||
|
||||
cat output/cccs.ical | scripts/tweet-reminders.rb 0 "Heute:" | while read LINE ; do
|
||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 0 "Heute:" | while read LINE ; do
|
||||
bundle exec t update "$LINE"
|
||||
done
|
||||
cat output/cccs.ical | scripts/tweet-reminders.rb 1 "Morgen:" | while read LINE ; do
|
||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 1 "Morgen:" | while read LINE ; do
|
||||
bundle exec t update "$LINE"
|
||||
done
|
||||
cat output/cccs.ical | scripts/tweet-reminders.rb 7 "In einer Woche:" | while read LINE ; do
|
||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 7 "In einer Woche:" | while read LINE ; do
|
||||
bundle exec t update "$LINE"
|
||||
done
|
||||
|
||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 0 "Heute:" 500 | while read LINE ; do
|
||||
$TOOT "$LINE"
|
||||
done
|
||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 1 "Morgen:" 500 | while read LINE ; do
|
||||
$TOOT "$LINE"
|
||||
done
|
||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 7 "In einer Woche:" 500 | while read LINE ; do
|
||||
$TOOT "$LINE"
|
||||
done
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue