Git Product home page Git Product logo

coolcodersj / hcgateway Goto Github PK

View Code? Open in Web Editor NEW
71.0 5.0 11.0 47.12 MB

A universal REST API for apps like Google Fit, Fitbit, Samsung Health, and more utilizing the Android Health Connect API.

Home Page: https://hcgateway.shuchir.dev/

Python 14.22% JavaScript 19.29% Ruby 3.34% Starlark 1.24% Java 32.19% CMake 0.56% C++ 15.05% Objective-C 4.93% Objective-C++ 9.17%
android fitbit google-fit healthconnect rest-api samsung-health

hcgateway's Introduction

Hi there!

Personal website - https://shuchir.dev

Photography Portfolio - https://photography.shuchir.dev

Languages I know-

  • Python
  • JS

Stuff I can do-

  • React Native (mobile applications)
  • Flask (web applications)
  • Web.py (web applications)
  • Typer (CLI applications)
  • Serverless application deployments

CSS thingies I know how to use-

  • Bootstrap
  • Bulma
  • Plain css
  • Material.io

Code editors I've used before-

  • Replit
  • Github Codespaces
  • Visual Studio Code
  • Atom
  • Sublime Text

hcgateway's People

Contributors

coolcodersj 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

Watchers

 avatar  avatar  avatar  avatar  avatar

hcgateway's Issues

Missing data

Great project first of all, wanted some kind of API so I could easily extract exercise data to analyse in python. I am able to extract all exercise data and they do indeed display times at which I performed exercises, but the exact details of the exercises are missing. Take swimming exercise for example (74 is the number for swimming), it does not display the statistics of each lap swum such as the time it took, amount of strokes etc.

I might think this error may be beyond your project as this data can also not be seen in HealthConnect (since your app retrieves data from it, it probably won't be able to display data which is not given by HC).

Example return exerciseSession object:
{
"$collectionId": "exerciseSession",
"$createdAt": "2023-11-08T11:06:19.659+00:00",
"$databaseId": "XXXXX",
"$id": "255a6937-79df-45c3-906d-3a9562536558",
"$permissions": [],
"$updatedAt": "2023-11-14T21:20:29.180+00:00",
"app": "com.sec.android.app.shealth",
"data": {
"exerciseRoute": {},
"exerciseType": 74,
"laps": [],
"notes": null,
"segments": [],
"title": null
}

I am having an issue with build and running the apk

I tried many times and it gives the same error

> [email protected] android
> react-native run-android

info Starting JS server...
info Installing the app...

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'D:\HCGateway\app\android\settings.gradle' (C:\Users\shree\.gradle\caches\7.5.1\scripts\51n967gkkf0rk9vrfb37h9dep).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'D:\HCGateway\app\android\settings.gradle' (C:\Users\shree\.gradle\caches\7.5.1\scripts\51n967gkkf0rk9vrfb37h9dep).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s

    at makeError (D:\HCGateway\app\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
    at D:\HCGateway\app\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runOnAllDevices (D:\HCGateway\app\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
    at async Command.handleAction (D:\HCGateway\app\node_modules\@react-native-community\cli\build\index.js:142:9)
info Run CLI with --verbose flag for more details.

Would love to help you

Hi Shuchir, I was looking for something like this and found that you're working on this. I'd love to help you out in any way possible. I have limited experience with android/mobile dev but have good experience with the backend.

Let me know if we can collaborate in any way :)

Feature Request: Set api server url on login page

Thank you for this project. I've been trying to find a easy way to get access to my health connect data and your project seems like the only viable option until Google implements a API of their own.

An idea that might help beginners, it would be useful if the default apk had a field on the login page to specify the url to the API server.

It would allow users to avoid rebuilding the apk to use self hosted servers.

Not requesting permissions for READ to Health Connect properly

Seems like at some point the app stopped syncing to the server. Investigated the app in debug mode, it seems like it doesn't have adequate permissions but isn't trying to request them either. Creating issue to come back to later and for tracking.

Can't Create Login

I've downloaded the app and installed it however. When putting in a username and password it just shows a dialogue with just a 'DISMISS' button. Any advice as to how to proceed?

API returns 404 on use

Hello, for some reason logging in returns 404 and I think I made an account, but im not sure because the app just showed a blank dialog with a dismiss button. Im not sure if it was successful or not because of this, I also noticed just simply typing your api url into a web browser shows "further configuration is required"
Screenshot 2024-03-04 at 11 01 47 PM
Here is what I got while testing with curl:
Screenshot 2024-03-04 at 11 02 58 PM

Is there any solution or is this a bug?

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.