This git contains examples on how to use the TAHMO API v2 in the python. The provided example code will work in both python 2 and python 3.
NOTE: Python 2.7.15 or higher is required.
# Clone the repo
$ git clone https://github.com/TAHMO/API-V2-Python-examples.git
# Change the working directory
$ cd API-V2-Python-examples
# Install the requirements
$ pip install -r requirements.txt# Clone the repo
$ git clone https://github.com/TAHMO/API-V2-Python-examples.git
# Change the working directory
$ cd API-V2-Python-examples
# Install the requirements
$ pip3 install -r requirements.txtMake sure to update your API credentials in api.setCredentials(user, password) on line 4 of example.py.
The example file features: retrieving station metadata, retrieving variable metadata and retrieving time series.
For any questions please send an email to H.F.Hagenaars@tudelft.nl.