Pebble Watch Face – Crack in Time

Haven’t done anymore work on my ISY app. However, after creating a watch face via a generator, and then discovering that the date wasn’t updating, I decided to take a stab at building a watch face from the ground up.

download (1)

If you have a pebble, and would like to install it, details can be found here:
Doctor Who - Crack in Time is available on the Pebble appstore

If you have a pebble, whether you install it or not, I’d appreciate it if you’d at least “heart” it.

Source code:
https://github.com/chasepeeler/pebble_crack_in_time

Pebble Watch App – Stage 2

My original plan for stage 2 was to pull in a list of all devices, and offer a menu so the user can select which device to manage. The script would never receive the list response when I would try to get all of the devices. My only guess is, that due to the large amount of data contained in the response, the watch just doesn’t have the memory to support it.

So, I switched paths. First, I created a configuration page that could be used to specify the server, username, password, and the ID of a single device.

IMG_1368

I then updated the watch app to store the items specified in the configuration, and, if any of them were blank, to display “Configuration Needed.” Once configured, the watch would query for the NAME and status of the specified device.

bathroom_ui

Here is the XML data that is returned when you query the device. You can see the node address, name, and status property.

bathroom_xml

If you update the settings, and provide a different device id, the watch will immediately update the device name and status.

IMG_1369pebble_isy_1lamp_xml

Code after changes for this stage: https://github.com/chasepeeler/isy/tree/Stage2

Stage 3 is going to be expanding the configuration screen so you can define more than one device, and then having the watch give the user a menu so they can select a device, before being taken the screens above. I also need to make a few changes to support some other device address formats.

Stage 4 is going to be adding support for controlling 3+ state devices. Most of my devices can either be on or off, but I do have two fans (High/Medium/Low/Off) and a chandelier that is on a dimmer.

Pebble Watch App – Stage 1

I’m building a watch app for my pebble that I can use to control my lights. I already have all of the home automation setup, using an ISY994i Home Automation Controller. It offers a REST interface that can be used to interact with the system.

In this first stage, I was mainly learning the framework, so pretty much everything was hard-coded in. You could only control one device, the server, username, password, and device were all set in the code. The only thing that was really dynamic, was the status that would change between “On” and “Off”.

But, I got it working!

pebble_isy_1

You can see the code at this point in the process here: https://github.com/chasepeeler/isy/tree/Stage1