Commit 8826b276 authored by Federico Sismondi's avatar Federico Sismondi

Minor Update() for watering use case data dumping to filesystem

parent ba7a170b
......@@ -214,6 +214,7 @@ def _forward_reading_to_ctx_broker():
def _dump_raw_data_to_filesystem():
app.logger.info('dumping request to FS')
try:
filepath = os.path.join(COLLECTION_DIR, '{}.json'.format(int(time.time())))
with open(filepath, encoding='utf-8', mode='w') as f:
......
......@@ -290,7 +290,7 @@ services:
environment:
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
#- POST_DATA_PERIOD=3600 #3600sec = 1hour
- POST_DATA_PERIOD=900 #15mins
- 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