/posts/publishing-my-presence/

created 2026-08-02

publishing my presence

a feature that i really wanted to add to my website was the ability to let people know when i'm around, or when i was last seen, or what i might be doing currently. this was heavily inspired by old instant messengers like aol, msn, and various other instant messengers of the past.

a screenshot of a dropdown menu, each item features a status, such as online, busy, and away. each item also features a corresponding icon

msn messenger, for example

this is a problem in two parts. first, i had to decide how i would display this on my website.

the ui

i toyed with various ways of displaying the status, but in the end, i settled on a design which seems to work fairly well on both mobile and desktop. i decided to put the indicator inside the main "profile" card on my homepage.

possible status values at the moment are:

splendid. i now have a cute little visual indicator to let people know what i'm up to :)

with the ui design out of the way, i now had to figure out how to update the status indicator automatically, without me having to manually update the html code every time i wanted to step away from the computer or go to bed ;)

keeping my status up to date

a program running on my computer called hass.agent periodically sends present/away status updates to my homeassistant server

a screenshot of a timeline. the timeline is dated 'yesterday - augist 9, 2026'. the timeline shows the status of a gaming pc coming online and going offline

presence data stored in homeassistant

when someone visits my website, a request is sent to homeassistant to collect the latest status update. splendid :)

the result

the end result of this effort is that i now have a nice little indicator on my homepage which lets people know my active status, just like the good old msn days.

a screenshot of a profile card, showing a profile image, basic details such as name, age, and pronouns. the top-right corner of the profile card shows a filled green circle, and the word 'online'.

the result

in future, i plan to link the 'now playing' display at the top of the website to apple music. i may update this post or make a new post if i get around to doing this.

update 2026-08-08

i have managed to get the 'now playing' feature "sort of" working with apple music using iphone shortcuts. it's a manual process to share a song to the blog, but it's a one-click operation, and i've put the button directly next to my media controls :)

a screenshot of a an iphone control centre. underneath the media controls is a button which says 'share song to blog'. the button is circled in red. a screenshot from an iphone showing the 'shortcuts' app. several computer tasks are listed in sequential order. these tasks are: 'get current song', 'get artist from current song', 'get name from current song', 'get contents of a URL', 'if contents of URL is success', and 'show alert track name successfully shared to blog'