Skip to content

Commit

Permalink
changed logstash host to cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophSchranz committed Mar 22, 2018
1 parent 35ee5d8 commit cbbaee9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions adapter.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env python3

import os
import csv
import json
Expand All @@ -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))
Expand Down
Empty file modified requirements.txt
100644 → 100755
Empty file.

0 comments on commit cbbaee9

Please sign in to comment.