Giter VIP home page Giter VIP logo

pebblewatch's People

Contributors

douwem avatar phistep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pebblewatch's Issues

`get_installed_apps` messes up string offsets

Running following code should show me my installed apps:

require "pebblewatch"
require 'pp'

watch = Pebble::Watch.new("4F92", "/dev/rfcomm0")

watch.connect
pp watch.get_installed_apps
watch.disconnect

prints:

{:banks_count=>8,
 :apps=>
  [{:id=>12,
    :index=>0,
    :name=>"Counter",
    :author=>"Ps0ke",
    :flags=>0,
    :version=>3956},
   {:id=>13,
    :index=>1,
    :name=>"MtG Life Points",
    :author=>"Ps0ke",
    :flags=>0,
    :version=>8392},
   {:id=>14,
    :index=>2,
    :name=>"Dotz",
    :author=>"Zalew",
    :flags=>1,
    :version=>42359},
   {:id=>15,
    :index=>3,
    :name=>"Noms",
    :author=>"Fuzzie",
    :flags=>1,
    :version=>3224},
   {:id=>16,
    :index=>4,
    :name=>"Nyan Watch",
    :author=>"Jeff Pitchell",
    :flags=>1,
    :version=>41153},
   {:id=>0,
    :index=>1347,
    :name=>
     "alendar\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00W",
    :author=>"illiam Heaton",
    :flags=>162,
    :version=>11776},
   {:id=>4608,
    :index=>1607,
    :name=>
     "low\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00d",
    :author=>"otar",
    :flags=>258,
    :version=>21504},
   {:id=>0,
    :index=>478821,
    :name=>
     "olog\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Ps",
    :author=>"0ke",
    :flags=>nil,
    :version=>1}]}

The first ones work well, but starting at ID 0 The Strings get all messed up. The app with ID 0 has the name Calendar, but the first char got lost somewhere. Instead the first char of the author field got at the end of the name field (William). As a result, the nullbytes did not get stripped. My guess is, that the offsets got wrong as you still read 32 byte.

Just for the record: ID 4608's name should be "Glow", the author "dotar" I guess. ID 0 (two identical IDs? Maybe something went wrong here, too?) should have the name "Neolog", and the author is me, "Ps0ke". We're two bytes off by now.

Mediabuttons do not work

I am getting no feedback on the media key events. Updating media metadata works just fine, but apart from that I was only able to receive the "Bluetooth discoverable" system message. I am using

% ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

on a Gentoo Linux and an rfcomm device.

My Pebble runs Firmware v1.12.1 and is a V2R2 Hardware. Any suggestions?

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.