[bin] Update webcam captures and nyt

This commit is contained in:
2025-06-18 16:58:00 -04:00
parent b3e8eeff93
commit 1cbef14997
3 changed files with 30 additions and 13 deletions

View File

@ -10,8 +10,9 @@ else
DATEPATH=$(date +"%Y/%m/%d")
curl -o /tmp/nyt.pdf -L https://static01.nyt.com/images/$DATEPATH/nytfrontpage/scan.pdf
convert -density 150 -quality 75 $TMPFILE $OUTFILE
ln -sf $OUTFILE /var/lib/weewx/www/today.jpg
ln -sf $OUTFILE $BASEDIR/today.jpg
cd $BASEDIR
rm today.jpg
ln -sf $OUTFILE today.jpg
curl -H "X-Title: NYT headlines today" -d "https://files.lab.unbl.ink/nytimes/today.jpg" https://ntfy.unbl.ink/news
rm $TMPFILE
fi