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 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 2:04:58 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

2 sources
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

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.