Mastodon Feed: Post

Mastodon Feed

jeffsonstein ("Jeff Sonstein") wrote:

okay, okay, so I gave the script one last tweak…

—— snip ——
jeffs@Ultron bin % cat ./postWeather.sh
#!/bin/sh

THIS_RESPONSE=`curl -s "http://v2.wttr.in/Rochester,NY?T" | tail -7 | head -5`
THIS_RESPONSE=`/opt/homebrew/bin/toot post "$THIS_RESPONSE"`

jeffs@Ultron bin %
—— snip ——

As a cron job, it should send me a local email if it barfs