Location-Accurate Weather For Your Gecko

When building a terrarium, most people do their best to make it an acceptable environment for its inhabitant. Temperature and lighting can be regulated, and habitat-appropriate props placed to provide some approximation to what the creature would be happy with. [Fraxinas] has taken this a step further though, by making a terrarium that simulates the weather conditions of a gecko’s native New Caledonia.

This terrarium is controlled by an ESP32, which in turn commands lights, a heater, a misting pump, and some fans. These are used to simulate the New Caledonian climate, based on real climate data from the island. This is in Germany so its seasons are out of phase with the south pacific, thus the terrarium replicates conditions from six months in the past.

On a sad note, the gecko for whom it was built is no longer with us, and after several months of emptiness the terrarium gained a new inhabitant. This came with an upgrade, both to the lighting in order to better support plants, and the materials used in order to present a more gecko-safe environment. The write-up is long and fascinating, and we’re sure you’ll find it a good read.

This may be the first gecko we’ve seen whose climate follows their real habitat, but it’s not the first automated terrarium we’ve seen.

The 3D Printer Scam Targeting UK Hackerspaces

It’s likely that most Hackaday readers will be familiar with online scams, from those faraway princes with an embarrassing matter of needing to shift some oil millions, to too-good-to-be-true offers which require a bankers draft for payment. There’s an oddly specific one targeting multiple hackerspaces in the UK, and over at Machynlleth Makerspace in Wales they’ve done a deep dive into it.

The scam arrives as an email from a school pupil, asking for a surplus 3D printer. They’re based in Cambridge, about 4 or 5 hours drive from Machynlleth, and their writing style bears all the hallmarks of an LLM. The Machynlleth folks decided to string the scammer along, and elicited a handwritten letter from the lad’s teacher which the real teacher confirmed was fake, then a request that the makerspace pay for the shipping. The provided address in Cambridge was real enough, though they have no word on whether a crook would be there to pick up the printer when it arrived. They reported it all to the UK online fraud reporting service, but realistically given the volume of such crime it’s unlikely to be followed up.

This is a run-of-the-mill scam then, and worth alerting any others in the hackerspace community about. But sitting here, we can’t help wondering exactly what the real scam was going to be. It’s unlikely they’re going to all this effort in the hopes of somebody’s failed RepRap project from 2014 alone, so no doubt had anyone sent a printer, it would have been followed up by something containing the real payload. So watch out for this if you run a hackerspace.

Meanwhile, this gives us the happy discovery that there’s a makerspace in Machynlleth! One to visit, next time the lure of tiny trains takes us into Wales.


Header image: c3o, CC BY 2.0.

The Ladybird Browser Reaches Alpha

If we learned one thing form the browser wars of the 2000s, it’s that having a single ecosystem dominate the internet is best avoided. Yet here we are in 2026, and through Google’s Blink and Apple’s Webkit, we have very little diversity in the world of web browsing engines. Firefox is now very much an outsider, and that’s pretty much it. But there is another up-and-coming fully-featured browser, Ladybird, and it’s now available in alpha form for those of you with macOS or Linux.

This browser had an unlikely start, as a component of the esoteric operating system, SerenityOS. We tested it in that form and found it competent, but the process of running the OS in a VM, not so much. It was split into a separate project in 2024, and since then they have been working towards this point, of having something close to a release version.

We’ve followed Ladybird for a while now, not because we expect the world to adopt it en masse, but because, incredibly, it’s now the third major in-development browser engine family. Just as we needed the Konqueror-derived Webkit a couple of decades ago to provide a balance to the then-dominant Internet Explorer, we may need this piece of software at some point. We’ll give it a try, and perhaps you will too.

A Switchboard Operator Simulator, On Real Hardware

After having been around computer games since the end of the 1970s, one might think that, to borrow a Who lyric, from Soho down to Brighton, you must have played them all. Games get flashier, have more depth, or longer stories, but substantially they fit into familiar categories. Then along comes [Mark Sidell] with a Western Electric telephone switchboard, and changes all that. We ain’t seen nothing like it, in any amusement hall.

The premise of this game is simple. In front of you is a real 1950s telephone switchboard, and you play the operator at a hotel. Your job is to route calls between guests, hotel-functions, and external lines. There are sixty characters on the line, and 120 scenes played out over the phone.

Behind the scenes is a PC with a multichannel sound card, and perhaps most importantly the switchboard hasn’t been modified. It’s a board with a history, having been used at the Southern California Edison office before being given to its former operator, and then donated to the Connections Museum. It’s thus really unusual in that it retains all of its internal hardware, something frequently removed in decommissioned boards to save weight. There’s a video below which shows it in action, and if you’re like us, we think you’d want to give it a go too.

We like this project for its novelty, its attention to detail, and above all, for its respect of the original hardware. Meanwhile, it’s not the first piece of venerable telephone hardware we’ve brought you.

Continue reading “A Switchboard Operator Simulator, On Real Hardware” →

ESP Microcontrollers As Analog Radios

The release of the hidden SDR functionality in the radio section of Espressif microcontrollers has led to an explosion of SDR hacking, both transmit and receive. We’ve seen SDR front ends and spectrum analysers, but [Kaboom748] has made the process even easier for users of traditional analogue modes. Do you need AM, FM, or SSB? The repository has ready-to-go software, in both transmit and receive.

Interestingly, it provides a reminder that these hacks work on the ESP8266 as well as the ESP32 series, as there are builds for that processor too. It is, however, restricted to whatever frequency the chip supports, so without a converter you are stuck with 2.4 or 5 GHz. To forestall the inevitable commenters, it’s difficult to imagine a situation where wideband FM stereo would be legal in the Wi-Fi space, but at least these chips only provide low-power transmission.

Continue reading “ESP Microcontrollers As Analog Radios” →

That Java Phone Can Still Go Online

The first generation of internet-connected mobile phones weren’t smartphones; instead, they were so-called feature phones, somewhere between a basic phone-only device and the type of phone we know today. They used their 2G modem to connect, and either had a built-in browser or, if you were very lucky, could run basic Java apps. As 2G services are slowly disappearing, surely it’s curtains for these old devices? Not at all, as [Antcating] shows us, because many of them can still go online using Bluetooth.

Back in the 1990s, people imagined use cases for short-range wireless tech that never quite caught on. There were Bluetooth wireless routers, and the idea of a personal area network of connected devices. Cheap Wi-Fi devices won that battle, but the tech remains, and many of those older phones still support it. We’re shown how to set up such a network using a Raspberry PI (or even a Windows machine!), and connect a Sony Ericsson phone to it. The browser to have back in the day was Opera Mini, with its server-side rendering, and amazingly there’s still a Java download of this venerable browser. So if you have one of these phones still knocking around, dust it off; there’s got to be some posing value in there.

Correcting The Pink Photo From My Modified Phone: A Follow-Up

A week or so ago I posted an Ask Hackaday, in which I asked the community for help with a common camera hacking problem I was having with my mobile phone to C mount conversion. In short, when you take a camera with a tiny lens and change that lens for another, the resulting photographs have a colour cast. It’s usually the right colour in the centre, and moves to a pink colour in a ring around the photo. The commenters came up with the right answer, and identified the problem as the phone software applying a correction to compensate for the relatively awful tiny lens. It’s a problem not limited to me, it’s appeared in many such projects including this one. So having been educated as to the nature of the problem, my next  step was to look at how to fix it.

It’s A Flat Field Correction Problem, Folks!

This image has pink edges fading to white in the centre.
The Galaxy Note 3 calibration image.

Of course I am not the first to encounter this in some form, thus as expected there’s a well-tested technique in photography to correct it. It’s called flat field correction, and it works by correcting each pixel in the image to match the gain to that of the pixels in the centre of the image. It’s a straightforward enough mathematical procedure, and to measure those relative pixel gains it requires that the camera take a calibration image of a uniformly lit white surface. The idea is that each pixel in this image will deliver the difference between it and the pixels in the centre, and thus the required correction for that pixel.

Taking a calibration image is easy, and involves pointing the camera at something white and reasonably lit, and unfocusing it to remove any surface texture effects. The picture must be at the same resolution as the photo to be processed. I took a picture of the same white table in my hackerspace from the stuffed animals picture at somewhere under a metre’s distance, with the lens set to infinity focus. The resulting image shows the circular pink pattern alone, and very clearly indicates the nature of the problem.

Correction Method 1: GIMP

The same image of stuffed animals twice, top: fixed version, bottom: original with pink cast.
Top: fixed, Bottom: original.

Perhaps the easiest way to perform flat field correction is in your normal photo editing package. I use GIMP, but I am guessing that other packages will follow a similar path.

  1. Open your photo to be corrected. The result will be brighter so you’ll need to reduce its exposure (Colours menu > Exposure).
  2. Change the encoding precision to 32-bit floating point (Image menu > Encoding). Since this is a mathematical process, this reduces any rounding errors that might affect picture quality.
  3. Open the calibration image as a new layer above the photo (File menu > Open as layers). Some guides then suggest applying a Gaussian blur to this layer to further reduce noise. I tried either, and found it made little difference.
  4. Change the layer’s mode from “Normal”, to “Divide”. This can be found in the Layers panel, in a pulldown above the list of layers.

Following these steps delivers an image with the flat field correction applied. Of course, it may still need other processing such as white balance, but the pink ring is gone.

But What About The Command Line?

A straightforward GIMP workflow is an easy way to correct a single photo, but converting a day’s worth of pictures is likely to become a major pain. For a directory full of pictures it makes sense to use Image Magick if I can, and for a video I need to be able to use ffmpeg. So after a bit of messing about, here is the same process, for both command line packages. I have also placed the shell commands in a GitHub repository, in case your browser manages to mangle cut-and-pasting the commands below.

Image Magick

The first task is to create a calibration map from the calibration image I took earlier. This is a PNG image whose pixels represent the level difference from the centre of the image normalised to 50% grey, as opposed to the original image which shows their relative values at whatever illumination it was taken under. The -blur option applies a blur to remove any textures in the image, while the -fx option contains the mathematical formula required to apply the calculation. I am not ashamed to admit that I had a lot of help in getting these steps right, for which I am thankful.

magick calibration-photo.jpg \
  -blur 0x60 \
  -fx 'channel(
    0.5*u.r/max(u.g,0.02) *
        u.p{w/2,h/2}.g/max(u.p{w/2,h/2}.r,0.02),
    0.5,
    0.5*u.b/max(u.g,0.02) *
        u.p{w/2,h/2}.g/max(u.p{w/2,h/2}.b,0.02)
  )' \
  -depth 16 PNG48:calibration-map.png

Having created the calibration map image, it can now be applied to the photo. The multiplication by 0.5 is a compensation for the calibration map being centred around 50% grey, and the divide function is the same as that in the GIMP version above.

magick photo.jpg \
-evaluate multiply 0.5 \
calibration-map.png \
-compose DivideSrc -composite \
-quality 95 photo-corrected.jpg

ffmpeg

Now for video! Performing the same task in ffmpeg follows the same process as  with Image Magick, but the calibration map must be the same resolution as the video. The most straightforward way to do this is to make a short video of the illuminated white surface rather than a still photo, and average all of its frames into a single image. The result is a similar one to the still calibration image, but it’s important to do it this way as the video camera app may apply different processing to the still camera one.

ffmpeg -i calibration-video.mp4 \
-vf "tmix=frames=60,format=rgb48be" \
-frames:v 1 -update 1 calibration-image-video.png 

This image can then be processed in exactly the same way as the Image Magick version. Again, it’s applying a blur, and the same formula to make the calibration map.

ffmpeg -i calibration-image-video.png \
-vf "format=gbrp16le,gblur=sigma=60,\
geq=r='32768*r(X,Y)*g(W/2,H/2)/(max(g(X,Y),1)*max(r(W/2,H/2),1))':\
g='32768':\
b='32768*b(X,Y)*g(W/2,H/2)/(max(g(X,Y),1)*max(b(W/2,H/2),1))'" \
-frames:v 1 -update 1 -pix_fmt rgb48be calibration-map-video.png

Using the map, the conversion can then be performed on the video itself. This is a slow process though, on my run-of-the-mill Thinkpad it was processing only 1.8 frames per second.

ffmpeg -i your-video.mp4 -loop 1 -i calibration-map-video.png \
-filter_complex \
"[0:v]format=gbrp16le[video];\
[1:v]format=gbrp16le[map];\
[video][map]blend=all_expr='A*32768/max(B,1)':shortest=1,\
format=yuv420p[out]" \
-map '[out]' -map '0:a?' \
-c:v libx264 -preset medium -crf 18 \
-c:a copy your-video-corrected.mp4

So we’ve identified the problem as flat-field correction, and here are three ways to do it. The camera is now a lot closer to being useful, even if the processing steps can be a little cumbersome and the photos may require a little more post-processing. It’s obvious that in the phone hardware is the best place to do this, but without access to the internals of a 13-year-old Samsung this is the next best thing.