Skip to content
This repository was archived by the owner on Jun 4, 2019. It is now read-only.

brianrowe/Pebble-ODL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Device Lab Locator App for the Pebble Watch

Overview

This app is nothing fancy, but gave me a chance to play with pebble.js

When I learned about the pebble.js framework I wanted to check it out and give it a try. I operate the Fort Wayne Indiana - Open Device Lab and thought a Device Lab locator would be a great project to use as a test.

The Directory of Open Device Labs is maintained by 'The Open Device Lab' http://opendevicelab.com/ and they provide a API to list the registered labs.

The API provided a great starting point, but did not allow me to list Labs based on GEO distance from a LAT/LNG location. My solution was to create a CRON-JOB to clone the lab directory on a nightly basis to a MySQL database. This allowed me to list the labs based on GEO distance and manipulate the data how ever I needed to.

Files

  • appinfo.json (pebble app config)

  • /dist

    • ODL_Locator.pbw (the compliled pebble app)
  • README.md (this doccument)

  • /resources

    • /images (supporting images for the app)
  • /src

    • app.js (the main code for the pebble app)
  • /web

    • db.php (MySQL Database Connection Script)
    • index.php (PHP file that handles the data import, lab listing and lab detail screens for the app)
    • odl.sql (MySQL data/structure dump)
    • settings.html (Settings screen for the app, viewed inside the Pebble Mobile App on your Cell Phone - Select Miles or Kilometers as unit of distance)

Pebble.js

At JsConf 2014 Pebble announced the pebble.js framework for creating apps for the Pebble Watch using JavaScript. The pebble.js framework is currently still in BETA.

Links

About

Open Device Lab Locator App for the Pebble Watch

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors