定制 troussos/basis-data-export 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

troussos/basis-data-export

Composer 安装命令:

composer require troussos/basis-data-export

包简介

Simple data exporter for the My Basis activity tracking watch

README 文档

README

Utility that exports and saves your Basis B1 device's uploaded sensor data. You can learn more about Basis at http://www.mybasis.com/

This project is a fork of basis-data-export.

Much of the documentation on how to use the library comes in the form of PHPDoc comments and through the demo app. To test out pulling data with the demo app, subsitute your My Basis ID for the '1' that can be found on line 10. From there, you can dump out the $parsedData variable or use it for other data processing. This should give a loose idea as to how the library works and how to use it.

Instructions

Finding Your Basis User ID

  • Log into your Basis account at http://www.mybasis.com.
  • Right-click and access your web browser's developer tools by selecting "Inspect Element" (on Chrome - you can also access this by going to the "View->Developer->Developer Tools" menu):

basis export step 1

  • You should now see the Developer Tools pane:

basis export step 2

  • Go to the "Data" menu and select "Details":

basis export step 3

  • Click on the "Network" tab in the Developer Tools frame and reload the page:

basis export step 4

Scroll down the list of network requests and look for a request that beings with: "https://app.mybasis.com/api/v1/chart/123a4567b89012345678d9e.json?summary=true..."

The letters after "...chart/" and preceding ".json?..." are your Basis user id! Note this string.

Data Values

Basis currently returns the following data points. They will represent an average (for heart rate) or sum (steps) over the previous 1-minute period:

  • Time - time reading was taken
  • Heart Rate - beats per minute
  • Steps - number of steps taken
  • Calories - number of calories burned
  • GSR - Galvanic skin response (i.e., sweat/skin conductivity. Learn more about GSR here - http://en.wikipedia.org/wiki/Skin_conductance
  • Skin Temperature - skin temperature (degrees F)
  • Air Temperature - air temperatute (degrees F)

There are some other aggregate metrics included in the reponse such as min/max/average/standard deviation metrics for each set of data.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 59
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2013-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固