User avatar
pathetic piss kitten @kitten@elizabeth.cat
9mo
people are like "no kink at chaos this is a hacking event", but tbh, the latest stuff I found motivation to hack on and build has very much been for kinky reasons
:blobbee_heart_purple@polycule.li:1:celeste_hearts_non_binary@mk.absturztau.be:1❤️2
4
12
43
4
User avatar
pathetic piss kitten @kitten@elizabeth.cat
9mo
anyway

my sleep tracker makes me: happy
:blobbee_heart_purple@polycule.li:1💚1
2
0
8
2
9mo
@kitten â€Ķi Am curious how it works neocat_book_owo
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
9mo
@vivi ​:blobcatgiggle:​

so, this is an app I developed in my smartwatch, running Android Wear OS. so, essentially an Android app.

this registers a callback on boot to what it's called the "Health Services API". that's essentially a black box for us, we can't see or influence what heuristics it uses to determine if I'm asleep or not, but I know part of them use the accelerometer (since it doesn't work if I'm moving, like when sleeping in a night train), and I suspect the microphone too. so yeah, we register that callback requesting updates on what they call "user activity", and every time I wake up or fall asleep that gets an event saying which one is it, and a timestamp (they can sometimes be delayed).

I pack all that and send it through an MQTT queue, which is received in my server by one of those "workflow programming" kind of applications, like node-red. run some deduplication logic, save the event in a database, and publish an update here
1
2
9
0

9mo
@kitten awesome!!
0
0
1
0