October 23, 20241 yr Hi! I wanted to publish some data from my unraid server to mosquitto so I can see and track it in Home Assistant. This plugin is the result and gives you the ability to publish custom data to your own mqtt data broker. You can also subscribe to a topic when you have an usecase for that, or just simply for debugging. For more information take a look at the github repository. Here is a quick example. I used the data provided from my corsair power supply: Edited October 23, 20241 yr by giganode
October 24, 20241 yr Author 1 hour ago, Vr2Io said: How to set what to publish ? Please take a look at the example in the about linked GitHub repo. as this is very custom from user to user there is no gui, at least for now. You need to manually extract the data you want to publish. On the other hand devs can use this plugin in combination with their own to add more functions. in the near future I will add preconfigured mqtt export to the corsairpsu plugin. Users will have the ability to activate that feature when they have MQTT Pub and Sub installed.
October 24, 20241 yr Thanks a lot for sharing this useful app. I'll definitely try it. My unraid is also powered by Cosair PSU. I'm looking forwards to your future development. I'm using Glances docker container on Unraid and Glances integration on Home Assistant (that provides 1000+ entities) for this purpose.
October 24, 20241 yr Author 3 minutes ago, bthoven said: Thanks a lot for sharing this useful app. I'll definitely try it. My unraid is also powered by Cosair PSU. I'm looking forwards to your future development. I'm using Glances docker container on Unraid and Glances integration on Home Assistant (that provides 1000+ entities) for this purpose. Which PSU model do you have installed?
October 24, 20241 yr Author 6 minutes ago, bthoven said: Corsair CV450. Ah okay. Sadly, you won‘t get any data from your PSU. It doesn‘t have the usb connection.
October 24, 20241 yr It's not a server-grade PSU, but it provides ample power for my Unraid setup. Thank you.
October 27, 20241 yr Author On 10/26/2024 at 3:17 AM, stayupthetree said: Settings page is blank for me That is correct. At the moment it is empty. On next release you can edit the credentials there.
October 31, 20241 yr Author New release has a form on the settings page to enter credentials and a few smaller changes. I recommend removing the plugin and reinstalling it. After that, go to settings page and set up your mqtt data broker.
November 4, 20241 yr I don't have a user & password for my MQQT - can this handle that? mosquitto_pub: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory Edited November 4, 20241 yr by dopeytree
November 4, 20241 yr Author 13 minutes ago, dopeytree said: I don't have a user & password for my MQQT - can this handle that? mosquitto_pub: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory So you are allowing unauthorized access? I don't have a setup like this but I would just try the commands without the -u and -P flags. But what about your libary issue? What command did you execute?
November 4, 20241 yr Author I updated the template for publishing because I wanted to have the command line for publishing shortened: #!/bin/bash source /boot/config/mqttcredentials if [[ -z "$MQTT_HOST" || -z "$MQTT_PORT" || -z "$MQTT_USER" || -z "$MQTT_PASSWORD" || -z "$MQTT_CLIENT_ID" ]]; then echo "Error: Information missing." exit 1 fi MQTT_URL=mqtt://$MQTT_USER:$MQTT_PASSWORD@$MQTT_HOST:$MQTT_PORT/$MQTT_CLIENT_ID mosquitto_pub -L "$MQTT_URL/sensor/voltage" -m "{\"voltage\": $voltage}" The old template can still be found in the repository.
November 13, 20241 yr how do you install the mosquito client tools (Mosquitto_pub/sub on unraid. I don't see it in nerd tools
November 14, 20241 yr It's in the Spotlight of the Unraid 'app store'. Or did you mean the mosquito broker? If so that's docker container also in the app store.
November 15, 20241 yr Author On 11/13/2024 at 3:48 PM, Faspina said: how do you install the mosquito client tools (Mosquitto_pub/sub on unraid. I don't see it in nerd tools You can find the plugin in Community Applications.
November 16, 20241 yr I too am getting the following msg: mosquitto_pub: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory My broker is set up on another system and I have all the host, port, username, pw and client_Id setup.
November 17, 20241 yr Author 8 hours ago, LABob246 said: I too am getting the following msg: mosquitto_pub: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory My broker is set up on another system and I have all the host, port, username, pw and client_Id setup. Please share the command line used. I might have an idea.
November 17, 20241 yr 10 hours ago, giganode said: Please share the command line used. I might have an idea. I'm getting the same libssl error running both the old and the new publishing scripts via user scripts
November 17, 20241 yr Author 19 minutes ago, martindell said: I'm getting the same libssl error running both the old and the new publishing scripts via user scripts Can you search for these files? root@Node:~# ls /usr/lib64/libssl* /usr/lib64/libssl.so@ /usr/lib64/libssl.so.3@
November 20, 20241 yr When I run ls /usr/lib64/libssl* I get the following: /usr/lib64/libssl.so@ /usr/lib64/libssl.so.1.1@
November 20, 20241 yr Author 8 hours ago, LABob246 said: When I run ls /usr/lib64/libssl* I get the following: /usr/lib64/libssl.so@ /usr/lib64/libssl.so.1.1@ Ok, so you are missing the required library. The new version is available with Unraid 7.0.0. Seems like I should set the min OS version to 7.0.0 Edited November 20, 20241 yr by giganode
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.