HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
JacobSheehy
AllClearSensorLibrary
Kotlin2018–2021
JacobSheehy / AllClearSensorLibrary

AllClearSensorLibrary

A new foreground sensor library for Android.

3Distinct people
11Mentions
1Explicit recommenders
40GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A new foreground sensor library for Android.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

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…

jacobsheehy used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year11 dated mentions

Observed mentions: 2018-09-15 21:11:22 UTC to 2021-08-29 20:53:38 UTC.

01232018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2021

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC303
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC202
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC303
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC303

What Hacker News says

11 sources
My hobby is using Android phones to take weather measurements and hopefully one day, be useful in weather prediction. I make an app that has this feature (along with other ML experiments), US only for now: https://play.google.com/store/apps/details?id=com.allclearwe... I plan to make better visualizations from the data, with the most ideal being an isobar map made just from phone pressure data. Here is an animation (not isobar) of Hurricane Dorian (2019) I made: https://www.allclearweather.com/hurricane-dorian All this is done with the open source library I write: https://github.com/JacobSheehy/AllClearSensorLibrary I obviously plan to make more visualizations for Ida once more data is in, and hopefully better ones too. Sorry for the rushed quality, but you know, the storm is landfalling as we speak. (edit: and yes iPhones have barometers
Read the rest
too, but I'm an Android dev so iOS app will take a while).
In Show HN: Hurricane Ida's pressure falling in Louisiana, data from Android phones
I've been researching this stuff on and off for about 10 years. Here's a graph I made of Sandy using the same kind of tech but a previous project: [https://imgur.com/r/sandy/c87tV](https://imgur.com/r/sandy/c... I also more recently made an animation of [Hurricane Dorian's approach to Florida](https://allclearweather.com/hurricane-dorian). And of course, the barometer code for this on Android is an [open source library](https://github.com/JacobSheehy/AllClearSensorLibrary) I write to encourage other Android devs to do similar work. Cheers and stay safe.
In Hurricane Henri's atmospheric pressure be measured with your Android phone
I'm working on using smartphone sensors to detect anything they can relating to weather, including space weather - magnetic storms. I've been fascinated with crowdsourcing mobile sensor data for like 10 years now and it's only going to get more interesting: air quality sensors should be making their way to phones soon, others as well. My open source library with limited sensor features is here: https://github.com/JacobSheehy/AllClearSensorLibrary for Android 'background' access to sensors (using foreground library). I don't think that I've got magnetic data there yet but it's mostly a matter of adding another field. I've got this running live in an Android app if you want to check it out: https://play.google.com/store/apps/details?id=com.allclearwe... (US-only for now, sorry about that, international weather data is pricey) I typically t
Read the rest
rack hurricanes with obvious low-pressure curves but there's a lot more that can be done. Crowdsourcing sensor data from phones: Accelerometers can detect earthquakes, Microphones can detect noise pollution, Magnetometers can detect solar activity, Barometers can detect weather changes Most phones have those sensors now, and I'm looking out for UV sensors, air quality sensors, and more. The applications of crowdsourcing sensor data are immense and constantly improving as new sensors get added. -- The main issues honestly are privacy and noise filtering. Ensemble kalman filters running on device can reduce noise dramatically, and you can use anonymizing features like geographic bounding boxes (where sensors can go in and out and only their bounding box is used as location data)
In Smartphones can detect solar storms
Ya'll probably know this but I'm very interested in tracking Laura as she landfalls using specifically barometers in phones. I do this with All Clear: https://play.google.com/store/apps/details?id=com.allclearwe... (US android app), source code I write for the clever 'background' sensor data on Android here [1] and animation of the non-landfalling Hurricane Dorian last year as viewed from phones in Eastern Florida [2] I think with Laura landfalling and travelling across the US for a while, there should be a lot of interesting and maybe useful surface-pressure readings to be had. Stay safe if you are anywhere near this hurricane. It is ...unprecedented. [1] https://github.com/JacobSheehy/AllClearSensorLibrary [2] https://www.allclearweather.com/hurricane-dorian Also I suppose it's important to shoutout /r/tropicalweather, just about the be
Read the rest
st community on reddit. Their megathreads and links are always useful. https://reddit.com/r/tropicalweather
In Live View of Hurricane Laura
Well, I think the most important metric you can measure on the surface is atmospheric pressure. Simple temperature and humidity is generally insufficient to make good predictions - but pressure at the surface, measured across a geography, can tell you about conditions in the upper atmosphere. I use barometers in phones for this kind of purpose. I think that a minimum of 1 quality reading per 4 sq km would represent sufficiently dense coverage to create an improvement in forecasts. But more is better, since quality can be iffy. Some papers published by Cliff Mass et al from UW might have more info on density work. I'll try to find a link. [1] [2] The work I do is presently just in the US on Android: https://play.google.com/store/apps/details?id=com.allclearwe... with future expansion planned to allow better data acquisition. Open source co
Read the rest
In Build yourself a weather station
Do you mean added resolution of input data, or improved resolution at which the models are run? Input data is frankly very limited - IMO we are barely measuring the atmosphere. Model runs are higher resolutions are only good if there is sufficient input data to seed the models. It's my lifelong passion to increase the usable input data (live atmosphere measurements) that models can assimilate. My latest attempt is to use the barometers in phones to create billions of new 'virtual weather stations'. My US-only Android app (iOS and international coming soon) is https://play.google.com/store/apps/details?id=com.allclearwe... You can see an animation of the data recorded in the Orlando, FL area when Dorian was churning off the coast: https://www.allclearweather.com/hurricane-dorian The data requires significant QA and bias correction to use,
Read the rest
but it is possible (see Cliff Mass research papers) and the trends in the data are already clear and usable, regardless of actual pressure value recorded. Let's add a source code link for Android background/foreground sensor access that I wrote to further these goals: https://github.com/JacobSheehy/AllClearSensorLibrary
In Met Office forecasters set for 'billion pound' supercomputer
I think battery life is quite simple to solve for, actually. A common method to work through this, especially for earthquakes, is to only capture sensor data when the phone is stationary and plugged in+charging. If the phone is moving or unplugged, no data needs to be gathered. Sure, this limits the quantity of data you can get in the short-term, but relaxes users long-term and keeps the app installed. Offering these settings as toggles also helps. FWIW, I mostly work on barometers. New versions of Android lock down the sensor access so it cannot be done in the background; my solution is low-resolution data (15-minute intervals, rather than ideal 1-minute) and for user privacy, I can discard location data after summarizing pressure data into gridded anonymous areas. I do this in All Clear Weather: https://play.google.com/store/apps/detail
Read the rest
s?id=com.allclearwe... (US, Android) Sensor code: https://github.com/JacobSheehy/AllClearSensorLibrary I am also interested in gathering magnetic data, and presently also collect temperature, light sensor and humidity from phones that have it. I believe all this data could be useful for weather prediction, which is my current target. But earthquake alerts, magnetic field/solar storm warnings, sound pollution (microphone), and various other distributed sensor networks should also be possible. I have not noticed any battery degradation or over-use of resources in my dealings with sensors. As long as the developer takes care in the code and respects users' wishes, I think it's totally doable.
In Two quakes in two days, no warning from ShakeAlertLA
That's interesting - I'm working on using cell signal strength as an indicator for live weather features! There's a simple relationship between signal strength and clearness of weather - light rain has a distortion signal, heavier rain a heavier distortion, etc. I'm betting that when all is said and done, the cell phones will help the weather forecast more than hurt it - but this may take some years if the cell companies are too greedy about it. I'm working on detecting weather using all kinds of phone sensors like barometers and cameras in All Clear if you're interested: https://play.google.com/store/apps/details?id=com.allclearwe... and the open source sensor package: https://github.com/JacobSheehy/AllClearSensorLibrary
In 5G Is Likely to Put Weather Forecasting at Risk
Here is some context. This is a hobby project. 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 on Android do nothing but display sometimes-outdated weather data in poorly formatted tables. Frankly the top 20 look exactly the same! I'm making a new weather app because it's 2018 and the category is stagnant. Here is what I am passionately dedicated to bringing to a weather app to make it interesting and useful at the same time: 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 billions of phones around the world are carrying barometers that next to no weather apps ar
Read the rest
e using. With All Clear you can see the sensor data from the weather sensors in your phone and know that it is being analyzed and processed into 'virtual weather stations' so it can be eventually included in the main weather models. You'll know this because you'll be able to see it happen in the app as I make progress. Here is a quick graph I made: https://imgur.com/gallery/IPj6w7N of Hurricane Florence'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 see the data in there and I know it can be extracted into useful numerical weather model inputs. 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'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 any outdoor photo - assuming the training dataset is good and my ML is good. 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't. But it'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'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). 4) I am dedicated to open source. While the whole app isn'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: https://github.com/JacobSheehy/AllClearSensorLibrary. 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. 5) It'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's seamless. Well there is one error I know about, sometimes it will say "quarter of an inch of rain" which is a bit of a pain to parse, but I'm working on that too! ----- Alright, there's what All Clear can do that other weather apps can't. And a note about it being US-only. I tried to make this international from the get-go, and wasted months using IBM'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/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: https://apicommunity.wunderground.com/weatherapi/topics/weat... where people are describing the confusion as WU cuts off their keys and makes the service dramatically more expensive. So the app is using the US NOAA data for free and I am investigating alternatives for international weather data. Here is All Clear Weather on Google Play (US): https://play.google.com/store/apps/details?id=com.allclearwe...
In Show HN: All Clear Weather – creating new live weather datasets with ML
jacobsheehy·Oct 12, 2018Recommendation phrase
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'm making a new weather app because it's 2018 and the category is stagnant. I love the weather and I'm sick of weather apps that don't do anything interesting. Here is what I am passionately dedicated to bringing to a weather app to make it interesting and useful at the same time: 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 billions of phones around the world are carrying barometers
Read the rest
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't think so. With All Clear you can at least see the sensor data from the weather sensors in your phone and know that it is being analyzed and processed into 'virtual weather stations' so it can be eventually included in the main weather models. You'll know this because you'll be able to see it happen in the app as I make progress. Here is a quick graph I made: https://imgur.com/gallery/IPj6w7N of Hurricane Florence'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 see the data in there and I know it can be extracted into useful numerical weather model inputs. 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'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 any outdoor photo - assuming the training dataset is good and my ML is good. 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't. But I think it'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'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). 4) I'm sick of the same UI in all the weather apps. I get that the UI in All Clear isn't perfect yet (it's a new project! and it's a hobby! and I'm not a UI designer!) but I am absolutely going to try new things in terms of how the optimal weather data can be displayed to a user to maximize quick-check understanding. It's too easy to be misled by the text, icons, and gridded numbers in most weather apps. 5) I am dedicated to open source. While the whole app isn'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: https://github.com/JacobSheehy/AllClearSensorLibrary. 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. 6) It'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's seamless. Well there is one error I know about, sometimes it will say "quarter of an inch of rain" which is a bit of a pain to parse, but I'm working on that too! Another detail worth mentioning is the smart retry. During development I discovered that the API returned errors (or didn'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't do that? It knows that probably that forecast office or station is just down. 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't have the numbers for how often it fails to load vs. other weather apps (I hope it'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... 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'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. ----- Alright, there's what All Clear can do that other weather apps can't. Maybe it should be your next weather app but maybe it is missing a critical feature for you. What's that feature? What do you need or want in a weather app that nobody is delivering today? 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/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. And a note about it being US-only. I tried to make this international from the get-go, and wasted months using IBM'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/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: https://apicommunity.wunderground.com/weatherapi/topics/weat... where people are describing the confusion as WU cuts off their keys and makes the service dramatically more expensive. So the app is using the US NOAA data for free and I am investigating alternatives for international weather data. [1] https://play.google.com/store/apps/category/WEATHER/collecti...
In Show HN: Sensor data and sky photos for ML: new take on a weather app (Android)
I'm building 'virtual weather stations' out of disparate, unused data sources. This effort is to create new data sources that describe our atmosphere. I don't know if any of it will be useful but I cannot find much else out there that is working towards this kind of effort. So here we are. The main experiments I'm working on are 1) sky photos, 2) sensor data like barometers in phones, and 3) user-submitted current weather. 1) Sky photos. I think that we can use a machine learning classifier that is built from user-submitted labelled photos of the sky. We should be able to them auto-tag weather data in the photos and get (numerically?) useful historical weather data from all outdoor sky photos. Additionally live photos could used to gain real-time information as well. Smartphone cameras are getting really good and can detect significant de
Read the rest
tail. 2) Most phones have a barometer now, other sensors as well like hygrometers etc. This data needs major QC and protection for user privacy and for preparation for integration and assimilation into models like WRF. This is a ways off but research has been done already here and there can be significant progress with good quality data. Here is what data from a single phone in Colorado looks like spanning a day or so: https://imgur.com/a/45lTZ6j. The sensor code for Android is open source to encourage other apps and make the process of collecting atmosphere data from smartphones much easier. [2] 3) Current conditions reporting. I found that MADIS stations don't update frequently enough to keep track of rapidly changing weather events. Users can submit current conditions and an algorithm picks which to show based on recency, trust, and other metrics. So far it can create a more accurate current conditions experience for the user. I have taken significant effort to show the weather data from NOAA in a clear and readable way. The large graphics and animations have significant logic code behind them to attempt to most appropriately display the conditions described by MADIS stations. For example, even when most APIs will return a thunderstorm icon for a 30% chance (I find that misleading) All Clear takes an approach of showing a faded flashing bolt with a clear indication that it is 'chance'. Other efforts are made to improve weather data communication, such as automatically converting text forecasts to units set by the user. It's not simple! But it is a useful thing for users. (See this forecast API result:https://api.weather.gov/gridpoints/OKX/33,37/forecast/ for example). It has text forecast only in US units and I don't see any options to change it otherwise. Thanks! [2] https://github.com/JacobSheehy/AllClearSensorLibrary
In Show HN: Weather data created by phones for machine learning classifier training

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.