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).