devel:brewerjsonpythonmodule
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devel:brewerjsonpythonmodule [2015/10/22 10:13] – [Installation] ajberjon | devel:brewerjsonpythonmodule [2022/10/20 08:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 25: | Line 25: | ||
| ^ Field ^ Description ^ | ^ Field ^ Description ^ | ||
| - | ^ [[devel: | + | ^ [[devel: |
| - | ^ [[devel: | + | ^ [[devel: |
| + | ^ [[devel: | ||
| === getDataList() === | === getDataList() === | ||
| - | This function retrieve a list of [[http://rbcce.aemet.es/ | + | This function retrieve a list of [[http://eubrewnet.aemet.es/ |
| The returned dictionaries structures depend on the // | The returned dictionaries structures depend on the // | ||
| ^ // | ^ // | ||
| - | ^ 'getDS' | [[http://rbcce.aemet.es/ | + | ^ 'DS' | [[http://eubrewnet.aemet.es/ |
| - | ^ 'getSL' | [[http://rbcce.aemet.es/ | + | ^ 'SL' | [[http://eubrewnet.aemet.es/ |
| - | ^ 'getConfigsbyDate' | + | ^ 'ConfigbyDate' | [[http://eubrewnet.aemet.es/ |
| **Example** | **Example** | ||
| Line 46: | Line 47: | ||
| d1=datetime.date(2014, | d1=datetime.date(2014, | ||
| d2=datetime.date(2014, | d2=datetime.date(2014, | ||
| - | data=brewerjson.getDataList(37,' | + | data=brewerjson.getDataList(185,' |
| - | === getdata() === | ||
| - | This function | + | === writejson() === |
| + | |||
| + | This function | ||
| **Example** | **Example** | ||
| Line 56: | Line 58: | ||
| import datetime | import datetime | ||
| | | ||
| - | | + | |
| - | | + | |
| - | params[' | + | data=brewerjson.getDataList(185,' |
| - | params[' | + | |
| - | params[' | + | |
| - | data=brewerjson.getdata(params) | + | |
| - | In this example we retrieve data from the url: http://rbcce.aemet.es/eubrewnet/getdata/getDS? | + | This function accepts two input parameters: //' |
| - | This function returns different | + | * //'data'// is a list of [[http:// |
| + | * //' | ||
| + | === readjson() === | ||
| + | |||
| + | This function read a file containing a list of [[http:// | ||
| + | |||
| + | **Example** | ||
| + | import brewerjson | ||
| + | import datetime | ||
| + | | ||
| + | brewerjson.getdata(' | ||
devel/brewerjsonpythonmodule.1445508781.txt.gz · Last modified: 2015/10/22 10:13 by ajberjon