Posts tagged #scriptable to Mastodon Profile to Mastodon Profile

At this point I’m just coming up with reasons to play with the Mastodon API. I don’t know. I haven’t used in years but I started again recently just because I love logging things. I was also thinking what if I could automatically update my Mastodon profile with dynamic content. Mastodon profiles, by default, have up to four fields you can customize the label and content of. A common use for one of the fields to list their pronouns, link to their website, or share their location, so why not your last played track from My script works can work in two ways: it will look for a field titled and set the value to the last played track, or it will look for a field value of a url and set the field title to the last played track.

This script requires but it can easily be converted to just run with Node. You will need to setup the config portion of the script with your username, API key, Mastodon instance, and Mastodon token. I hope that doesn’t sound like a lot. I’ve documented the code a bit to help you through all of this.

As always, if you have an questions or need help reach out to me on Mastodon.

Checking Your SF Jury Summon

Checking Your SF Jury Summon

In San Francisco, when we get summoned for jury duty, we are lucky enough to have a website to check that tells us it will be updated at 4:30 pm on weekdays. It’s a pretty simple website, which makes it perfect for automating this task.

Ask Siri

You can use the on your Apple Watch, iPhone, iPad, and Mac. You will need to add your group number to the script for this to work.

Get San Francisco Jury Duty Status.shortcut

Home screen widget

There is a great app for iPhone and iPad called Scriptable that lets you write and run JavaScript that can make home screen widgets. You will need to set your group number on line with const GROUP_NUMBER.

Get SF Jury Duty Widget.js

1 of 1