fix
This commit is contained in:
parent
0eb133cede
commit
58f17be962
@ -3,7 +3,7 @@ FROM python:3.10-bullseye
|
||||
ENV MQTT_LOGIN "-"
|
||||
ENV MQTT_PASSWORD "-"
|
||||
ENV MQTT_BROKER "-"
|
||||
ENV MQTT_PORT "8883"
|
||||
ENV MQTT_PORT "1883"
|
||||
ENV MQTT_CA ""
|
||||
|
||||
ENV PGHOST ""
|
||||
|
@ -8,5 +8,4 @@ NAMESPACE=$(cat namespace)
|
||||
|
||||
kubectl -f install.yml -n $NAMESPACE apply
|
||||
|
||||
kubectl apply -f - -n $NAMESPACE
|
||||
|
||||
|
@ -26,7 +26,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: cemmetering
|
||||
image: wollud1969/cemmetering-preprocessor:1.0.0
|
||||
image: wollud1969/cemmetering-preprocessor:1.0.1
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: cemmetering
|
||||
|
@ -29,7 +29,7 @@ class JustIgnoreMessage (Exception):
|
||||
self.message = message
|
||||
|
||||
class DbOp(object):
|
||||
def __init__(self, config):
|
||||
def __init__(self):
|
||||
self.conn = None
|
||||
|
||||
def __getConn(self):
|
||||
@ -125,7 +125,7 @@ def mqttOnMessageCallback(client, userdata, message):
|
||||
|
||||
(appId, converterId, deviceId, variableId) = splitTopic(topic)
|
||||
|
||||
dbh = DbOp(config)
|
||||
dbh = DbOp()
|
||||
variable = dbh.getVariable(appId, converterId, deviceId, variableId)
|
||||
measurement = {
|
||||
"vid": variable["vid"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user