GithubHelp home page GithubHelp logo

thiswillbeyourgithub / sleep_tracker_pinetime_wasp-os Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 2.0 924 KB

SleepTk: sleep tracker with smart alarm for the pinetime on wasp-os

License: GNU General Public License v3.0

Python 100.00%

sleep_tracker_pinetime_wasp-os's People

Contributors

agittins avatar thiswillbeyourgithub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

agittins merenlin

sleep_tracker_pinetime_wasp-os's Issues

[Request] Wasp-os build with apps

Hey there!

Really love the Sleep Tracking app that you developed and how standalone it is. However, I'm stuck at building Wasp-os from the source code and would like to request if you could please share your build that includes the Sleep Tracker app that can be uploaded OTA to the PineTime (bootloader.zip & micropython.zip)? Maybe you could upload a build of your daily driver Wasp-os repository (if it contains SleepTk.py) would be great as it also seems to have some useful apps installed.

Thanks and apologies for the dummy request!

Trace back error AttributeError: 'Manager' object has no attribute

I have SleepTk installed on a Pinetime using your updated instructions. I'm trying again after giving up on previous past attempts.

I'm getting a traceback error "AttributeError: 'Manager' object has no attribute" when launching the icon.

At the terminal I run this:

pi@raspberrypi:~/wasp-os/wasp/apps $ python -tt SleepTk.py
File "SleepTk.py", line 17
SyntaxError: Non-ASCII character '\xc3' in file SleepTk.py on line 18, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Not sure if this is even related to the traceback but could be a code encoding declaration per python...IDK? I might take a stab at trying to workaround this so I'll let you know if I find anything on my end.

Gary

Observations

There are some good observations of the data points in both the Motion and BPM data captures. If you take into account the position you are in when you go to sleep, you can tell by the high/low xyz readings what side you are sleeping on. More so you can derive what side you're getting the most sleep on and the side you body seems to prefer. Using a Infinitime accelerator meter I determined that my bed/body were in the "Y" axis position.

For BPM I noticed some higher BPM readings in REM that could indicate a heighten dream event.

Some interesting observations that I could never derive from other sleep trackers.
Cheers,
Gary

Sleep_data

IMG_5591

Screen repeatedly redrawing

Running tracking on pinetime, after attemping first hr reading, screen continuously redraws. Can't stop tracking since screen redraws over confirmation dialogue.

VID_20220713_140453.mp4

Installation with A La carte system

I'd like to try the SleepTk app, but I'm having out of memory issues. The filesystem has been changed since the merge of A La carte. - Do you have some ideas on how to install with these filesystem changes?

Thanks

Cannot find the UI

No UI found for new build of SleepTK.py, make was successful and DFU'd the micropython.zip. I'm on the latest fork or pretty close: "v0.4-114-gaf59556"

SleepTK.py must be running because I had to take another app out of memory "main.py" because I was getting low memory messages after loading the new build.

Workaround for: firmware.elf section `.text' will not fit in region `FLASH_TEXT' error

I found when trying to build the micropython.zip for SleepTk that I was getting a makefile error, .text' will not fit in region FLASH_TEXT'.

The workaround was to delete applications that are not needed to free up space, so I:

Deleted 5 apps (.py) files from wasp/apps that weren't needed.
Commented out those apps from the wasp/boards manifest_240x240.py
Commented out those apps in the wasp/apps software.py
Re-ran ./tools/ota-dfu/dfu.py -z build-pinetime/micropython.zip -a XX:XX:XX:XX:XX:XX --legacy

I think WASP-OS's memory is near or at capacity and more folks will run into this error. In fact I will probably write a PR to WASP-OS and update their documentation...basically how to do a custom build.
Gary

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.