Commit Graph

7 Commits (70b0c509469e84b76c941b4f45141a5c337f9470)

Author SHA1 Message Date
storm64 8102fd4e72 [sleeplog] Reduced log size further, see #1835
Reduced log size further to 750 entries
2022-05-17 17:51:10 +02:00
storm64 92ac8ee3f0 sleeplog: Fix LOW_MEMORY,MEMORY error #1835
Check and if neccessary reduce logsize to 1500 entries in writeLog() to prevent low mem error.
2022-05-17 09:18:39 +02:00
storm64 a110a30ad5 sleeplog: Fix logfile disabling, add status icons
Update app.js
 - adjust label position to improve readability on light themes
 - add icons to display service states
Update ChangeLog
 - compact old and add new changes
Update lib.js
 - fix logfile correction in `setEnabled(...)` to make disable logging possible
 - simplify logfile checks
Update README.md
 - add icons of the service states
Update settings.js
 - fix error on reading a non string logfile value
Add icons: disabled.png, nolog.png and powersaving.png
2022-02-16 12:52:00 +01:00
storm64 ab42b6555f sleeplog: Fix to be able to switch logging as intended
Update lib.js
 - fix error in `setEnabled(...)` when logfile=false
Update settings.js
 - use correct value for settings.logfile
2022-02-14 09:10:26 +01:00
storm64 0ec1d57add sleeplog: Complete power saving mode + move all read/write log actions into lib.js
* Complete new power saving mode after tests
* Move all read/write log operations into lib/module
Update app.js
 - update `readLog(...)` call
Update boot.js
 - update maxmove default value
 - delete `log(..)`, merging into `writeLog(...)` from lib.js
 - replace all read/write actions to the logfile with `readLog(...)`/`writeLog(...)` from lib.js
 - add restoring the status after a restart (<5 min ago) to last known state
 - add deletion of unused settings on power saving mode
 - update log timestamp on power saving mode to always be 10min before now
Update ChangeLog
Update lib.js
 - update `readLog(...)`, prevent errors on reading, minimize workload if unfiltered
 - add `writeLog(...)` to append or replace log depending on input with plausibility checks on input
 - merging `log(...)` from boot.js into `writeLog(...)`
 - replace all read/write actions to the logfile with `readLog(...)`/`writeLog(...)`
Update metadata.json
 - update version number
 - add power saving mode to description
Update README.md
 - add power saving mode description
 - move sleeping/not worn decision description into its own section
 - add description for timestamp values to Logging section
 - update Global Object and Module Functions section
Update settings.js
 - update maxmove setting and default value
2022-02-13 20:54:26 +01:00
storm64 b8721fbdcf sleeplog: New power saving mode using build in movement detection
* New power saving mode using build in movement detection
Update app.js
 - add displaying powersaving status
Update boot.js
 - add power save mode
 - minimize fix #1425 to issue #1423
 - minimize wake/sleep decision
 - add checking for correct this reference
 - add checking for global object existence
 - remove unneeded global. prefix
Update lib.js
 - add powersaving setting to setEnabled()
 - fix missing logfile issue #1423 on all functions
 - remove check for changes in setEnabled(...) to always restart the service
Update settings.js
 - add settings powersaving and maxmove
 - add displaying settings depending on power saving mode
 - restart service when changing enabled, logfile and powersaving
2022-02-12 01:43:58 +01:00
storm64 02aeaff86b sleeplog: Add Sleep Log App
This app logs and displays the four following states:
_unknown, not worn, awake, sleeping_
It derived from the SleepPhaseAlarm and uses the accelerometer to estimate sleep and wake states with the principle of Estimation of Stationary Sleep-segments ([ESS](https://ubicomp.eti.uni-siegen.de/home/datasets/ichi14/index.html.en)) and the internal temperature to decide _sleeping_ or _not worn_ when the watch is resting.
2022-02-11 09:29:02 +01:00