Git Product home page Git Product logo

Comments (23)

mcm1957 avatar mcm1957 commented on August 27, 2024

According zu other feedback the adapter seems to work

https://forum.iobroker.net/topic/68290/js-controller-5-0-x-jetzt-f%C3%BCr-alle-user-im-stable/86

from iobroker.fitbit-fitness.

Ilovegym66 avatar Ilovegym66 commented on August 27, 2024

Hi, I tested and make some try with different and no data incoming..
The adapter crash here too, if no data from the Fitbit is coming, example:
I have no Fitbit device, but select the option on in the settings, than the adapter crash with the faults above..

So as a workaround for everybody, select in the adapter settings only what you have on devices and data can be coming in...
( in my config is only weight selected, this works fine)

from iobroker.fitbit-fitness.

boergegrunicke avatar boergegrunicke commented on August 27, 2024

For me, it crashes, as soon as I enable syncing the activity data. I have a device and the battery state is shown correctly, even my weight is synced and this is imported from another service.
But without the actual activity data, it is failed the main goal for my understanding. I would be thankful for a fix.

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

Es scheint an den "Aktivitäten" zu liegen. Deaktiviert man diese.
image
Läuft es.
Sobald man sie wieder rein nimmt:

`

fitbit-fitness.0 2023-09-26 07:35:05.299 error undefined is not a valid state value
fitbit-fitness.0 2023-09-26 07:35:05.299 error Error: undefined is not a valid state value at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17) at FitBit._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5439:49) at FitBit.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5400:21) at FitBit.setActivityStates (/opt/iobroker/node_modules/iobroker.fitbit-fitness/main.js:321:9) at FitBit.getActivityRecords (/opt/iobroker/node_modules/iobroker.fitbit-fitness/main.js:305:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async FitBit.getFitbitRecords (/opt/iobroker/node_modules/iobroker.fitbit-fitness/main.js:87:5)
fitbit-fitness.0 2023-09-26 07:35:05.297 error unhandled promise rejection: undefined is not a valid state value
fitbit-fitness.0 2023-09-26 07:35:05.297 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
`

from iobroker.fitbit-fitness.

boergegrunicke avatar boergegrunicke commented on August 27, 2024

Wenn einer der Werte noch leer ist (zum Beispiel die Stockwerke), dann crasht es. Scheinbar sendet Fitbit die Daten in dem Fall einfach nicht.
In meinem Pull request (#14) ist das Problem abgefangen

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

Ok. Wie bekommt man den zum Test auf sein System? Github Installation vom Adapter?

from iobroker.fitbit-fitness.

boergegrunicke avatar boergegrunicke commented on August 27, 2024

Du müsstest ihn direkt aus der URL (https://github.com/boergegrunicke/ioBroker.fitbit-fitness/tree/main) installieren können, denke ich.

from iobroker.fitbit-fitness.

Chris-656 avatar Chris-656 commented on August 27, 2024

Hallo zusammen, Ich werde mir das ansehen. Werde alsbald neue Release mit den Korrekturen absetzen.
lG Chris

from iobroker.fitbit-fitness.

Chris-656 avatar Chris-656 commented on August 27, 2024

New version 0.4.11 released please check,
thx to @boergegrunicke

from iobroker.fitbit-fitness.

mcm1957 avatar mcm1957 commented on August 27, 2024

Thanks for release.
Should be available at latrs repo this afternoon.

Please create a stable PR if tests are successful and mention js-controller 5 fix to process it at fadt kane if desired.

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

@Chris-656 0.4.11 will be in stable soon, or have i to install it from the github link in iobroker?

from iobroker.fitbit-fitness.

mcm1957 avatar mcm1957 commented on August 27, 2024

Please comment if problem still exists with 0.4.11.
Oterhwise I will close this issue in end of october.

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

Problem still existent with 0.4.11

from iobroker.fitbit-fitness.

boergegrunicke avatar boergegrunicke commented on August 27, 2024

@BenAhrdt In this case, please post some logs, to make understandable, what is going wrong. For me, everything is fine now.

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

`

fitbit-fitness.0 2023-10-25 04:49:43.469 error Adapter Connection: Error: AxiosError: Request failed with status code 401
fitbit-fitness.0 2023-10-25 04:49:43.177 info starting. Version 0.4.11 in /opt/iobroker/node_modules/iobroker.fitbit-fitness, node: v18.18.2, js-controller: 5.0.12
fitbit-fitness.0 2023-10-25 04:49:42.811 debug States connected to redis: 127.0.0.1:9000
fitbit-fitness.0 2023-10-25 04:49:42.748 debug States create User PubSub Client
fitbit-fitness.0 2023-10-25 04:49:42.747 debug States create System PubSub Client
fitbit-fitness.0 2023-10-25 04:49:42.734 debug Redis States: Use Redis connection: 127.0.0.1:9000
fitbit-fitness.0 2023-10-25 04:49:42.704 debug Objects connected to redis: 127.0.0.1:9001
fitbit-fitness.0 2023-10-25 04:49:42.700 debug Objects client initialize lua scripts
fitbit-fitness.0 2023-10-25 04:49:42.658 debug Objects create User PubSub Client
fitbit-fitness.0 2023-10-25 04:49:42.657 debug Objects create System PubSub Client
fitbit-fitness.0 2023-10-25 04:49:42.655 debug Objects client ready ... initialize now
fitbit-fitness.0 2023-10-25 04:49:42.585 debug Redis Objects: Use Redis connection: 127.0.0.1:9001
`

from iobroker.fitbit-fitness.

mcm1957 avatar mcm1957 commented on August 27, 2024

I do not see an error.

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

@mcm1957 doch der erste Eintrag.
Axios error 401.
Es werden keine Daten aktualisiert, der Adapter bleibt gelb.
Die ist seit js. 5.x so

from iobroker.fitbit-fitness.

mcm1957 avatar mcm1957 commented on August 27, 2024

Ups richtig.
Das ist aber offensichtlich ein anderer Fehler als in 0.4.10. Mal abwarten was @boergegrunicke dazu sagt. 4xx sind normalerweise Berechtigungsfehler.

from iobroker.fitbit-fitness.

boergegrunicke avatar boergegrunicke commented on August 27, 2024

401 ist nicht autorisiert und deutet wohl darauf hin, dass die Anmeldung nicht mehr gültig ist. In den Adaptereinstellungen einmal "Update Token" sollte das Problem beheben.

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

@boergegrunicke ich habe es schon mal aktualisiert. Lief ca. 3 Tag…. Habe es jetzt wieder gemacht. Adapter ohne Fehler…. Allerdings immer noch kein Eintrag beim Puls… ich weiß anderes issue.
Uploading 7D05F976-DB1F-47C4-AB98-89CA407DB598.jpeg…

from iobroker.fitbit-fitness.

mcm1957 avatar mcm1957 commented on August 27, 2024

Ist diese Problem mit 0.5.0 gefixet ?

from iobroker.fitbit-fitness.

mcm1957 avatar mcm1957 commented on August 27, 2024

Feedback at PR ioBroker/ioBroker.repositories#2960

In my environment:
starting. Version 0.4.10 in /opt/iobroker/node_modules/iobroker.fitbit-fitness, node: v16.20.2, js-controller: 5.0.12
it works fine without any issues
regards Chris

So lets close here

from iobroker.fitbit-fitness.

BenAhrdt avatar BenAhrdt commented on August 27, 2024

Scheint gefixt zu sein, aber wurde auch deinstalliert

from iobroker.fitbit-fitness.

Related Issues (14)

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.