Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As of January 2020 GLTG has 32,122,836 datapoints. Please don't fetch all of them at once.

The best way to get datapoints by sensor id in the example below.


...

Create an Account 


...

Jupyter Notebook

Get sensors in CSV, We have created a jupyter notebook that allows a user to run several common data fetching methods including get sensors as CSV  and get datapoints in CSV or JSON.

Install Jupyter

Code Block
languagepowershell
conda install -c conda-forge jupyterlab



Download this file geostreams_jupyter.ipynb, move it in a directory of your choice, from a terminal in the chosen directory .  



Examples using Curl

taskcurlinputsinstructionsreturns
get all sensorscurl -X GET --compressed https://greatlakestogulf.org/geostreams/api/sensors


authenticate

curl -X POST -H 'Content-Type: application/json' -d '{"password": "****", "identifier": "email"}' --compressed -i https://greatlakestogulf.org/geostreams/api/authenticate

  • password
  • email
In the response will be X-Auth-Token: followed by the alphanumeric security tokenX-Auth-Token
get all datapoints for a single sensorcurl -X GET -H 'Content-Encoding: application/json' -H 'x-auth-token:token' --compressed 'https://greatlakestogulf.org/geostreams/api/datapoints?sensor_id=22&since=2018-06-01'
  • token
  • sensor_id
  • since
Use X-Auth-Token from authenticationjson

...