Coder Social home page Coder Social logo

Import Error about garmindb HOT 10 CLOSED

tcgoetz avatar tcgoetz commented on July 17, 2024
Import Error

from garmindb.

Comments (10)

tcgoetz avatar tcgoetz commented on July 17, 2024

You have a device that includes a manufacturer id (213) that I haven't seen before, in docs or FIT files. It could be for any device: watch, sensor, etc. Do you know which device it is? Can you share the FIT file that failed with me so I can debug it?

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

Here's a link to the existing manufacture definitions: https://github.com/tcgoetz/Fit/blob/6d104df61540931a1f5e88f6f0684cc15c8199a2/field_enums.py#L174

from garmindb.

AYellowDart avatar AYellowDart commented on July 17, 2024

I'd be happy to share the file if I could find which one has new manufacturer ID. Any suggestions on how to narrow it down? I don't have any guess as what could be the errant device.

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

what do the last couple of lines in garmin.log say?

from garmindb.

AYellowDart avatar AYellowDart commented on July 17, 2024

The last 20 or so lines are all similar to this but with different FIT files.

ERROR:root:Exception in _write_running_entry from /Users/wheath/HealthData/FitFiles/Activities/1654927128.fit: 'Cadence' object has no attribute 'to_f'
Here's the FIT file in TXT so I could upload it
The JSONs of those files all appear to have null as the manufacturer

1654927128.txt

from garmindb.

AYellowDart avatar AYellowDart commented on July 17, 2024

Looks like all these activities were tracked on my "vívoactive HR" by Garmin

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

1654927128 parses fine for me and I don't see any manufacturer ids other than garmin.

Can you post the log file? What code version are you running?

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

ERROR:root:Exception in _write_running_entry from /Users/wheath/HealthData/FitFiles/Activities/1654927128.fit: 'Cadence' object has no attribute 'to_f'

commit c0801bd fixes this issue

from garmindb.

EmptySoft avatar EmptySoft commented on July 17, 2024

Hi.!

i have the same issue with other manufacturer code

(builtins.LookupError) "164" is not among the defined enum values
[SQL: UPDATE devices SET serial_number=?, timestamp=?, manufacturer=?, product=? WHERE devices.serial_number = ?]
[parameters: [{'product': 'UnknownProduct_0', 'manufacturer': 164, 'serial_number': '3923282663000003', 'timestamp': datetime.datetime(2017, 2, 27, 16, 19, 47), 'devices_serial_number': 3923282663000003}]]

witch info do you need for debugging?

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

Hi.!

i have the same issue with other manufacturer code

(builtins.LookupError) "164" is not among the defined enum values
[SQL: UPDATE devices SET serial_number=?, timestamp=?, manufacturer=?, product=? WHERE devices.serial_number = ?]
[parameters: [{'product': 'UnknownProduct_0', 'manufacturer': 164, 'serial_number': '3923282663000003', 'timestamp': datetime.datetime(2017, 2, 27, 16, 19, 47), 'devices_serial_number': 3923282663000003}]]

witch info do you need for debugging?

Hi can you open a new issue for this? Can you share file that produced this error? Also what device is this?

from garmindb.

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.