openaq / openaq-fetch

A tool to collect data for OpenAQ platform.
MIT License
85 stars 39 forks source link

Peru OEFA adapter #1085

Closed majesticio closed 8 months ago

majesticio commented 9 months ago

Peru OEFA fetch adapter. Added custom error if an incorrect user / or password is used, and some debug statements for empty responses. This is because all responses from the API return status 200 even if the wrong credentials are used. Waiting on source to confirm the dates are accurate before deploying as the measurements are all ~12+ hours old.

majesticio commented 8 months ago

@caparker I added docstrings and will update the documentation. I was having a hard time getting the client to work with the custom errors we have, so I left got in place. Let me know what you think