LONDON — A clever Reddit user has created one of the greatest DIY Harry Potter projects ever: A fully functional, digital recreation of the Weasley family's clock.

The timepiece, which is housed in the shell of an old antique clock and stuffed full of wires and LEDs, was created by user tbornottb3. It communicates with the family's smartphones to periodically update on their location.

The Weasley's clock stood in their living room at The Burrow and featured nine hands, one for each member of the household. Instead of telling the time, it pointed to various locations pinpointing members of the family, including home, school, work, travelling, lost, hospital, prison and mortal peril.

The options on the replica clock's dial meanwhile are home, work, holiday, forest, on the way, and - of course - mortal peril. What triggers the latter? "Whatever each person wanted," the creator explains. "For example, my sister has it triggered by a forecast of too-cold weather, and I have it triggered by the radius of our rival school."

The clock was built between Thanksgiving and Christmas last year, and unveiled online Sunday. The project began with the shell of a broken old clock from an antique store.

Image: Imgur

Then plans were mapped out on a scrap of paper and given to a friend who translated it all onto Adobe Illustrator.

Image: Imgur

The creators then "laser cut / etched those vectors onto wood." Another photo shows the inside workings of the clock. A Particle Photon connects via a breadboard to an addressable LED strip, its creator says.

Image: Imgur

There was a fair amount of coding involved.

Image: Imgur

The system uses the If This Then That (IFTTT) web service, that allows users to connect different applications via a chain of conditional statements called recipes.

"I used IFTTT to define radii that would send messages to the Photon if my phone entered or exited them," the creator explains. All six family members follow the same process.

"Most of the rules are location-based (setting me to WORK if I enter my university library, HOME if I enter my dorm), but you can set other triggers too (set me to HOLIDAY if the forecast calls for snow, set me to MORTAL PERIL if the stock of the company I'll be working for next year drops too low)."

Image: Imgur

This is the view from the back of the clock:

Image: Imgur

And the finished product:

Image: Imgur

The big letter 'B' is lit by the bottom of the LED strand and illuminates a different colour for each member of the family as the clock is about to update their position.

Mashable
is a global, multi-platform media and entertainment company. Powered by its own proprietary technology, Mashable is the go-to source for tech, digital culture and entertainment content for its dedicated and influential audience around the globe.