This is meant to be a very simple open source clone of PrimeNap, i.e. just track sleep start/stop times and count the average / day.
It literally does nothing while you sleep, causes no battery drain.
Stores past sleeps, counts stat from them.
Exports/imports sleep data to/from CSV.
Can show past sleeps, can selectively delete individual sleeps.
It looks like this:
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.