Browse Source

Generate 2-week feed.

main
hoschi-it 5 months ago
parent
commit
32b90e3e22
  1. 6
      tools/gmi-follower-to-feed

6
tools/gmi-follower-to-feed

@ -4,13 +4,14 @@
hfile="/tmp/gmisub-header.txt"
logroll="../src/gemtext/follows.gmi"
feed="../src/gemtext/reads.gmi"
out="/tmp/reads.gmi"
maxdate=$(python3 -c '
import datetime
now = datetime.datetime.now()
feedlength = datetime.timedelta(days=30*1)
feedlength = datetime.timedelta(days=14*1)
lastdate = now - feedlength
print( lastdate.strftime("%Y%m%d") )
')
@ -22,6 +23,7 @@ Zuletzt aktualisiert: $(date --iso).
" > $hfile
/usr/local/bin/gmisub -d $maxdate -h $hfile $logroll $out
cp $out $feed
# still needs to be done manually (because of authentication).
# scp $out envs:/home/hoschi/public_gemini/reads.gmi
# scp $feed envs:/home/hoschi/public_gemini/reads.gmi
Loading…
Cancel
Save