netatmo-api-python icon indicating copy to clipboard operation
netatmo-api-python copied to clipboard

weather2file.py will not load Smart Anemometer data

Open wogallery opened this issue 3 months ago • 5 comments

When I run weather2data, it will load the data from my indoor, outdoor, and rain modules but not the wind module. The error I get is: ... ... INFO: Collected data from Outdoor Module contains 14 samples. INFO: Processing Smart Rain Gauge... INFO: Newer data found for Smart Rain Gauge. Setting new start date to 2025-09-28 INFO: Collecting data for Smart Rain Gauge... DEBUG: 14 samples found for Smart Rain Gauge. 2025-09-28 14:50:31-06:00 - 2025-09-28 15:56:06-06:00 DEBUG: Data not found for Smart Rain Gauge. Proceeding... INFO: Collected data from Smart Rain Gauge contains 14 samples. INFO: Processing Smart Anemometer... INFO: Collecting data for Smart Anemometer... ERROR: code=400, reason=Bad Request, body=b'{"error":{"code":21,"message":"Filter wind does not exists"}}' WARNING: None received. Aborting data collection from module Smart Anemometer INFO: Collected data from Smart Anemometer contains 0 samples. DEBUG: Saving to file .\weatherdata.csv (1265894 samples) DEBUG: .\weatherdata.csv saved

I put in a ticket with the Netatmo support and got the reply:

"The "wind" type was removed in 2018. You have a topic here talking about a similar issue : https://github.com/MorrisJobke/netatmo-influxdb/issues/2 You must use the correct accepted types (windstrength, windangle, guststrength, gustangle, date_min_gust, date_max_gust) according to the API documentation : https://dev.netatmo.com/apidocumentation/weather#getmeasure"

I'm not sure how to interpret this message.

I am new to python (but 40+ years as a programmer in IDL) and unfamiliar with API's. The best I can discover is that the program fails at line 475:

line 475: retreived_module_data = self._get_measurement(d)

where d is:

{'date_begin': 1747190595, 'date_end': 1759100187.0, 'device_id': '70:ee:50:64:35:16', 'module_id': '06:00:00:08:03:fe', 'mtype': 'Wind', 'scale': 'max'}

I can supply more information as required.

Thanks for your help.

Bill Gallery

PS: I want to include the argument -e 2025-06-01 in the call to main. What is the syntax? main(-e '2025-06-01') doesn't work. The error I get is: SyntaxError: invalid syntax. Perhaps you forgot a comma?

wogallery avatar Sep 28 '25 23:09 wogallery