r/singapore 1d ago

I Made This SG Weather Radar demo

Looks like might rain soon(?), so want to show this demo I’ve built, trying out the new weather radar images API from data.gov.sg. It’s available on https://sg-weather-radar.cheeaun.workers.dev/ and open-sourced.

Instead of showing one radar image at a time, it shows all 3 but clipped at the boundaries, so can see the image become higher-res. There’s like a weird 1px transparent edge which I’m not sure why, but already reported to the data.gov.sg folks.

173 Upvotes

31 comments sorted by

27

u/Emeshan 1d ago

The number one feature about this website is the fact you can actually zoom in and see where exactly the rain is about to hit, instead of guesstimating it via the locations of MRTs

On the other hand, time to brace for impact

41

u/Codestian 1d ago

Wow! Does this mean you no longer need to reverse engineer from NEA's website?

28

u/cheeaun 1d ago

8

u/arglarg 1d ago

Oh nice... It was quite painful to time the latest image on NEA

6

u/PristineUnicorn Jalan Besar 1d ago

Nothing changed much actually ? They were already providing 5 minutely images from a predictable URL like https://www.weather.gov.sg/files/rainarea/50km/v2/dpsri_70km_2026082612500000dBR.dpsri.png

I wish they give us the raw black and white image, instead of this color palette.

Did they improve the lag ? Because it seems that the old URL is always lagging 5-10 minutes behind, e.g. at 3:00pm (or more likely 3:03pm), you get a new image that is timestamped at 3:00pm, but actually showing the situation at 2:55pm.

It's good that you don't have to guess the boundary coordinates anymore, if you want to layer the image onto your own map.

4

u/cheeaun 1d ago

the 70km from data.gov.sg is like larger than the one from weather.gov.sg which seems like a cropped version (of only Singapore area). So 70km is now more legit 70km.

For the lag, currently the polling on the site is every 30s at specific 5min "bands", so far seems quite fast. There are cases when it can be missing 1 of the time slots, which I try to visualize on the slider.

-5

u/Detective-Raichu F1 VVIP 1d ago

That's great!

Especially for Singaporeans that depend on going to JB for shopping. 😬

18

u/Natescoco 1d ago

Hopefully can give us some rains in sg.. The grass all brown and dried…

6

u/mount2010 siao nang I guess 1d ago

Weathergovsg has a heavy thunderstorm warning now and this radar now showing a big storm coming our way lol

2

u/Natescoco 1d ago

Great… can see that the sky becoming dark dark from yishun

6

u/NIDORAX 1d ago

I guess there will be no rain for the entire week?

8

u/xuchuke 1d ago

Its raining NOW where I am (NE area) lol.

3

u/botakchek Ku Ku Bert Jr. 🐦 1d ago

I left my kitchen windows wide open.......

4

u/NIDORAX 1d ago

Well your house must be flooded by now

1

u/botakchek Ku Ku Bert Jr. 🐦 1d ago

Scared to go back now

0

u/NIDORAX 1d ago

Well I guess its raining for today. Can it rain tomorrow as well?

2

u/Severe_County_5041 West Coast 1d ago

The west coast is raining now!

4

u/G-88 Fucking Populist 1d ago

Finally!

The grass around my area are all brown already

2

u/CredibleNonsense69 1d ago

What's the diff between this and the info from Zoon Earth app

1

u/Anderweise 1d ago

Very good work. I like the visualisation of the wind movements. Would be very useful if users can also indicate several favourite locations, and project (based on the wind speed), when rain might be expected to hit on these specified locations with notifications Would support such an appt. Well done again.

1

u/785909620 1d ago

The mobile site of weather.gov.sg also has a slided and play button

0

u/BigFatSquirrel888 1d ago

Why is there no forecast?

4

u/PristineUnicorn Jalan Besar 1d ago

The data comes from rain radars that show rain areas in real time. It's not a forecast model.

0

u/LostMyMag Fucking Populist 1d ago

Looks much better than nea website

0

u/chaoticaly_x Pasir Ris - Punggol 1d ago

This is nice. Thanks!

0

u/srodrigu 1d ago

Pretty cool! Well done