stabilizer: connect MQTT #27

Merged
esavkin merged 1 commits from mwojcik/assembly:mqtt-stabilizer into master 2024-09-25 15:57:02 +08:00
Collaborator

Provide additional instructions on setting up the Stabilizer (on MQTT). Potentially useful for customers too.

Provide additional instructions on setting up the Stabilizer (on MQTT). Potentially useful for customers too.
mwojcik added 1 commit 2024-09-25 12:34:58 +08:00
esavkin reviewed 2024-09-25 12:44:53 +08:00
@ -106,0 +113,4 @@
1. Get IP address of your machine, e.g. with ``ip a``. Make note of it, that's the broker address.
2. Get mosquitto, e.g. with ``nix-shell -p mosquitto``.
3. Run mosquitto with the config from Stabilizer repository: ``mosquitto -c mosquitto.conf``
4. In another shell, run [MQTT Explorer](https://github.com/thomasnordquist/MQTT-Explorer/releases) or other MQTT client you wish. Connect to your own PC IP address.
Collaborator

Needs nix-shell -p appimage-run and appimage-run /path/to/MQTT-Explorer-XXX.AppImage. On most sane distros it would work out of the box with double-click though

Needs `nix-shell -p appimage-run` and `appimage-run /path/to/MQTT-Explorer-XXX.AppImage`. On most sane distros it would work out of the box with double-click though
Owner

NixOS also has programs.appimage.binfmt.
And there is nothing sane about ld-linux.so which is causing the problem here, not on NixOS and not on any other glibc-based Linux distro.

NixOS also has ``programs.appimage.binfmt``. And there is nothing sane about ld-linux.so which is causing the problem here, not on NixOS and not on any other glibc-based Linux distro.
@ -106,0 +119,4 @@
1. Connect the Stabilizer to power.
2. Connect USB cable to the Stabilizer.
3. Run ``python -m serial /dev/ttyACM0`` to connect the serial port using ``pyserial``.
Collaborator

It doesn't work out of the box, needs either venv or nix-shell manipulations

It doesn't work out of the box, needs either venv or nix-shell manipulations
Owner

Is the "manipulation" more than nix-shell -p python3Packages.pyserial?

Is the "manipulation" more than ``nix-shell -p python3Packages.pyserial``?
Collaborator

No, but not mentioning it will make those without much experience stuck

No, but not mentioning it will make those without much experience stuck
mwojcik force-pushed mqtt-stabilizer from bb63f47944 to 56207e5eba 2024-09-25 15:53:37 +08:00 Compare
esavkin merged commit d2b848810c into master 2024-09-25 15:57:02 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sinara-hw/assembly#27
No description provided.