-
-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT - Replace shell script by javascript functions #1668
MQTT - Replace shell script by javascript functions #1668
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1668 +/- ##
=======================================
Coverage 97.55% 97.56%
=======================================
Files 652 653 +1
Lines 9909 9932 +23
=======================================
+ Hits 9667 9690 +23
Misses 242 242
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So good !! Thanks for this PR 🙏
Good for me, can you provide a Docker build to test this in real life?
There it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so I tried it but it seems it doesn't work
Gladys:
2022-12-12T08:18:07+0100 <info> installContainer.js:18 (MqttHandler.installContainer) MQTT broker is being installed as Docker container...
2022-12-12T08:18:07+0100 <info> installContainer.js:22 (MqttHandler.installContainer) Check Gladys network...
2022-12-12T08:18:07+0100 <info> installContainer.js:28 (MqttHandler.installContainer) Pulling eclipse-mosquitto:2 image...
2022-12-12T08:18:08+0100 <info> installContainer.js:32 (MqttHandler.installContainer) Preparing broker environment...
2022-12-12T08:18:08+0100 <info> configureContainer.js:25 (MqttHandler.configureContainer) MQTT broker Docker container is being configured...
2022-12-12T08:18:08+0100 <info> configureContainer.js:42 (MqttHandler.configureContainer) Writting default eclipse-mosquitto configuration...
2022-12-12T08:18:08+0100 <info> installContainer.js:35 (MqttHandler.installContainer) Creating container...
2022-12-12T08:18:08+0100 <info> installContainer.js:43 (MqttHandler.installContainer) MQTT broker successfully installed as Docker container
Logs from Mosquitto containers:
1670829515: mosquitto version 2.0.15 starting
1670829515: Config loaded from /mosquitto/config/mosquitto.conf.
1670829515: Error: Unable to open pwfile "/mosquitto/config/mosquitto.passwd".
1670829515: Error opening password file "/mosquitto/config/mosquitto.passwd".
Gladys assistant folder:
/var/lib/gladysassistant/mosquitto# ls -lh
total 4.0K
-rw-r--r-- 1 1883 1883 110 Dec 12 08:18 mosquitto.conf
282e555
to
155ead8
Compare
The password has to be created at init phase, I was missing this point. EDIT: and publish a new image (atrovato/gladys:mqtt) |
155ead8
to
4d32607
Compare
4d32607
to
383d770
Compare
383d770
to
dd8ef1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Tested on a server, it works fine!
Job #1163: Bundle Size — 7.21MiB (0%).
Metrics (no changes)
Total size by type (no changes)
|
Pull Request check-list
To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:
npm test
on both front/server)npm run eslint
on both front/server)npm run prettier
on both front/server)npm run compare-translations
on front)front/src/config/demo.js
) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
Description of change
Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!