JunjieZhou
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # GSoC Proposal for Fitbit Web API Subscription and Nutrition API Extension ## 1.Personal Background - Contributor full name: Junjie Zhou - Email: Junjie_Zhou@hotmail.com - Link to profile: https://github.com/jzhou59 ## 2.Relevant Skills and Interest ### 2.1 Educational Background - M.Sc | Southeast University | Computer Science | 2019 - 2022 - I am pursing my master degree in Southeast University, researching in privacy protection. - B.Sc | Changshu Institute of Technology | Internet of Things | 2014 - 2018 - I got my bachelor degree from CIT where I started getting to know computer and programming. ### 2.2 Relevant Experience - SDE @ Honor Terminal Co., Ltd. | Aug 2021 - Oct 2021 - I worked as a software development engineer intern here. I was in responsible for 1)Java development based on micro-services framework, 2)Middle ware integration such as Kafka, Redis, and MongoDB etc. ### 2.3 Prior Open Source Contribution - Apache/incubator-eventmesh | Jul 2021 - Now - Responsibilities: - Survey the integration of schema registry in other middlewares, such as EMQ/Pulsar/Kafka. - Design architecture of integrating OpenSchema into Eventmesh. - Implement a standalone service as OpenSchema server. - Implement integration of OpenSchema in the form of SPI plugin. ### 2.4 Link to Code Sample in The Related Technology or Area - My Public Repo - https://github.com/jzhou59?tab=repositories - I am contributing on several public repositories, most of which are Java-related. ## 3 Project Proposal The RADAR-REST-Connector contains a Kafka Connect source connector for a general REST API, and one for Fitbit in particular. This allows for pulling the wearable data from Fitbit servers using their Web API. ### 3.1 Project Goal There are following three general goals I am going to accomplish at least: - Update current Web API(heart-rate-related and sleep related) requests. - Add another Web API(nutrition) request for Kafka. - Integrate a Fitbit subscription API to RADAR-REST-Connector so that it can retrieve data when necessary. ### 3.2 Requirement Analysis Requirements for three goals are analyzed separately: - First, for current connector, there might be lacking of collecting some data inside some web requests since those data were added lately by Fitbit. However, those data should be collected aiming at providing a more comprehensive platform. So such API should be modified to catch up Fitbit's updating. (Relating to issue https://github.com/RADAR-base/RADAR-REST-Connector/issues/89) - Second, for the newly added Fitbit service, Kafka-connector has not supported that, especially the nutrition service of Fitbit. Therefore, a new request, along with the parsing of response data, should be added into Kafka-connector so that the source connector could retrieve the nutrition-related data.(Relating to issue https://github.com/RADAR-base/RADAR-REST-Connector/issues/91) - Third, currently, the implementation of Kafka-connector is PULL-based, namely it makes requests chronologically without any knowledge of presence of data on Fitbit's servers. This however is very passive in interaction with Fitbit. So there is a need for implementing the Fitbit Subscriptions API (a PUSH based mechanism). In this case, the Fitbit API will send a notification informing there is new data available. On receiving this notification, Kakfa-connector can make request for the specific data provided in the notification hence mitigating the issue stated above.(Relating to issue https://github.com/RADAR-base/RADAR-REST-Connector/issues/88) ### 3.3 Project Plan I will introduce the project plan from two aspects: my current understanding of the project code and things I have done until now. #### 3.3.1 Understanding about project In general, ```RADAR-REST-Connector``` is a project for collecting data from upstream data providers, such as the Fitbit which have been currently supported. Without running as a separated server, it utilizes the most of ```Kafka Connect``` through creating SourceConnectors to pull data from third-party servers. To be specific, two modules are currently in the project: ```kafka-connect-rest-source``` and ```kafka-connect-fitbit-source```. The module ```kafka-connect-rest-source``` could be viewed as a general module that defines the abstract interfaces when collecting data from third-parties server. The module ```kafka-connect-fitbit-source``` could be viewed as one specific implementation of the general module. When later comes another third-party data providers, creating a new module is good to go. In the following development, updating existed api and adding new api are mainly coding inside the ```kafka-connect-fitbit-source```, and integrating subscription may need re-organizing codes insides both ```kafka-connect-rest-source``` and ```kafka-connect-fitbit-source```. #### 3.3.2 Things have done For updating current API: schema and logic code shoule be modified. And **I have updated such logic code with newly generated schema classes, together with some other configurations and route logic**(https://github.com/RADAR-base/RADAR-REST-Connector/pull/92). ![pr](https://s1.ax1x.com/2022/04/15/LGBUM9.png) For adding Nutrition's API, I have surveyed the official documentation and arraged the procudure to develop it which is reflected in below timeline. For Fitbit subscription integrating, I have checked the official documentation and knew how it is working. The newly data flow after integrating subscription in Kafka-connector is just like the following figure. ![Dataflow in RADAR-Kafka-Connector](https://s1.ax1x.com/2022/04/11/LZVhHx.png) ### 3.4 Availability - Expected working hours on GSoC 2022: 350-hour(full hour), UTC +08:00, 5hrs/workday night - Other commitments: 1)may spare time for dissertation, 2)may work late. These two commitments may take up the time. However, it will not be common and if some day is taken up I will extend the time on this project the next day. ### 3.6 Reason for the choice I would like to split the reason for the choice into two parts: RADAR-base and the project. As I can know from the RADAR-base official website, the mission which is to improve people’s quality of life by leveraging clinical value from wearable sensor data and smartphones inspires me to contribute to it. Many people have been suffering from different kinds of health issues and I believe RADAR-base is trying it best to help such issues to be addressed. And I choose the kafka connect related project from the idea list mainly in three reasons. First, I am interested in cloud native and backend development so I am willing to contribute myself into it. Second, I have the background of relevant development which enpowers me of the ability to accomplish it well. Third, the project needs continuously updation as long as upstream providers update the protocol and I would like to contribute to it in the long term. ### 3.5 Timeline Below it the timeline. | Period | Activity | | --- | --- | | May 20 - June 12 | Community Bonding Period: Meeting mentors and discuss the specific implementation plan.| | code actually begins | | | 1st week(June 13 - June 19) | This week, I will focus on implementing the code of updating existed APIs.| |2nd week(June 20 - June 26) | This week, I will focus on writing the unit test of updated API based on JUnit.| |3rd week(June 27 - July 3) |This week, I will focus on documenting the API related functions/protocols in the README(or other place such as wiki page).| |4th week(July 4 - July 10) | This week, I will focus on designing nutrition-related requests, mainly about calssifying related requests(nutrition has many api in its official websites) and designing the route policy for each classification.| |5th week(July 11 - July 17) | This week, I will focus on implementing the code of nutrition-related requests API.| |6th week(July 18 - July 24)| This week, I will focus on writing the unit test of newly added content based on JUnit.| |7th week(July 25 - July 31) | This week, I will focus on submitting phase 1 evaluation of GSoC.| |8th week(August 1 - August 7) | This week, I will focus on documenting the nutrition-related functions/protocols inside the README(or other place such as wiki page).| |9th week(August 8 - August 14) | This week, I will focus on designing the way of implementing Fitbit subscription integration.| |10th week(August 15 - August 21) | This week, I will focus on implementing the project code of subscription integration.| |11th week(August 22 - August 28) | This week, I will focus on writing the unit test of subscription-related codes.| |12th week(August 29 - September 4) | This week, I will focus on documenting how the subscription is working in the README(or other place such as wiki page).| |13th week(September 5 - September 11)| This week, I will focus on submitting phase 2 evaluation of GSoC.|

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully