config
This commit is contained in:
parent
e767b9f8a6
commit
c445edf5c2
@ -10,7 +10,7 @@ class ModbusParser(AbstractParser, AbstractNextStage):
|
|||||||
self.topic = "IoT/Measurement/ModbusHub"
|
self.topic = "IoT/Measurement/ModbusHub"
|
||||||
|
|
||||||
def execute(self, data):
|
def execute(self, data):
|
||||||
Logger.log("ModbusParser %s %s" % (type(data), str(data)))
|
#Logger.log("ModbusParser %s %s" % (type(data), str(data)))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
j = json.loads(data['payload'])
|
j = json.loads(data['payload'])
|
||||||
|
@ -18,16 +18,16 @@ BACKGROUND = False
|
|||||||
PID_FILE = "/tmp/MqttDispatcher.pid"
|
PID_FILE = "/tmp/MqttDispatcher.pid"
|
||||||
LOG_FILE = "/tmp/MqttDispatcher.log"
|
LOG_FILE = "/tmp/MqttDispatcher.log"
|
||||||
MQTT_CONFIG = {
|
MQTT_CONFIG = {
|
||||||
'host':'eupenstrasse20.dynamic.hottis.de',
|
'host':'localhost',
|
||||||
'port':8883,
|
'port':1883,
|
||||||
'tls':True,
|
'tls':False,
|
||||||
'ca':'ca.crt',
|
'ca':'ca.crt',
|
||||||
'user':'tron',
|
'user':'tron',
|
||||||
'password':'geheim123'
|
'password':'geheim123'
|
||||||
}
|
}
|
||||||
DATABASE_CONFIG = {
|
DATABASE_CONFIG = {
|
||||||
'period':300,
|
'period':300,
|
||||||
'host':'localhost',
|
'host':'172.16.2.17',
|
||||||
'user':'smarthome',
|
'user':'smarthome',
|
||||||
'password':'smarthome123',
|
'password':'smarthome123',
|
||||||
'db':'smarthome'
|
'db':'smarthome'
|
||||||
@ -68,7 +68,7 @@ try:
|
|||||||
Logger.log("MBusParser started ...")
|
Logger.log("MBusParser started ...")
|
||||||
|
|
||||||
modbusParser = ModbusParser()
|
modbusParser = ModbusParser()
|
||||||
#mqttReader.registerParser(modbusParser)
|
mqttReader.registerParser(modbusParser)
|
||||||
Logger.log("ModbusParser started ...")
|
Logger.log("ModbusParser started ...")
|
||||||
|
|
||||||
persistentQueue = PersistentQueue()
|
persistentQueue = PersistentQueue()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user