PTubeStatus: TFL Status on Your Wrist

I had an idea a couple of days ago while I was casting around for a way to make use of the promising abilities offered by the new PebbleJS feature of Pebble SDK 2.0. It essentially cuts out the ‘man in the middle’ apps needed for communication with the web, which can limit the audience if the developer (such as myself!) is only familiar with one platform, such as Android.

The idea I came up with was this: On the Transport for London website (tfl.gov.uk), there is an HTML table that details the line status of all the different Underground lines. On a good business day these will all show ‘Good service’, and on a bad day/weekend a lot will show ‘Part closure’ or ‘Planned closure’. Wouldn’t it be great if this information was more readily available to a commuter or tourist if they happened to be equipped with a Pebble watch?

So that is what I set out to do, and with a little bit of JS wisdom, the result is PTubeStatus!

mockup2 The major challenges were parsing the data and sending all these strings over app message without causing buffer overflows or APP_MSG_BUSY errors. The solution was to chain the messages sent to the watch so that when one was ack’d, the next set of data was sent. When the second set was sent, the JavaScript signaled the watch to load it into a MenuLayer and show it.

You can download the app to try it for yourself from mypebblefaces, and if you find it useful and fancy making a donation, you can do so by purchasing the installer app for Android from Google Play, which I will update to let you know that the watch app also needs updating!

As usual, any feedback and bug reports are most welcome, and I will respond to each of them.

Enjoy!

Advertisements
2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: