Giter Site home page Giter Site logo

Comments (7)

jdubz666 avatar jdubz666 commented on June 4, 2024

MeasType should be "1". I do the post request within the tests. Here's just the portion of the script with the post request, I load it into InfluxDB as well.

from python_withings_api.

jdubz666 avatar jdubz666 commented on June 4, 2024

influx_weight.txt

from python_withings_api.

vangorra avatar vangorra commented on June 4, 2024

Can you post the full exception?

from python_withings_api.

valeriofantozzi avatar valeriofantozzi commented on June 4, 2024

ValueError: 123 is not a valid MeasureType

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "example.py", line 74, in
meas_result = api.measure_get_meas()
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/init.py", line 159, in measure_get_meas
self.request(path=self.PATH_MEASURE, params=params)
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/common.py", line 649, in new_measure_get_meas_response
for group in data.get("measuregrps", ())
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/common.py", line 649, in
for group in data.get("measuregrps", ())
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/common.py", line 637, in new_measure_get_meas_group
for measure in data.get("measures", ())
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/common.py", line 637, in
for measure in data.get("measures", ())
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/common.py", line 621, in new_measure_get_meas_measure
type=new_measure_type(data.get("type")),
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/common.py", line 117, in new_measure_type
return cast(MeasureType, enum_or_raise(value, MeasureType))
File "/Users/myuser/Desktop/python_withings_api-master/withings_api/common.py", line 403, in enum_or_raise
return enum(value)
File "/Users/myuser/.pyenv/versions/3.7.5/lib/python3.7/enum.py", line 310, in call
return cls.new(cls, value)
File "/Users/myuser/.pyenv/versions/3.7.5/lib/python3.7/enum.py", line 564, in new
raise exc
File "/Users/myuser/.pyenv/versions/3.7.5/lib/python3.7/enum.py", line 548, in new
result = cls.missing(value)
File "/Users/myuser/.pyenv/versions/3.7.5/lib/python3.7/enum.py", line 577, in missing
raise ValueError("%r is not a valid %s" % (value, cls.name))
ValueError: 123 is not a valid MeasureType

from python_withings_api.

valeriofantozzi avatar valeriofantozzi commented on June 4, 2024

I updated the library but the same error remains ..

from python_withings_api.

vangorra avatar vangorra commented on June 4, 2024

Do you have the json being returned by withings?
Can you show your new stack trace?

from python_withings_api.

vangorra avatar vangorra commented on June 4, 2024

Closing stale issues.

from python_withings_api.

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.