Comments (7)
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.
from python_withings_api.
Can you post the full exception?
from python_withings_api.
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.
I updated the library but the same error remains ..
from python_withings_api.
Do you have the json being returned by withings?
Can you show your new stack trace?
from python_withings_api.
Closing stale issues.
from python_withings_api.
Related Issues (20)
- sleep summary data incomplete? HOT 2
- Wrong URL in OAuth token endpoint HOT 1
- How to use from a script? HOT 1
- What Is The Official Withings Python Module To Use That Is Supported? HOT 1
- refresh_cb returning Error code 401 HOT 5
- Code stopped working, Error 503 for sleep data HOT 1
- TypeError: unsupported operand type(s) for -: 'int' and 'method' HOT 1
- Withings API Breaking Change - Oauth2 URL - Due by 2021-09-01 HOT 1
- New Measure Type HOT 1
- Withings integration in HA broke HOT 9
- Question: Distinguish weight by user HOT 4
- <MeasureType.UNKNOWN: -999999> - python3.9/site-packages/withings_api/common.py:38 HOT 1
- Unexpected error fetching subscription_update_coordinator data: Error code 293 HOT 1
- Unexpected error fetching poll_data_update_coordinator data: 'dict' object has no attribute 'context' HOT 1
- measure_get_meas() does not return all data HOT 2
- Shutting down access and refresh tokens endpoints HOT 12
- Token Renewal in 2.4.0 HOT 2
- Invalid State when following redirect URI HOT 1
- Unsupported value HOT 4
- Dependency "requests-oauth" hasn't been used for a long time
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 python_withings_api.