Giter Club home page Giter Club logo

pebble-odl's Introduction

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

pebble-odl's People

Contributors

brianrowe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.