jawbone

Problems in JSON results calling JAWBONE API

别来无恙 提交于 2020-01-05 08:06:29
问题 I'm developing an Android app to analyze the UP Band data. Using the example given in the UP SDK for Android , at the moment I can get the trend data as a JSON object. The problem is that this JSON object is malformed. In fact when I try to deserialize the Trend data with: JsonElement je = new JsonParser().parse(o.toString()); I get the following error: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected value at line ... Moreover, inspecting the

Problems in JSON results calling JAWBONE API

柔情痞子 提交于 2020-01-05 08:06:15
问题 I'm developing an Android app to analyze the UP Band data. Using the example given in the UP SDK for Android , at the moment I can get the trend data as a JSON object. The problem is that this JSON object is malformed. In fact when I try to deserialize the Trend data with: JsonElement je = new JsonParser().parse(o.toString()); I get the following error: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected value at line ... Moreover, inspecting the

Extracting accelerometer data from Microsoft Band

这一生的挚爱 提交于 2019-12-24 13:37:55
问题 I am trying to do an analysis of data from various fitness tracker devices and i need to extract the accelerometer data from microsoft band jaw bone and Basis Peak for this. I know they have the analyzed data in their app, so the data must be somewhere on my phone, but how do i access it? Does someone know how can i do this? 回答1: Jawbone does not provide a way to access the raw accelerometer data. However, you can programmatically access the events (e.g., steps, sleep, heartrate) generated

UP3 (jawbone) how to retrieve sleep value in REALTIME

故事扮演 提交于 2019-12-20 05:28:38
问题 I am trying to retrieve my sleep data in REAL TIME. I cannot find how to achieve it from docs: UP Platform Android SDK P.S. : I am willing to conduct sleep experiment that requires getting an event when I reach e.g. paradoxal sleep phase. Thanks! 回答1: Using the UP APIs, the closest you can get to real time updates is to have your application register for PubSub event notifications for sleep events: There are two limitations that will keep these event notifications from occurring exactly in

How can I get deep and REM sleep data from the Jawbone UP API?

江枫思渺然 提交于 2019-12-13 06:13:41
问题 When I hit the sleeps endpoint, I don't see any value returned for deep sleep. I sent this request: https://jawbone.com/nudge/api/v.1.1/users/@me/sleeps?date=20160525 And this is the response I received: {u'data': {u'items': [{u'date': 20160525, u'details': {u'asleep_time': 1464152838, u'awake': 2284, u'awake_time': 1464183066, u'awakenings': 1, u'body': u'', u'duration': 30828, u'light': 14661, u'mind': 0, u'quality': u'', u'rem': 11265, u'smart_alarm_fire': u'', u'sound': 2618, u'sunrise':

How to PUSH a vibration event on Jawbone UP3?

不羁的心 提交于 2019-12-12 02:31:12
问题 I am willing to be able to make my UP3 vibrate at will. I cannot find in the API documentation how to achieve it. A workaround that comes to my mind is eventually adding a task schedule from the apps for the minute after, well, a nicer solution might exist. Thanks! 回答1: The Developer APIs for UP do not expose a way to trigger band vibration. There are several reasons to keep this feature private. Here are a few examples: Band vibration can reduce battery life if triggered too frequently. App

NPM Grant OAuth Middleware “invalid_redirect” error

痴心易碎 提交于 2019-12-12 01:37:15
问题 I have been trying to use this elegant looking package to authenticate with Jawbone API. But I keep getting this error - I have configured my "app" with the Jawbone API service to use these Redirect URIs - My config file looks like this - module.exports = { 'server': { 'protocol' : 'https', 'host' : 'localhost', 'port' : 5000, 'callback' : '/done', 'transport' : 'session', 'state' : true }, 'jawbone' : { 'key' : '6f*********', 'secret' : '9b************************', 'callback' : '/connect

Jawbone JavaScript and Resting Heart Rate data

北城以北 提交于 2019-12-11 18:37:57
问题 I am trying to pull resting heart rate data from the jawbone server via javascript/node.js. I keep getting can not read property get. This is the part of my code that causes the error. It seems I do not have the correct naming convention to receiver resting heart rate up.heartrates.get({}, function(err, body) { if (err) { console.log('Error receiving Jawbone UP data'); } else { jawboneDataheart = JSON.parse(body).data; for (i = 0; i < jawboneDataheart.items.length; i++) { date =

How to resolve “Error(s): Please enter a valid format for ”Select“.” when creating a Jawbone UP app?

你离开我真会死。 提交于 2019-12-11 01:16:53
问题 When trying to create my application in the Jawbone developer portal, I get the following error message: I googled the error message and found this blog post, which says the issue is that my logo is too large. However, my image is under 4k, and the upload itself seems to succeed. The failure only appears after trying to save the application. 回答1: Dug into the developer portal code on this one (I am re-posting this question here after receiving an email about it), and it appears that the check

Jawbone UP API oAuth and Access Tokens

旧时模样 提交于 2019-12-07 17:58:28
问题 I have started digging into Jawbone's UP API today and everything seems to go fine throughout the authentication process. The problem is that, once I get an access token back, it's always the same token, it doesn't work in any of my requests, and I can't change it with the refresh_token endpoint. oAuth setup: $url_params = array( 'response_type' => 'code', 'client_id' => CLIENT_ID, 'scope' => array('basic_read', 'extended_read', 'move_read'), 'redirect_uri' => 'https://my-site.com/up_auth.php