Commit 61f22108 authored by Federico Sismondi's avatar Federico Sismondi

Update update period for weather data collection

parent 96c2ed52
......@@ -5,6 +5,9 @@ __pycache__/
*.py[cod]
*$py.class
dca-carouge-watering/raw_data/*.json
dca-carouge-weather/raw_data/*.json
dca-carouge-fountain/raw_data/*.json
dca-carouge-weather/raw_data/merged.json
.idea/
*weather_raw_data.json
weather_data_init.json
......
......@@ -436,7 +436,7 @@ if __name__ == "__main__":
while slice_ceil < len(json_data):
slice_floor = slice_ceil
slice_ceil += 1000
write_weather_observed_entity_to_historical_db(json_data[slice_floor,slice_ceil])
write_weather_observed_entity_to_historical_db(json_data[slice_floor:slice_ceil])
logger.info("Pushed records {} to {}, from {} records".format(slice_floor, slice_ceil,len(json_data)))
else:
write_weather_observed_entity_to_historical_db(json_data)
......
This diff is collapsed.
......@@ -108,7 +108,7 @@ services:
environment:
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
- POST_DATA_PERIOD=1800 #30mins
- POST_DATA_PERIOD=3600 #60mins
- ORION_HOST=${ORION}
- COLLECTION_DIR=/code/raw_data
volumes:
......
......@@ -340,7 +340,7 @@ services:
environment:
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
- POST_DATA_PERIOD=1800 #30 minutes
- POST_DATA_PERIOD=3600 #60 minutes
- ORION_HOST=orion
- COLLECTION_DIR=/code/raw_data
volumes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment