2024 Year Review

A very different year when compared to 2023 (where I spent most of the year on a boat).

I’m back working full-time, and primarily in a closed source space (currently) at Lightbug. I’m primarily cloud focused, but have been moving closer and closer to the firmware and hardware month by month. I’m looking forward to releasing some new things this year, including something with an ESP on board!

It’s been the first year that I have stepped back from Wikimedia since starting as a volunteer, and then also working there full-time, and that has been a refreshing break.

Within the Wikimedia world, my primarily volunteer focuses have been and will continue to be:

Read more

Smart Home: Automated zonal lights with Aqara FP2, Samotech Zigbee Dimmers, and Node-Red

At some point in 2024 I bought an Aqara FP2 human presence sensor to try and automate the lights in my main open-plan living space. I have been running the installation for nearly a year, now have plans for the future and want to take this opportunity to do a quick write-up on how I have things configured, and how they have been working.

The room

Firstly, a little introduction to the space that I’m playing with…

It’s a kitchen, dinning, living space, with a main single entrance door, as well as large opening bifold doors to the back (both highlighted with red lines). The main flow of people in and out is indicated by the orange arrow on the right, which comes through the main single entrance door.

Read more

Wikidata Map in 2024

This entry is part 16 of 17 in the series Wikidata Map

Another year on from the last generation of the Wikidata map, @tarrow and @outdooracorn spent some time in preparation for the Wikidata birthday to prepare a new map (see git commits).

The latest images have already been uploaded to Wikimedia Commons, and appear in the Wikidata map commons gallery.

In this post, I’ll have a look at what has changed in the past year that is visible from the map!

Read more

Toit: Infinite resilient application loops (try “catch”)

Toit is a modern high-level language designed specifically for microcontrollers. I’m spending some time at work making use of it these days, and as it’s a younger language, there are not as many resources out there in comparison to others.

In Toit, you could write a very simple hello world application with the following code…

main:
    print "Hello world"Code language: PHP (php)

Say you wanted to get a new name from an external package to say hello to, you might do the following, which would call the method names.next, which can return a string, and print it to the user.

import somePackage show names

main:
    print "Hello world $names.next"Code language: JavaScript (javascript)

To do this in a loop every second, your code might look something like this…

import somePackage show names

main:
    while true:
        print "Hello world $names.next"
        sleep --ms=500Code language: JavaScript (javascript)

If you wanted two separate tasks running with their own control flows, you might make use of tasks, and a second loop.

Read more

Visualizing Wikibase connections, using wikibase.world queries

This entry is part 1 of 3 in the series Wikibase ecosystem

Over the past week I have spent some time writing some code to start running a little bot on the wikibase.world project, aimed at expanding the number of Wikibases that are collected there, and automating collection of some of the data that can easily be automated.

Over the past week, the bot has imported 650 Wikibase installs that increases the total to 784, and active to 755.

I mainly wanted to do this to try and visualize “federation” or rather, links between Wikibases that are currently occurring, hence creating P55 (links to Wikibase) and P56 (linked from Wikibase).

251 Wikibases seem to link to each other, and Wikidata is very clearly at the centre of that web.

Read more

READ FIRST: Installing kubuntu-desktop on WSL2

This post is meant as a warning, DONT DO IT, without some research first.

But if you end up here, you have likely already made the mistake ;)

It in this case is, “this” is…

sudo apt install kubuntu-desktop

Before you attempt this, do some reasearch, head the warning, and be casefull (maybe even backup your disk so you can undo the mess if you make it ;).

If you have already done this and partially bricked your Ubuntu installation, don’t worry, you can fix it!

Symptoms

  • apt, dpkg, service commands and more basically unresponsive and hanging
  • Extremely slow boot times
  • System never seems to entirely boot correctly
  • sudo su etc might also not work

Read more

2 years of wikibase.cloud by WMDE

It’s been somewhere between 2 and 3 years since WMDE took over WBStack, turned it into wikibase.cloud. During this time, my techy focus has slowly shifted away from the world of Wikibase, though I still enjoy following along and working on other Wikimedia areas.

Here I will ramble on about what I saw in terms of potential for wikibase.cloud within the Wikibase ecosystem, as well as what developments have happened within the past years.

The initial problems, goals and dreams

From An introduction to WBStack, I said:

The idea behind the project is to provide Wikibase and surrounding services, such as a blazegraph query service, query service ui, quick statements, and others on a shared platform where installs, upgrades and maintenance are handled centrally.

Now, this is fairly obvious, and clearly something that wikibase.cloud still offers today, however I didn’t write why!? And this is potentially something that has gotten lost through the years of multiple PMs, multiple engineers, multiple project names etc.

Read more

Cloudflare workers for wikibase.cloud uptime & status

Recently I wanted to create a live status page for wikibase.cloud, that also tracking the status of the various services and response times, so that people in the Telegram group might be able to try and correlate their experiences (possibly slow behaviour) with what was seen by others in other locations on other sites, without needing to message in the Telegram group.

In a way, this could be seen as an iteration on the current status page for the service, which is maintained as a static site on Github, making use of cState, a static status page.

Screenshot of the current status page

I initially chose to experiment with Cloudflare Workers to do the minutely checks, after looking around at the current offerings for free online code running (thinking Heroku style etc).

Why Workers?

Read more

Reading from USB COM port in go

If you want an easy copy and paste, no nonsense way to print the output of a COM PORT to the terminal in go, then have a look at the code at the bottom of this post.

Firstly, the go.bug.st/serial/enumerator package provides a very nice interface for getting details of connected devices, and includes more details than the example code in go.bug.st/serial that I found first time around.

Thanks to the toit devs for being responsive and helping me quickly figure out how I could make my ESP spit some USB content out over the COM port.

The code

In a nutshell is this:

  • Loops forever
  • Targets a specific device ID, such a 1a86:7523
  • Waits for it to appear as connected
    • Uses baud rate 115200
    • Opens the port
    • Prints all output received to the console

Read more

WSL2 COM port pass-through with usbipd (firewall issues)

I’ll start by saying that ultimately you want to read and follow the Connecting USB devices documentation for WSL.

However, a few things cropped up along the way that I think might be worth writing down for future me, and others.

Requirements

Firstly, you need to be on WSL2.

Next, install the USBIPD-WIN program.

winget install --interactive --exact dorssel.usbipd-winCode language: CSS (css)

Listing devices

In windows cmd or powershell, you can use usbipd list to list all devices. This should line up with what you see in Windows device manager if you open it.

Read more