Nostromo

Hardware

My old PC has survived for 10,5 years : mostly thanks to Linux and its low resource requirements. That is very impressive, but the box started to show its age : boot times up to two minutes, and a hard drive which performed sub-par. Time for a new machine : Intel i7 Skylake, SSD + 3TB HDD and 16GB of DDR4 RAM. Fast and furious.

I made the switch as well from Debian to Fedora : I must admit that I'm quite charmed by Fedora. Stable and on the bleeding edge side (my previous box was Debian Stable based, so your definition of "bleeding edge" may vary). Anyway, Fedora installed without a glitch, and the subsequent upgrade to Fedora24 was one of the fastest PC upgrades I experienced.

The machine is called Nostromo, to the spaceship in Alien. I guess I ran out of pronounceable Tolkien names, and didn't found any suitable Game of Thrones based names. Science-fiction to the rescue.

Spiro

Programming

Even more Pebble adventures ! Now that Skylines was thriving in the Pebble appstore, I decided to generate a watchface for the new Pebble Time, so I had something to show off when my Pebble Time will arrive in August. And what better app could I implement than some colorfull spirographs ?

It took quite a while to finish this : as I didn't had my Pebble Time yet, I had no real hardware to test the app, so I had to rely solely on the Pebble emulator on my computer. Eventually, I came up with a first version which I published on the appstore. However, soon, different people remarked that the app was slow and crash prone. Turned out the app used quite some sine/cosine functions which were the cause of all those slowdowns. Hard to believe that my 20 year old HP pocket calculator was more powerfull than a wearable with a modern ARM chipset !

So it was clear I couldn't use sine/cosine functions. Pebble had a workaround in the SDK with sin_lookup functions which use a precalculated table to come up with this. However, this was mostly oriented to create the movement of analogue watches, and the generated values didn't make any sense to me. So I quickly programmed my own co/sine lookup table, and used the default hypotrochoids equations. This worked a lot better & quicker, but this needed also a lot of iterations to come up with a decent spirograph. And in some cases, the spirograph turned into gibberish. More debugging revealed that this was to events coming in when the Pebble was generating the spirograph, like the flick_wrist_to_update option I added to the watchface.

So eventually, I turned to the default Pebble SDK co/sine_lookup functions, and implemented my own hypotrochoids equations with it. This time, all worked well without any glitches. The result is Spiro, a colorfull watchface for the Pebble Time, and the original Pebble (only in B&W off course)..

Skylines

Programming

Now that my Pebble NMBS app is wrapped up, I decided to have a look at the SDK2 for Pebble, and build a watchface for it. I didn't need to search long for some inspiration for a new watchface : on the Moto360, someone made clever use of the black horizontal bezel at the bottom of the screen, adding some scenery to it, as if it was some shadow (default was a man sitting on a bench in the park). So I took the skyline of Prague, converted it to B&W, and I got my first watchface, which I called Skylines.

The app has been extended currently with skylines up to 30 cities from all over the world. I also included a random mode, where the skyline changes every two hours. Just like you're on a world trip ! I also added a Night mode, where the screen inverts and a beautifull night sky appears between 8pm and 6am.

All in all, programming in C went quite well, considering I didn't touched C during the last 20 years. Only problem was the implementation of the configuration window, which was a bit of a hassle. Turned out I defined my app as SDK3 compatible, which seemed the cause of the errors.

Lenthe

Babies

My daughter Lenthe is now 3 months old, and our sleep habits are slowly returning to their normal hours. I'm used to a limited hours of sleep, but 4 hours was way too less for me !

Pebble NMBS app, version 0.3

Programming

I just build version 0.3 of my Pebble NMBS app, which is the real first beta. I added the station choice as user configuration items in this version. It took quite a while to figure out how to implement this, as the CloudPebble emulator seems not to have the support for testing this. Anyhow, the next steps are adding app metadata, such as official icons and a screen example. And I'll probably need to change its name before I can release this app on the Pebble appstore.

I also remarked that there is already an NMBS app on the appstore although in French. Seems that both apps have quite some similarities, although my app shows more info ;) Anyhow, I like some competition.

After the appstore release, time to dig into PebbleSDK 3.0, so the app will have Timeline support when I'll receive my Pebble Time Steel !

Edit : and it's live on the appstore !

Pages

Subscribe to Kristof.Willen.be RSS