Documentation: |
![]() |
Sleep Analyser records your movement during your sleep.
It is able to visualise it on a graph to show how much you move during your sleep.
This can help to indicate how you sleep.
Old records can be visualised and you can load records from your friends.
SleepAnalyser has also a test function. It will record and visualise much faster.
Also it will make a beep when ever your movement goes over the trigger level.
Later on it might get an alarm function so you can get woken up in the right sleep phase.
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.
Old records can be visualised with a click on the "View a Record" button. In there you can also delete old records.
After you clicked on "Start Recording", the recording window will open. The recording is delayed for several seconds, so you have enought time to put the phone beside your pillow. A record is stopped when you click on "Stop Recording" or close the Recording window.
During or after the recording you can add a note, change the zoom and trigger level. It is useful to add a comment of how your sleep really was. In that way it is later on easier to understand the graph.
If you click on "View a Record", you can load previously recorded Records.
Normaly it opens the last recorded file, but you can open any record on your phone and you can also select a specific date.
It then will show a graph like the one below:
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:
Green: More than 30 minutes without movement
Dark Green: More than 15 minutes without movement
Orange: More than 8 minutes without movement
Red: Less than 8 minutes without movement
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).
With the buttons you can load the next/last file, delete one or change a note. Like in the recording window you can zoom in and out and change the trigger level.
In the settings window (Button "Settings") you can change some parameters:
Offline Mode: When this is activated, the phone will switch to Offline Mode while recording.
Set or change your user name. This name will be saved in the log file, so when you share your files, others know from whom it is.
Start Delay: Set a delay for the start of the recording, so you have enought time to put your phone beside your pillow..
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.
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.
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.
Implement an alarm function
Speed up drawing graph
I don't know yet how to implement it. If you know how to realise it in Python with PyQt, please let me know!
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 2010 by George Ruinelli (george@ruinelli.ch).
For more information, please visit https://garage.maemo.org/projects/sleepanalyser/.
The icons are from KDE Nuvola theme made by Theme by David Vignoni (icon-king.com) 2003-2004 and KDE Oxygen theme made by Oxygen Team