TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Sensor data and sky photos for ML: new take on a weather app (Android)

3 pointsby jacobsheehyover 6 years ago

1 comment

jacobsheehyover 6 years ago
I make All Clear Weather (Android, US-only for now, see below for why) because I demand better of weather apps. Many of the top weather apps [1] do nothing but display sometimes-outdated weather data in poorly formatted tables. Frankly the top 20 look exactly the same. I&#x27;m making a new weather app because it&#x27;s 2018 and the category is stagnant. I love the weather and I&#x27;m sick of weather apps that don&#x27;t do anything interesting. Here is what I am passionately dedicated to bringing to a weather app to make it <i>interesting</i> and useful at the same time:<p>1) Your phone probably has a barometer in it! Most Android phones do because Google likes to use it as an altimeter to give you better indoor directions. So with iPhones also having barometers (for the iPhone health app), there are now <i>billions</i> of phones around the world are carrying barometers that next to no weather apps are using. Yeah WU and Dark Sky have a toggle, but what does it do? Do they talk about how they are using the sensor data? I don&#x27;t think so. With All Clear you can at least <i>see</i> the sensor data from the weather sensors in your phone and <i>know</i> that it is being analyzed and processed into &#x27;virtual weather stations&#x27; so it can be eventually included in the main weather models. You&#x27;ll know this because you&#x27;ll be able to see it happen in the app as I make progress. Here is a quick graph I made: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;gallery&#x2F;IPj6w7N" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;gallery&#x2F;IPj6w7N</a> of Hurricane Florence&#x27;s pressure recorded by phones in North Carolina a few weeks ago. It may take some imagination to see how the data could be useful (it needs cleaning, privacy protection, quality control, etc) but you can <i>see</i> the data in there and I know it can be extracted into useful numerical weather model inputs.<p>2) All the phones in the world have cameras. These cameras are taking photos of the sky and the weather all day long but nobody is using this data in weather forecasting. That&#x27;s obviously because it is difficult to extract meaningful numeric weather data from a photo, but I believe it can be done. All Clear has a feature to let users send in photos of the sky with tags, and I am going to use this data as a training data set to a machine learning classifier. If it works, it should be able to automatically tag weather information in <i>any</i> outdoor photo - assuming the training dataset is good and my ML is good.<p>3) Current conditions in a lot of weather apps are out of date, since the source data is out-of-date. A lot of the US MADIS stations update only hourly, and they can miss updating in intervals when significant weather happens. Sometimes they update and sometimes they don&#x27;t. But I think it&#x27;s so frustrating to look outside and see it is raining while your weather app just happily denies the existence of that rain and tells you it&#x27;s just partly cloudy. So I let you fix it, for yourself and for others nearby. If enough people all submit the same weather condition, contrary to the station reports, the app will start showing that condition as the Truth for current conditions in that area. (safeguards built in to protect against cheating).<p>4) I&#x27;m sick of the same UI in all the weather apps. I get that the UI in All Clear isn&#x27;t perfect yet (it&#x27;s a new project! and it&#x27;s a hobby! and I&#x27;m not a UI designer!) but I am absolutely going to try new things in terms of <i>how</i> the optimal weather data can be displayed to a user to maximize quick-check understanding. It&#x27;s too easy to be misled by the text, icons, and gridded numbers in most weather apps.<p>5) I am dedicated to open source. While the whole app isn&#x27;t open source yet (it will be!) the main sensor code that does the barometric pressure data collection along with other sensors, is open source on GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;JacobSheehy&#x2F;AllClearSensorLibrary" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JacobSheehy&#x2F;AllClearSensorLibrary</a>. I would encourage other weather app developers to enable features in their apps to aide in the crowdsourcing of potentially very useful weather data that is otherwise idle in phones.<p>6) It&#x27;s in the details. The US NOAA Forecast API that the app uses only returns its text forecasts with F and mi built-in as units. I wrote an algorithm (regexes mostly) to convert the text forecast units on-the-fly so you can be reading it and see it as C and km if you like, it&#x27;s seamless. Well there is one error I know about, sometimes it will say &quot;quarter of an inch of rain&quot; which is a bit of a pain to parse, but I&#x27;m working on that too!<p>Another detail worth mentioning is the smart retry. During development I discovered that the API returned errors (or didn&#x27;t return at all) and so rather than just showing the user a failure screen, the API does a nice backoff-retry to try really really hard to get the data for you. And if it can&#x27;t do that? It knows that probably that forecast office or station is just <i>down</i>. So it changes the location parameters a bit and tries again, hoping to catch a different station forecast that would still be relevant to you. I don&#x27;t have the numbers for how often it fails to load vs. other weather apps (I hope it&#x27;s not worse!). But I know this: I put in some serious effort to try my best to show you the weather no matter what. On that topic...<p>7) Another feature of the app is that it does a lot of work to attempt to pick accurate icons. I find that the icons shown in a lot of weather apps are misleading at best when it comes to describing the weather. It turns out that it&#x27;s really hard to show the user the right weather information in just an icon. So this is the main reason for the animations in the app: to make the visuals more correct and more engaging. There is logic in the app to not show the default icon that comes from the weather API: if it did do that, then a 30% chance of thunderstorms shows you just the thunderstorm icon. Most apps do this. But chances are? The weather will be just partly cloudy, no thunderstorms. So the app shows a partly cloudy animation with a faded, flashing lightning bolt to indicate the probability. Further work is being done in future updates to the app to make this even more accurate.<p>-----<p>Alright, there&#x27;s what All Clear can do that other weather apps can&#x27;t. Maybe it should be your next weather app but maybe it is missing a critical feature for you. <i></i>What&#x27;s that feature?<i></i> What do you need or want in a weather app that nobody is delivering today?<p>All of that above featureset is free by the way. Part of the problem with not enough original and quality weather apps is that they each cost money to run and users are often unwilling to pay. So for All Clear it is free to use all the features of the app; You can pay $1&#x2F;month if you like to extend the forecasts from 3 days to 6, and extend other features in the app like the number of visible weather pictures (from 10 to 100). The subscription will help pay for the servers that run all the custom weather data code as well as future development of neat weather experiments using smartphone sensors.<p>And a note about it being US-only. I tried to make this international from the get-go, and wasted months using IBM&#x27;s API from WU that barely worked at all. Then they yanked the payment form off the web the week I was going to publish the app and buy their $400&#x2F;month package. No longer an option. Now you have to wait for a phone call, might be weeks, and the prices are like $3,000 for the equivalent data (or something, hard to say). If you want to read some of the drama about this, check out this WeatherUnderground thread: <a href="https:&#x2F;&#x2F;apicommunity.wunderground.com&#x2F;weatherapi&#x2F;topics&#x2F;weather-underground-api-changes" rel="nofollow">https:&#x2F;&#x2F;apicommunity.wunderground.com&#x2F;weatherapi&#x2F;topics&#x2F;weat...</a> where people are describing the confusion as WU cuts off their keys and makes the service dramatically more expensive.<p>So the app is using the US NOAA data for free and I am investigating alternatives for international weather data.<p>[1] <a href="https:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;category&#x2F;WEATHER&#x2F;collection&#x2F;topselling_free" rel="nofollow">https:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;category&#x2F;WEATHER&#x2F;collecti...</a>
评论 #18223290 未加载