Skip to content

Commit

Permalink
Running code
Browse files Browse the repository at this point in the history
  • Loading branch information
meteoDaniel committed Dec 16, 2018
1 parent f53d022 commit c265c7c
Show file tree
Hide file tree
Showing 10 changed files with 271 additions and 307 deletions.
7 changes: 7 additions & 0 deletions .idea/dictionaries/imac.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions .idea/insuranceDataProject.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

536 changes: 237 additions & 299 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file removed example_Report_dirty.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions src/DataHandler/aemetDataBaseConfig.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
AEMET_BASE_URL = 'https://opendata.aemet.es/opendata/api/valores/climatologicos/diarios/datos/fechaini/'
AEMET_MID_URL = '/?api_key='
AEMET_MID_URL = '?api_key='
AEMET_MID_URL_2 = '/fechafin/'
AEMET_API_KEY = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkLmxhc3NhaG5AbWV0ZW9jb250cm9sLmRlIiwianRpIjoiMjkzNWFkZ" \
"TQtNWEyZi00MDVmLTg1ZWUtMWFmOWRiMzliNzA3IiwiaXNzIjoiQUVNRVQiLCJpYXQiOjE1MTI1NDQ3NDcsInVz" \
"ZXJJZCI6IjI5MzVhZGU0LTVhMmYtNDA1Zi04NWVlLTFhZjlkYjM5YjcwNyIsInJvbGUiOiIifQ.UEl1igKehaT0" \
"-BXn9nY7CxQMJ9d2d4DbvYxFijX5Jho"
AEMET_STORAGE = '/home/d.lassahn/Schreibtisch/Wetterberatung/insuranceDataProject/data/AEMET_DATA/'
AEMET_STORAGE = '/Users/imac/Desktop/Wetterberatung/insuranceDataProject/data/AEMET_DATA/'
AEMET_STATION_LIST = '/data/stations_list/stations_spain.json'
4 changes: 2 additions & 2 deletions src/DataHandler/aemetDataHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def get_aemet_climate_data(start_date: datetime,
else:
url_request = AEMET_BASE_URL + month.strftime('%Y-%m-%dT00:00:00UTC') + \
AEMET_MID_URL_2 + (month+timedelta(days=32)).replace(
day=1).strftime('%Y-%m-%dT00:00:00UTC') + AEMET_MID_URL + \
station_id_str + AEMET_API_KEY
day=1).strftime('%Y-%m-%dT00:00:00UTC') + station_id_str \
+ AEMET_MID_URL + AEMET_API_KEY
loader(url_request, request_json)
try:
answer = pd.read_json(request_json, typ='series')
Expand Down
2 changes: 1 addition & 1 deletion src/DataHandler/dataServices.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import time

def loader(url_request, output):
os.system('wget ' + url_request + ' -O ' + output)
os.system('wget --no-check-certificate ' + url_request + ' -O ' + output)



Expand Down
Empty file removed src/ToolBox/server_answer.json
Empty file.

0 comments on commit c265c7c

Please sign in to comment.