Comments (15)
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.
I've just checked, I actually have the same model as you, so all should be fine
from fitnessmachine.
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.
You might be interested to know I now have a demo app that can start, stop, and increment the speed. #3
from fitnessmachine.
@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.
@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.
Wait, got it working inside the container. Trying it now!
from fitnessmachine.
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.
https://github.com/hughesjs/OpenEQiSports/releases/tag/v0.0.1 <--- Try that
from fitnessmachine.
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.
Yep... Didn't realise APKs needed to be signed...
from fitnessmachine.
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.
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.
Yeah please mate, let's see if we can work out what's up
from fitnessmachine.
Going to close this issue and we can link up on there
from fitnessmachine.
Related Issues (20)
- Add proper logging framework
- Device selector doesn't work on first opening
- Handle device disconnections
- Update README
- Widgets need testing
- Add workout history
- Add basic workout planner
- Add advanced workout planning
- Improve UI for start/stop/pause/resume
- Check if treadmill supports setting user properties
- Compatibility with specific CitySports treadmill HOT 5
- Recombine the file structure HOT 1
- Create a fake fitness machine for development
- Improve Workout History
- Obtain User Weight & Height
- Add Settings Screen
- Remember previously connected devices
- Move PoC to separate repo HOT 1
- Add first-time setup flow
- Add Capabilities Manager
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fitnessmachine.