diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/adapter.py b/adapter.py old mode 100644 new mode 100755 index 856bff3..20ddaa3 --- a/adapter.py +++ b/adapter.py @@ -1,3 +1,5 @@ +#! /usr/bin/env python3 + import os import csv import json @@ -18,14 +20,14 @@ IGNORED_FIELDS = ['Record', 'Wind', 'Temp_Aussen', 'Feuchte_Aussen'] UPDATE_INTERVAL = 1 # in minutes -LOGSTASH_HOST = os.getenv('LOGSTASH_HOST', 'localhost') +LOGSTASH_HOST = os.getenv('LOGSTASH_HOST', 'il060') LOGSTASH_PORT = int(os.getenv('LOGSTASH_PORT', '5000')) SENSORTHINGS_HOST = os.getenv('SENSORTHINGS_HOST', 'il060') SENSORTHINGS_PORT = os.getenv('SENSORTHINGS_PORT', '8082') # setup logging -logger = logging.getLogger('cm-adapter') +logger = logging.getLogger('cm-adapter.logging') logger.setLevel(logging.INFO) console_logger = logging.StreamHandler(stream=sys.stdout) console_logger.setFormatter(logging.Formatter(logging.BASIC_FORMAT)) diff --git a/requirements.txt b/requirements.txt old mode 100644 new mode 100755