-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapter fix/ust ist #1096
Adapter fix/ust ist #1096
Conversation
closes #1095 |
Also some util methods and guides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I removed a log line from the top of the file where you were logging out the value of yesterday. If that is something you wanted to leave in there then just add more to the log, like
log.debug('Showing value of yesterday', yesterday)
Or something along those lines. Otherwise I will assume it was just for dev purposes and you meant to remove it.
This adapter data URL
https://api.ust.is/aq/a/getLatest
does not appear to return data anymore. This has been replaced withhttps://api.ust.is/aq/a/getDate/date/${yesterday}
. The URL seem to only work up till the day before the current date unfortunately but does return measurements. Endpoints can be investigated athttps://api.ust.is/aq/a
.It has also been updated to over-fetch measurements to help with coverage.