Documentation:

How to use SleepAnalyser:

Sleep Analyser records your movement during your sleep. To start, just click on "Start Recording" and lay it beside your pillow onto the mattress. It will record all your movements and visualise it. It also writes the data into a log file, so you can later on analyse it with "Show Log".

A record is stopped when you click on "Stop Recording" or close the Recording window.
On the end you can add a note for this record. It is useful to add a comment of how your sleep really was.
Old records can be visualised with a click on the "View a Record" button. In there you can also delete old records.

SleepAnalyser has also a test function (Button "Test"). It will record and visualise much faster. Also it will make a beep when ever your movement goes over the trigger level.

Settings

In the settings window (Button "Settings") you can change some parameters:

More options might get added in later versions.
More parameters are stored in the file ~/SleepAnalyser/SleepAnalyser.conf. How ever you should only touch them if you know what you do! Normally they don't have to be adjusted.

Graph:

Graph
Movements are shown yellow. If the movements are stronger, the bars go higher. At the bottom of the graph you can see horizontal bars in different colors. They represent the time without movements:

The white line shows the trigger level for the bars. There is also a white number on the right side indicating the trigger level. You can lower/raise it with the up/down buttons. You will have to experiment with it as it is different for everybody depending how soft your mattress is and how far away you put the phone. Those conditions will have an affects how the phone records your movement.

The white number on the left top corner shows the Y scale (always 1).

Record files

During recording, the data is also written to a file. For every record a new file is created. The files are saved in "~/MyDocs/SleepAnalyser". You can share them with other people by just copy them.

Notes:

The application will drain the battery around 20..40% per night. It is suggested to put the phone onto the charger while using SleepAnalyser for a longer time.

Make sure the phone is not covered with your pillow, so it will not overheat.

If you don't feel confident to have a phone close beside hour head for the whole night, activate the option "Offline Mode" in the settings window. It then will automatically change into Offline Mode while it records.

ToDo:

I don't know yet how to implement it. If you know how to realise it in Python with PyQt, please let me know!

Disclaimer:

This application is distributed under the GPL. You may redistribute and modify it freely, as long as you follow the rules of the GPL. I will not give any warranty for any harm on people, environment or the phone.

Copyright:

Copyright 2010 by George Ruinelli (george@ruinelli.ch).
For more information, please visit https://garage.maemo.org/projects/sleepanalyser/.

The icons are from KDE 4 Nuvola theme made by Theme by David Vignoni (icon-king.com) 2003-2004