Jack Allan Kasbeer

← Inventions & Projects

Painting with the Weather: Engineering Kim Rose's Ocean Series

· updated · solidity, ethereum, python, nft, generative-art

The sun can be down where you’re standing and up in the painting. Sydney keeps time in Watsons Bay on Sydney Harbour, the place its collector chose. Kim Rose filmed wet ink drifting and folding into itself. My job was to get the right film onto the collector’s wall.

Sydney, Calm Day state. Kim filmed wet ink in motion and layered it into a seamless loop.

Four films, two questions

Is the sun up in Watsons Bay? Are conditions stormy? Kim made a loop for each combination. Look across the four below and you can see how much of the change comes from the movement of the ink.

Calm Day
Stormy Day
Calm Night
Stormy Night

Each loop has its own metadata file and animation URL. I stored the media on IPFS. The Ethereum token points to an HTTP endpoint, so the files can stay put while the endpoint picks the one to show.

Flow: a wallet, marketplace or display calls tokenURI on the Sydney contract, which returns an API URL; the API checks the weather if its cache is stale and returns the current state's metadata; the viewer then plays that state's video from IPFS.
Every viewer resolves the token the normal ERC-721 way, and gets back whatever state matches the weather right now.

Reading the sky from another time zone

I wrote a small Flask service that reads current conditions, sunrise and sunset from Visual Crossing. It compares the observation time with sunrise and sunset as Unix timestamps. That keeps the machine’s local clock out of a decision about daylight in Australia. The storm rule came from the conditions and rain icon I saw in actual Watsons Bay responses. Visual Crossing

Decision flow: if the weather was checked in the last four hours, return the cached metadata; otherwise fetch current conditions, decide day or night from sunrise and sunset, decide calm or stormy, pick one of four states, update the cache and return it.
The state machine behind GET /watsonsbay?tid=0.

I allowed the service to reuse a weather reading for four hours. An evening change can take time to appear, but a roomful of viewers can share one reading. The chain records ownership. A rain shower doesn’t require anyone to submit a transaction.

What hangs on the wall

Marketplaces decide when to refresh their own copies of token metadata. For the collector I made a separate full-screen page. It requests the current selection, loops the video and reloads every hour. The display has one URL to open whenever it powers up.

Sequence: every hour the gallery display requests /view, which calls the metadata API, receives the current metadata, and returns a page with a looping video; the display then streams that video from IPFS.
The display path skips marketplace caching entirely.

There’s still a machine to look after. If the service goes offline, a fresh request can’t resolve the weather, even while the films remain available on IPFS. I gave the contract an adjustable base URI so the work could follow the service to another host. The videos also have to stay pinned.

December 2023, adding Zürich

A second collector picked Zürich. Kim made four new loops. I added a city endpoint and reused the contract base, this time passing the token ID through because Zürich was an edition of two. Both cities could share the server and pinning account.

Zürich, Calm Day
Zürich: Calm Day
Zürich, Stormy Day
Zürich: Stormy Day
Zürich, Calm Night
Zürich: Calm Night
Zürich, Stormy Night
Zürich: Stormy Night

The first four films follow a harbor in Australia. These four follow Zürich. You can put them on neighboring walls and still see each place have its own afternoon.

Artwork © Kim Rose. The Place You Feel Most Alive · Sydney contract · Zürich original · Zürich replica