Giter Club home page Giter Club logo

Comments (48)

cagnulein avatar cagnulein commented on July 24, 2024 1

Ok I will add this in the next days

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024 1

Thanks. Will come back to you next week. :)

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Never mind - forgot to edit type the app.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

@jhholen So it's already OK?

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Speed works fine and adding incline works.
But lowering incline dosent work to me. No action on the mill.

Edit: works only some of the times I click

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

Could you please share a debug log with the issue https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Uploading debug-Fri_Feb_2_18_32_10_2024.log…

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

Wait the finish of the upload before commenting, the file is truncated

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

debug-Fri_Feb_2_18_32_10_2024.log

Better?

BTW: what is the latest Version of IFIT that works with the qz app?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

Can you try setting 1 to inclination step in the treadmill settings in qz?

I guess the issue is about 0.5 step

By the way which device are you using in the companion?

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Tried setting incline step to 1, without any luck.

Today it does not work at all. Probably not related to the change, but more due to reboot of the machine.

Using iOS.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

i mean the device selected on the companion.

anyway yes try to reboot it and check that the adb setting is still enabled

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

I have selected C1750 2021.
Where do I check the adb setting?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Yes, I did.

Will try that and report back.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

ok also remove the gateway setting from the wifi setting of the treadmill so ifit will not try to fix themself

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

What gateway setting?

See now that iFit has updated itself automatically...

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

@jhholen in the wifi settings of the treadmill don't you see the ip and the gateway? share me a screenshot of them

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

IMG_4717

debug-Sun_Feb_4_09_00_37_2024.log

But I can see now that ifit has updated. Can that be the reason why the controls dont work?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

Yes it could be. That's why I'm always asking to reset the factory reset and removing the gateway immediately so ifit will not update itself

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Where is the gateway process described?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Just reset the treadmill now, and reinstalled the app.
C1750 selected.

The speed works, but the steps are off. Increments by 0.2 instead of 0.5.

Incline works sort of the first three clicks. Setting is set to one, but incline changes by two. Minus also increases incline. After three clicks it dosent work anymore.

See attached video.

RPReplay_Final1707078700.mp4

Data flows right.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

Ok so I need to map your device, use this https://github.com/cagnulein/QZCompanionNordictrackTreadmill/blob/master/InstallPackage/adb-screenshot.bat

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

On a Mac only.

Possible to rewrite to bash?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Rewrote it myself. Screenshot added.

2024-02-04@22-06-31

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

@jhholen new apk https://github.com/cagnulein/QZCompanionNordictrackTreadmill/releases/download/3.3.36/QZCompanionNordictrackTreadmill.apk

let me know if the formula is right now, otherwise we need to test it with adb to find the right coefficents.
let me know!

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Incline gives 0,5 - 1,5 - 3,5 and 7,5 with each click. Decline does not work (hits somewhere else on the screen.

Speed is sometimes increased by 0.4 and some 0.1.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

ok so I need help from you.
You need to create a formula yourself testing directly on the treadmill.
Are you able to to so?

you have to use the

adb shell input swipe

command

with the coordinates

you can check here the formula that I added for you c884a17#diff-f6d77d1e4eb75018758ba6c75c8ba2c8e817dd8a5d5790ae376f74b0a4dddd92

Let me know if you have any questions!

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Sure!

Can you give me an example command with coordinates?

adb shell input swipe 1234 ?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

for the inclination, for example

adb shell input swipe x1 y1Inclination x1 y2 200

where

x1 = 75

y1Incliantion is the start point of the current inclination value calculated in pixel coordinates. I-m calculating this in this way now 594 - (int) ((QZService.lastInclinationFloat -3) * 19.83); The QZService.lastInclinationFloat is the actual inclination grade collect from the treadmill

y2 i'm calculating it in this way now y1Inclination - (int) ((reqInclination - QZService.lastInclinationFloat) * 19.83); the reqinclination is the value in grade that you want to set to the treadmill

let me know

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Was going to configure the setup now, but the screen on my treadmill once again goes white (iFit app) after a few days without use.
This has happened three times lately, and the solution looks to be either reset the machine or update iFit.

Known issue?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Did a reset and did some testing.

Can the issue be that the speed start with 1,3,5,7,9,11 and then changes to 12,14,16,18,20,22?
Wont the formula then be off?

Same goes for incline: -3, -1, 0, 2, 4, 5, 7, 8, 10, 12, 13, 15.
2024-02-13@18-20-14

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

Could be, are you able to change the formula So?
You can start trying to change the speed value starting from 1 to any new speed and creating a table like the user did in the link that I just sent

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Added a list with incline values now, and tried to create a function.
Wasn't able to push the feature, but added the functions below.

private int c1750_2020_kph_inclination_lookuptable(double reqInclination) {
        int y2 = 0;
        if (reqInclination == -3) { y2 = 592; }
        else if (reqInclination == -2.5) { y2 = 584; }
        else if (reqInclination == -2) { y2 = 576; }
        else if (reqInclination == -1.5) { y2 = 568; }
        else if (reqInclination == -1) { y2 = 560; }
        else if (reqInclination == -0.5) { y2 = 544; }
        else if (reqInclination == 0) { y2 = 528; }
        else if (reqInclination == 0.5) { y2 = 520; }
        else if (reqInclination == 1) { y2 = 512; }
        else if (reqInclination == 1.5) { y2 = 504; }
        else if (reqInclination == 2) { y2 = 496; }
        else if (reqInclination == 2.5) { y2 = 488; }
        else if (reqInclination == 3) { y2 = 480; }
        else if (reqInclination == 3.5) { y2 = 472; }
        else if (reqInclination == 4) { y2 = 464; }
        else if (reqInclination == 4.5) { y2 = 456; }
        else if (reqInclination == 5) { y2 = 448; }
        else if (reqInclination == 5.5) { y2 = 440; }
        else if (reqInclination == 6) { y2 = 432; }
        else if (reqInclination == 6.5) { y2 = 424; }
        else if (reqInclination == 7) { y2 = 400; }
        else if (reqInclination == 7.5) { y2 = 384; }
        else if (reqInclination == 8) { y2 = 368; }
        else if (reqInclination == 8.5) { y2 = 360; }
        else if (reqInclination == 9) { y2 = 352; }
        else if (reqInclination == 9.5) { y2 = 344; }
        else if (reqInclination == 10) { y2 = 336; }
        else if (reqInclination == 10.5) { y2 = 328; }
        else if (reqInclination == 11) { y2 = 320; }
        else if (reqInclination == 11.5) { y2 = 312; }
        else if (reqInclination == 12) { y2 = 304; }
        else if (reqInclination == 12.5) { y2 = 288; }
        else if (reqInclination == 13) { y2 = 272; }
        else if (reqInclination == 13.5) { y2 = 264; }
        else if (reqInclination == 14) { y2 = 256; }
        else if (reqInclination == 14.5) { y2 = 248; }
        else if (reqInclination == 15) { y2 = 240; }
        return y2;        
    }

    private int c1750_2020_kph_speed_function(double reqSpeed) {
        int y1BaseSpeed = 592; // Slider at 1kmh
        int y2 = 0;
        
        // Returns slider position of required speed in pixels.
        if (reqSpeed <= 11) {
            // If speed is 11kmh or less
            y2 = reqSpeed + (16-(16 * y1BaseSpeed));
        } else if (reqSpeed > 11 && reqSpeed < 12) {
            // If speed is more than 11kmh or less than 12kmh
            y2 = reqSpeed + (8-(16 * y1BaseSpeed));
        } else if (reqSpeed >= 12) {
            // If speed is 12kmh or more
            y2 = reqSpeed + (0-(16 * y1BaseSpeed));
        }

        return y2;
    }

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

Thanks! Tried it now, and it is way off. Same issue as before, where incline works the first few tests. Then I goes incremental from 1.5, 2, 3, 5 and off the chart.

Speed never works at all. Is it possible to see logs on what the values was at each test?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

jhholen avatar jhholen commented on July 24, 2024

I really dont get how this works.

I now testet this command twice: adb shell input swipe 75 528 75 486 200

Starting from 0, first time it goes to 2 and if I trigger it again at that position it goes to 4?

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

from qzcompanionnordictracktreadmill.

stale avatar stale commented on July 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from qzcompanionnordictracktreadmill.

cagnulein avatar cagnulein commented on July 24, 2024

@jhholen any news?

from qzcompanionnordictracktreadmill.

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.