hhmx.de

Velocipede Rider

· Föderation EN Fr 01.09.2023 13:46:31

@feditips Well it just makes the posting part really simple as you can just pipe text into it from the command line. Here is a small excerpt from the shell script that posts the @vivaldiversiontracker information.

@ihabunek

  cat <<EOF | toot post -u "$PUBLISHER_USERNAME" -v public
Vivaldi Stable :vivaldi_red:
• Desktop 🖥️: $POST_DESKTOP_STABLE_VERSION
• Android 📱: $POST_ANDROID_STABLE_VERSION

Vivaldi Snapshot :vivaldi_gray:
• Desktop 🖥️: $POST_DESKTOP_SNAPSHOT_VERSION
• Android 📱: $POST_ANDROID_SNAPSHOT_VERSION
EOF
else
  printf "\nNo new builds\n\n" >&2
  exit
fi

(Medien: 1)

Velocipede Rider

Föderation EN Fr 01.09.2023 14:27:48

@feditips My "bots" (actually just automated posting) are tiny shell scripts run as cron jobs. At set intervals they use cURL to fetch information from the web, extract key values with tools like sed and grep and then post with Toot (if those values have changed since last time).

I know it is not for everyone but the barrier for entry is fairly low if someone is at all command line savvy.

FediTips has moved!

Föderation EN Fr 01.09.2023 14:31:21

@ruari

Do you have a post about this somewhere I could link to? 😃

Velocipede Rider

Föderation EN Fr 01.09.2023 14:33:31

@feditips I guess I could write a short blog post about it with maybe an example script.

Velocipede Rider

Föderation EN Fr 01.09.2023 14:37:36

@feditips I can tweak this old script that I used to use on my watch account that posted hourly updates of the time in binary as Christmas trees (lit and unlit).

Make it into something more useful and embed it in a blog post

gist.github.com/ruario/dcbb5a4

FediTips has moved!

Föderation EN Fr 01.09.2023 14:39:23

@ruari

Hahaha, I knew you would bring unusual watches into it 😁

Even a quick blog post summarising what you've posted in this thread would do!

Velocipede Rider

Föderation EN Fr 01.09.2023 14:40:06

@feditips I mean it was that or unicycles…right!? 😆