2 Commits
0.0.1 ... 0.0.3

Author SHA1 Message Date
ec3fb5c72c fix 2023-05-23 13:17:12 +02:00
9da6eab743 fix name 2023-05-23 13:13:02 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ dockerize:
- tags - tags
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
CONTAINER_NAME: level-preprocessor CONTAINER_NAME: cem-preprocessor
script: script:
- docker stop $CONTAINER_NAME || echo "container not running, never mind" - docker stop $CONTAINER_NAME || echo "container not running, never mind"
- docker rm $CONTAINER_NAME || echo "container not existing, never mind" - docker rm $CONTAINER_NAME || echo "container not existing, never mind"

View File

@ -100,10 +100,10 @@ def splitTopic(topic):
except ValueError: except ValueError:
raise InvalidTopicException(topic) raise InvalidTopicException(topic)
r = rest.split('/') r = rest.split('/')
if (len(r) == 1: if (len(r) == 1):
deviceId = 'mains', deviceId = 'mains',
variableId = r[0] variableId = r[0]
elif (len(r) == 2: elif (len(r) == 2):
(deviceId, variableid) = r (deviceId, variableid) = r
else: else:
raise InvalidTopicException(topic) raise InvalidTopicException(topic)