Coder Social home page Coder Social logo

Do you need help? about fitnessmachine HOT 15 CLOSED

qhga avatar qhga commented on August 11, 2024
Do you need help?

from fitnessmachine.

Comments (15)

hughesjs avatar hughesjs commented on August 11, 2024 1

I'll build an APK later today and set up a 0.1 release. Those errors look more like toolchain issues than app issues.

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024 1

I've just checked, I actually have the same model as you, so all should be fine

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

I will happily accept any help going mate. Have you got a Mac/iPad (not sure if the app is on Android)? If so, could you use nRF Connect to hit your treadmill with the commands detailed in the protocol readme and see if it lines up, both in terms of the commands and the ATT UUIDs. If it does that'll be a lot easier than needing an adapter for every model, but it'd be good to know up-front.

Could you please get two separate traces with the following:

  • (Not walking on it) Start, Increment up to full speed with a second or so between each, decrement down to minimum speed, stop
  • (While Walking on it) Start, Increment up to 3kmh, let it run to 1 minute, stop (make note of the calories, steps, exact time, etc)

Then if you could please open up a PR to put them in the protocols folder in a subfolder for your model I'd really appreciate that. If they're not consistent with mine, I might write up some docs on how to contribute a trace and we can formalise that procedure.

I'm planning on starting work with a PoC app this weekend then plan on moving on to a more fully functional app, probably using MAUI but maybe Flutter. Open to different ideas if you are though?

Also, if you do want to be more heavily involved, we can talk about adding you as a maintainer when things get going :)

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

You might be interested to know I now have a demo app that can start, stop, and increment the speed. #3

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

@qhga - Could you please try the proof of concept app I just merged to confirm what's in your PR? It's MAUI so should "just work" cross platform, but I've only tested it on iOS.

from fitnessmachine.

qhga avatar qhga commented on August 11, 2024

@hughesjs I tried to build it on my system (NixOS) which has some problems to use local workloads (maui-android) so I now try to build it inside an Ubuntu Docker container which... might also fail (I never used C#). So if it is possible that you provide me with an .apk I can try it out with my model.

from fitnessmachine.

qhga avatar qhga commented on August 11, 2024

Wait, got it working inside the container. Trying it now!

from fitnessmachine.

qhga avatar qhga commented on August 11, 2024

The app does not seem to work properly. But I found this potential maui bug while trying to debug the app via adb and because I also removed the ios/mac lines from the csproj file since I got this error it could be the same problem as suspected in the discussion:

/opt/bitnami/dotnet-sdk/bin/sdk/8.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1178: The project depends on the following workload packs that do not exist in any of the workloads available in this installation: Microsoft.ios.Sdk.net7 [/app/EqiPoc.csproj::TargetFramework=net7.0-ios]
/opt/bitnami/dotnet-sdk/bin/sdk/8.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1178: You may need to build the project on another operating system or architecture, or update the .NET SDK. [/app/EqiPoc.csproj::TargetFramework=net7.0-ios]

Could also be the android sdk version I used, idk... Also not familiar with android development. (I used build-tools & platform android-33 - since I use Android 13)

I am out of ideas for now and cannot debug more right now. I might be able to spend some more hours on Sunday. Hope I could help. I also added the Dockerfile which I used to build the app to my fork/branch if you want to investigate further.

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

https://github.com/hughesjs/OpenEQiSports/releases/tag/v0.0.1 <--- Try that

from fitnessmachine.

qhga avatar qhga commented on August 11, 2024

https://github.com/hughesjs/OpenEQiSports/releases/tag/v0.0.1 <--- Try that

That one does not even install and gives the error: App not installed as package appears to be invalid when copying the apk to the phone and adb: failed to install com.hughesjs.eqipoc.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl321117973.tmp/base.apk: Attempt to get length of null array] while installing via adb.

I got the same error yesterday with the unsigned version. Would be great if you could provide me the signed apk

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

Yep... Didn't realise APKs needed to be signed...

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

I've updated the linked release.

Are you happy connecting on Discord or something? This issue is probably not the most efficient way of communicating if you're wanting to keep contributing

from fitnessmachine.

qhga avatar qhga commented on August 11, 2024

I installed the new release but I get the same behaviour as with my build: App opens for a second, shows purple/blueish background and flashes .NET, then exits. So it seems like the docker build process I set up works but the apk does not. Weird, I would also expect that MAUI produces working builds for all platforms not just IOS...

Sure we can connect on Discord! Should I send you my handle to the mail address that is shown on your profile?

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

Yeah please mate, let's see if we can work out what's up

from fitnessmachine.

hughesjs avatar hughesjs commented on August 11, 2024

Going to close this issue and we can link up on there

from fitnessmachine.

Related Issues (20)

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.