-
Notifications
You must be signed in to change notification settings - Fork 2
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
Changes to MountainHub API list of returned variables #8
Comments
See this PR for attempts to use Python for direct access to the API. We need to find out which field contains the notes, for example to parse out the contest and SnowEx observations. |
From David Hill: we seek to grab snow depths both from the 'snow conditions' option, but also the 'snowpack test' option. There are a lot of depths in the latter category that we would miss otherwise. Be sure to check on this. |
From what I can tell on the current
Based on the responses with Python and browser requests, it looks like you've captured the main |
@aaarendt I've worked with your retrieve_from_MountainHub.ipynb Jupyter notebook, tweaking the code it and reissuing many requests. I've also examined the MountainHub JSON responses very closely, to wrap my head around it. Here are some observations and questions:
I'll issue a PR to push a new notebook, a modified version of |
The PR with my new notebook is #13. The notebook has lots of notes |
@aaarendt have you had a chance to review where things stand, including my comments above and notebook? Let me know if you have follow-up questions that I can help with. |
@aaarendt could you add details here about the problem you're still seeing with the API, that we talked about on Friday? Specifically, you said you don't get any returns when you query for recent data for specific submissions done by your colleagues, which are visible on the MountainHub web app map.
|
Just wanted to note here that the validation repo also contains Python code to read from the MountainHub API: https://github.com/communitysnowobs/validation/blob/master/validation/MountainHub.py. That code has basically the same functionality as the one at Both of these code bases were last updated in mid 2018. |
It appears the Mountain Hub API has changed the names for some of the variables we need. This will require changing the mountainhub.js code.
@aaarendt is working to figure out correct variable names.
The text was updated successfully, but these errors were encountered: