Code Monkey home page Code Monkey logo

fitbridge's Introduction

Hi there ๐Ÿ‘‹

Mostly Cyber Security, a bit of coding. Interested in C, Rust, Python, low-level stuff and network. You can read my blog here: https://moh53n.medium.com/

fitbridge's People

Contributors

moh53n avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

fitbridge's Issues

Bad Request Error on running the script.

Hello, Sorry to raise an issue again, even though you gave up the device, I was hoping you might help me out with the following error:

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/FitBridge", line 8, in
sys.exit(main())
^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/FitBridge/main.py", line 287, in main
credentials = auth(conf_dir)
^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/FitBridge/main.py", line 132, in auth
credentials.refresh(Request())
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/google/oauth2/credentials.py", line 430, in refresh
) = reauth.refresh_grant(
^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/google/oauth2/reauth.py", line 365, in refresh_grant
_client._handle_error_response(response_data, retryable_error)
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/google/oauth2/_client.py", line 72, in _handle_error_response
raise exceptions.RefreshError(
google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'})

It shows up when running FitBridge command. I uninstalled and reinstalled the module but after reinstalling, instead of the initial setup, it shows the above error again.

Thank you for your help.

Support Other Devices

Currently, we only support MI Band Data, It's good to support other devices supported by GadgetBridge.

Add Sleep Data

The raw data exported in GadgetBridge can be used to track and record sleep data, but GadgetBridge sleep data analysis is wrong; we have to figure out how to process sleep data correctly.

Data Insertion Failed Error

When running the script after setting it up, it give the following output:

`Steps: Read 689 Rows
The dataset insertion failed: 400 Bad Request {
"error": {
"code": 400,
"message": "DataPoint out of range: com.google.step_count.delta [2024-02-10T05:09:00Z - 2024-02-10T05:09:10Z] [114] derived:com.google.step_count.delta:1013459681698:FitBridge:FitBridge:1:FitBridgge",
"errors": [
{
"message": "DataPoint out of range: com.google.step_count.delta [2024-02-10T05:09:00Z - 2024-02-10T05:09:10Z] [114] derived:com.google.step_count.delta:1013459681698:FitBridge:FitBridge:1:FitBridgge",
"domain": "global",
"reason": "invalidArgument"
}
],
"status": "INVALID_ARGUMENT"
}
}

Steps: The latest timestamp inserted is 1707857050
Heart Rate: Read 0 Rows`

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.