Right now, I have the goal of remembering my dreams better. I've just started using the Zeo Mobile (paired with my iPhone) and I'm looking for a way to get to the data fairly close to realtime. It seems to me that the best approach I have for this is through getLatestSleepRecord, but I'm not certain that the behavior of Zeo Mobile works with this.
In poking around a bit, it seems to me that the Zeo Mobile works in two different fashions - if you phone locks, or the zeo app goes into the background your information is updated on the web all at one time when you're done (and possibly after you sync manually). However, if you keep the app active and don't have the phone lock, it appears that the information is fed "live" back to the website. (I have live in quotes, as I'm sure that it's not really live - if nothing else the samples seem to be every five minutes, so I imagine the data could potentially be five minutes old by the time it's sent up.)
Am I understanding the live updates properly? If it is, It should be a fairly simple matter of whipping up a powershell script (which I intend to share here) to pull down the latest sleep record and then extract the last state from there. If this record is regularly updated, I should be able to simply keep on pulling this record and look at my latest state so see roughly what state I'm in. Then I could use some basic alarm to wake me up once REM stops and allow me to record what I was dreaming about (or, at least make some notes that I can hopefully expand upon when I properly wake up later).
Thanks!
Bill
bil1138
Tue, 04/10/2012 - 05:31
Permalink
Hmm, nevermind
Sadly, I'd say I figured it out.
Before I told Zeo that I'd woken up this morning (actually, just about right now) I checked out the website. Nothing had been uploaded until I told the app that I'm done sleeping. Then it uploaded all the data from the night. So, it looks like there's no realtime for me (unless something gets added to the app).