Tag Archive: iOS 8

Sleep Widget

Sleep Widget is a simple app that helps you track your sleep habit using HealthKit.

All you have to do is enable the widget function of the app in the today view (that’s when you swipe down on the home screen). When you go to bed, press the “Start” button.

Sleep. Zzz.

When you  wake up, press the “Stop” button.

(null)

And for the last part, adjust the fall in sleep time & press save to HealthKit.

Something new :)

IMG_0002.JPG

So I bought something new today. What could it be…

A new MacBook Pro 13 Retina. I still ask myself the question: Why? Do you need it? It’s a big purchase and to be honest money is tight. But then my iMac (current main working station is running slower by the day) is having trouble running X-code. And with the new iPhone 6 plus screen size….certainly not an optimum viewing experience when I try to code something using story board. So that my cognitive resonance talking and convincing me to buy a new MacBook Pro.

Any how my first impression is wow…. love the Retina display. Old iMac is 21 inch from 2000. So certainly a big improvement. Currently typing this blog on the MacBook and the keyboard is also nice. Backlight on the keyboard…is again… impressed. I wonder where the light sensor is. Will it be on all the time or is there a time out thing? Have to look into that.

So next to this also an update and a new years resolution: that’s to write more in this blog. But the question is how often? Every day seems a bit to much to be honest. And knowing me….not achievable. And also don’t want to spam the blog post with content about who knows what. In the end I decided to do a weekly post. This is doable. One post a week. 4 post a month. 52 post a year. The next thing…is set a day? No that’s setting a deadline and more pressure (or something like it). A random day in the week then.

What now? What to write now? I’ve worked and a small sleep widget app using the HealthKit. Submitted it last week. So I should hear something from Apple this week. Wether it’s approved or not. I had to do a privacy thing and I don’t know if I did it right or not. The main thing about the app was recording the sleep time and writing it into Healthkit. The app itself doesn’t store any data. So a simple privacy policy in one sentence. I wonder if it would be accepted.

The new HealthKit api is kinda amazing. Certainly lots of new and interesting things that you can do with it. One idea is that I would integrate Vitamin 101 with it. So somewhere in the future I’ll be adding a small data entry tool that enable the user to add all the vitamins and mineral info of their food item consumption to it. With the last Vitamin 101 I kinda reworked the whole food data base under the hood. So it should be doable.

That’s all I guess for now. Writing my thoughts down. It’s kinda weird. I do have a dairy app (Day One). But that’s more personal stuff and more free flowing thoughts. Writing a blog is different.