21

Show HN: SF Microclimates

https://microclimates.solofounders.com/

My favorite weather map for SF is PurpleAir: https://map.purpleair.com/environment-estimated-temerature-f...

There are thousands of sensors around the city. You can get a sense of shade-vs-sun temperatures by the spread of numbers you see (on cloudy days, the reported temperatures will be much closer together, while on sunny days, sensors in the sun will report elevated temperatures.)

You do need to make sure to disable indoor sensors, and keep in mind that some sensors are faulty. (I've seen some that have been reporting a constant temperature for years.)

19 hours agomeatmanek

This one is neat, I might actually use it.

I don't understand why it includes indoor sensors at all let alone by default. Why would I want to know the temperature inside some random building?

18 hours agowhy_at

> I don't understand why it includes indoor sensors at all let alone by default.

Add location_type=0 to only get outdoor sensors

18 hours agoweisser

or just click the buttons that accomplish the same thing. The point is someone at PurpleAir is asleep at the wheel if such an obvious default configuration isn't being set. If they can't get such a basic thing right, why do we trust anything else from them? "Anything else" specifically including "running their software on a raspberry pi inside my home network".

18 hours agofragmede

Because PurpleAir is not a weather service, they’re a sensor company.

3 hours agoroughly

I use that and Mr. Chilly.

Mr. Chilly is one of those niche apps that sparks joy and reminds me of the early app days.

18 hours ago650REDHAIR

This was directly inspired by Mr Chilly which was designed by my friend Anna Bleker.

It's an excellent iOS app: https://mr-chilly.com/

My goal was to do something similar as a Claude Code skill

18 hours agoweisser

I use Mr Chilly to demonstrate to non-SF folks how many microclimates SF (and the Bay Area has).

Only suggestion: separate Inner and Outer Sunset since there can be a massive difference between near Ocean Beach and near Irving/9th Ave in autumn (ie. SF's hottest season).

Edit: nevermind, just saw both inner_sunset and outer_sunset in /neighborhoods. I'd assumed it was merged based on the human readable list on the landing page. Thanks for the fun API!

2 hours agojonpurdy

thanks I will update the homepage to reflect this.

an hour agoweisser

It seems weird to me that there's no human readable version on the webpage?

Usually what I want the weather for is to choose what to wear, not to put in a bash script or an LLM or something.

18 hours agowhy_at

I made this primarily to use inside Claude Code in terminal but maybe I'll make a little demo on the website if you put in an SF zip code.

18 hours agoweisser

Here you go: https://v0-weather-app-one-coral.vercel.app/

Made it in about 5 minutes with v0.

18 hours agoaurareturn

Can I suggest changing background color of the tiles between blue and red to indicate how warm each spot is? Would make it easier at a glance.

34 minutes agotrehans

I use PurpleAir data for a lot of my home automations— I have a smart window vent and configure it to blow in/out depending on which side has the worse air.

(Thank you to those who maintain public sensors!)

I do notice that in my neighborhood (Noe Valley) a lot of the sensors are very incorrect or often offline. I've resorted to taking the median and throwing outliers away, but even this often doesn't work. This is the challenge of relying on crowdsourced data I suppose...

3 hours agobrdd

Love the idea, but tried "japantown" which is mentioned in the README but doesn't exist in the app? https://microclimates.solofounders.com/sf-weather/japantown

2 hours agolubujackson

thanks for catching this. just fixed.

note that I also have a system where if the temperature seems outlier compared to direct neighbors it averages the 3 nearest neighbors. this usually occurs in neighborhoods with a single sensor that can skew the results heavily at certain times of the day, etc.

an hour agoweisser

An interesting problem with self-reported temperature is that people just put their outdoor sensors inside for some reason or near an ambient heat source; also in neighborhoods with tall buildings, it's a bit colder higher up, so the balcony readers are a bit off from sidewalk temperature, it is interesting to see though that one block from another is super different in temp, is it because it's actually different or is there something heating/cooling the sensor off randomly

18 hours agoforthwall

This happens in Portland as well! Can this be adapted/updated to work here?

18 hours agolukevp

Fork the Github! Would love to see it elsewhere :)

18 hours agoweisser

Is it possible to get individual sensor data via this API?

19 hours agospicycorncheese

no I made this primarily for a Claude Code / Clawdbot skill so I am not making it super sophisticated.

You should use Purple Air if you want to make it more focused https://www2.purpleair.com/

18 hours agoweisser

Can you do celsius

19 hours agobaby

submit a PR

18 hours agoweisser

Multiple neighborhoods have no data, including Lakeside and Stonestown.

18 hours agox3n0ph3n3

Good flag. I've just added add fallback to the nearest location with a sensor to the repo.