sofarocean / sofar-api-client-python

Python Client for Wavefleet
Apache License 2.0
7 stars 5 forks source link

Add barometer to the _worker #31

Closed pieterbartsmit closed 1 year ago

pieterbartsmit commented 2 years ago

Similar fix as for surfaceTemp -> surface_temp for barometer -> barometerData

tcj commented 1 year ago

Looks good @pieterbartsmit, thanks. I did notice this branch needs a rebase to get the _limit fix from commit acfe7eae993b4ca2b25de0144a1b34d4323646b8

With this change, and a change to my historical_data_pull.py script, I can now pull barometer data:

2 devices to query
request 1 of 2 (SPOT-[...]):
{'wind': True, 'waves': False, 'frequency': False, 'track': False, 'surface_temp': True, 'smart_mooring': False, 'barometer': True}
    1716 samples received for SPOT-[...] of type wind
    5182 samples received for SPOT-[...] of type surface_temp
    5182 samples received for SPOT-[...] of type barometer