Compare commits

..

7 Commits

Author SHA1 Message Date
2adc527693 update paho to v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 17s
2024-02-19 00:16:55 +00:00
af92529ac8 Change some settings for paho mqtt v2
Some checks failed
Build and publish Image / build-and-push (push) Failing after 11s
2024-02-19 00:15:41 +00:00
e1e0cf0ff2 Merge pull request 'chore(deps): update dependency docker/login-action to v2.2.0' (#48) from renovate/docker-login-action-2.x into master
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 8s
Semantic Release and Changelog / Build and Publish (push) Failing after 58s
Reviewed-on: #48
2024-02-18 03:05:57 +00:00
62d935ba4a Merge pull request 'chore(deps): update node.js to v20.11.1' (#49) from renovate/node-20.x into master
Some checks are pending
Semantic Release and Changelog / Patch (push) Waiting to run
Semantic Release and Changelog / Build and Publish (push) Waiting to run
Reviewed-on: #49
2024-02-18 03:05:39 +00:00
e25118fc33 chore(deps): update node.js to v20.11.1
Some checks failed
Build and publish Image / build-and-push (push) Failing after 9s
2024-02-18 03:04:31 +00:00
2a33fc9302 chore(deps): update dependency docker/login-action to v2.2.0
Some checks failed
Build and publish Image / build-and-push (push) Failing after 9s
2024-02-18 03:04:28 +00:00
5b14168d6b log to screen
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Failing after 13s
2024-02-10 21:48:04 +00:00
5 changed files with 6 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ jobs:
uses: actions/checkout@v4.1.1 uses: actions/checkout@v4.1.1
- name: Login to Harbor - name: Login to Harbor
uses: docker/login-action@v2 uses: docker/login-action@v2.2.0
with: with:
registry: harbor.evanshome.io registry: harbor.evanshome.io
username: "robot$registry-bot" username: "robot$registry-bot"

View File

@@ -31,7 +31,7 @@ build:
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
release: release:
image: node:20.10.0-alpine3.18 image: node:20.11.1-alpine3.18
stage: release stage: release
only: only:
refs: refs:

View File

@@ -28,6 +28,6 @@ RUN apk --update add --no-cache logrotate && \
COPY . /app COPY . /app
CMD ["python3", "-u", "/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"] CMD ["python3", "-u", "/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf", "-l", "stdout"]
EXPOSE 22042 EXPOSE 22042

View File

@@ -1,3 +1,3 @@
paho-mqtt==1.6.1 paho-mqtt~=2.0.0
bottle==0.12.25 bottle==0.12.25
defusedxml==0.7.1 defusedxml==0.7.1

View File

@@ -26,7 +26,7 @@ class Client ( mqtt.Client ):
self.on_connect = Client.on_connect self.on_connect = Client.on_connect
self.on_message = Client.on_message self.on_message = Client.on_message
def on_connect( self, userData, flags, rc ): def on_connect( self, userData, flags, reason_code, properties ):
self.subscribe( '#' ) self.subscribe( '#' )
def on_message( self, userData, msg ): def on_message( self, userData, msg ):
@@ -62,4 +62,4 @@ client.loop_start()
while True: while True:
pass pass
client.loop_stop( force=True ) client.loop_stop()