Jump to content
spants

[support] Spants - NodeRed, MQTT, Dashing, couchDB

372 posts in this topic Last Reply

Recommended Posts

20 hours ago, JustinAiken said:

To update to v1.0 that came out today: 

 

- I needed to `chown -R 1000 /path/to/appdir` to update it to the new uid used by the container 

I don't understand this part. Do I do this in the appdata folder?

 

also does anyone how to turn on dark mode?

Edited by H2O_King89

Share this post


Link to post
57 minutes ago, H2O_King89 said:

I don't understand this part. Do I do this in the appdata folder?

NOT the toplevel appdata folder !- the path to your nodered appdata folder.

 

Something like `/mnt/user/appdata/nodered` 

 

58 minutes ago, H2O_King89 said:

also does anyone how to turn on dark mode?

 

https://github.com/bonanitech/node-red-contrib-theme-midnight-red#install 

 

Looks like you have to manually do some `npm`'ing 

 

Share this post


Link to post

..you got me interested in a dark theme, I just gave it a try.  

```
# Run this while Node Red is up and running:

$ docker exec -it NodeRed-OfficialDocker /bin/bash

# Then you'll be inside the running container
# Now run:
$ npm install node-red-contrib-theme-midnight-red

# And exit the container: 
$ exit

# Now from unraid, edit settings.js: 
$ vim /path/to/nodered/settings.js 

```

You'll want it to look like: 

```

....

editorTheme: {

  page: {

    css: "/usr/src/node-red/node_modules/node-red-contrib-theme-midnight-red/midnight.css"

  }

}

```

Then restart nodered docker from the unraid docker GUI.

Share this post


Link to post
NOT the toplevel appdata folder !- the path to your nodered appdata folder.

 

Something like `/mnt/user/appdata/nodered` 

Sorry that's what I meant. what do I do in there?

 

Do I make a file in this path?

/mnt/user/appdata/nodered/path/to/appdir

 

And thank you, got dark mode working!

Edited by H2O_King89

Share this post


Link to post
On 10/1/2019 at 1:44 PM, H2O_King89 said:

Sorry that's what I meant. what do I do in there?

 

Do I make a file in this path?

/mnt/user/appdata/nodered/path/to/appdir

 

And thank you, got dark mode working!

you need to run the command  mentioned from a terminal window,  which you should be able to launch from your unraid main page or by using ssh/telnet to login to your server.

Share this post


Link to post

Looking for some help or someone to point me in the right direction. I recently just started using Nodered and would like to move all my home automations from Apple Home to Nodered. Having a hard time wrapping my head around on thing. I have lights and switches on my first floor that needs automation written and if possible, would like to put them in one flow. I tired with bigtimer but ran into an issue with having more than one bigtimer in the flow, it still runs the no condition if the light is off and will shut off the light even though it should be on for the step above it. Good example would be what I have written for floor lamp 1. It will turn on at 4:30 am because it meets the time but then when it hits the bigtimer below it to check for sunset, it will shut the light off.

Floor lamp 1, needs the following schedule

At 4:30 AM, light need to turn on and shut off at sunrise.
At sunset, light needs to turn on and shut off at 9:00 pm.
Candle light switch

Turn on at sunset and turn off at sunrise.
If it’s Christmas Eve Day or Christmas Day, keep lights on.
Outside light switch

Turn on at 5:00 AM and turn off at sunrise.
Turn on a sunset and turn off at 9:00 pm

Share this post


Link to post

Wondering if Dashing should be replaced with Smashing? They took it over.

 

https://github.com/Smashing/smashing

Share this post


Link to post

So, there¨s a docker image called MQTT and Mosquitto. What's the difference and which one I should be using?

Share this post


Link to post
1 minute ago, lsaranto said:

So, there¨s a docker image called MQTT and Mosquitto. What's the difference and which one I should be using?

I've been using the MQTT one for years and have never had an issue with it.

 

Share this post


Link to post

My MQTT one is mosquitto but has a nifty way of adding users and passwords. I have been using it for ages with thousands of connections a day and it has never let me down. (Thats why I haven't updated it!).

It's easy to try stuff with unraid, so try them both!

Share this post


Link to post

Hi

 

I am interesting in running this - https://github.com/greghesp/assistant-relay

 

It says it runs on node.js but should it work on nodered as well?

It says to download the package zip file "and then use npm i to get started", but I have no idea where to place this zip file?

 

Thanks!

Share this post


Link to post
On 1/10/2020 at 2:16 PM, spants said:

My MQTT one is mosquitto but has a nifty way of adding users and passwords. I have been using it for ages with thousands of connections a day and it has never let me down. (Thats why I haven't updated it!).

It's easy to try stuff with unraid, so try them both!

Can we get updated versions based on tags? This way we can keep this stable version under one tag but also be able to try out the newer versions.

 

As nice as it is staying on one version the updates can be really important for security and performance.

Share this post


Link to post
15 minutes ago, Skylord123 said:

I wrote a post about installing MQTT in Unraid using your container. If anyone needs help they can check it out:

https://skylar.tech/installing-mqtt-under-docker/

 

A good number of my readers requested this post. Figured it would be good to put this here for others.

Excellent work!. Thank you.

Share this post


Link to post
14 hours ago, Skylord123 said:

Can we get updated versions based on tags? This way we can keep this stable version under one tag but also be able to try out the newer versions.

 

As nice as it is staying on one version the updates can be really important for security and performance.

I tested Mosquitto 1.6.8 and Alpine Linux 3.11 today but had to revert to 1.48 and linux 3.3 as bug found, sorry

Edited by spants

Share this post


Link to post

i tried to install mqtt

 

I need this for mqttt broker

https://github.com/ElectricBrainUK/UnraidAPI

 

 

But when trying to start mqtt, i get this error

Warning: store_clean_interval is no longer needed.
Error: Duplicate user value in configuration.
Error found at /config/mosquitto.conf:21.
Error: Unable to open configuration file.

 

anyone can help pls

 

After that , i need to connect both home assistant and the unraid API to it.

Share this post


Link to post
16 hours ago, skank said:

i tried to install mqtt

 

I need this for mqttt broker

https://github.com/ElectricBrainUK/UnraidAPI

 

 

But when trying to start mqtt, i get this error

Warning: store_clean_interval is no longer needed.
Error: Duplicate user value in configuration.
Error found at /config/mosquitto.conf:21.
Error: Unable to open configuration file.

 

anyone can help pls

 

After that , i need to connect both home assistant and the unraid API to it.

I don't know about the UnraidAPI stuff but the error you are getting indicates you have the same user defined twice in your config. I actually helped someone out that was having this same issue on my blog (scroll down to the comments): https://skylar.tech/installing-mqtt-under-docker/

Share this post


Link to post
8 hours ago, Skylord123 said:

I don't know about the UnraidAPI stuff but the error you are getting indicates you have the same user defined twice in your config. I actually helped someone out that was having this same issue on my blog (scroll down to the comments): https://skylar.tech/installing-mqtt-under-docker/

HI,

So i've read too, but i cant find where that config is?

on the cache drive, the usb stick? where do i find it?

Share this post


Link to post
16 minutes ago, skank said:

HI,

So i've read too, but i cant find where that config is?

on the cache drive, the usb stick? where do i find it?

When you installed the container you chose your appdata location. It is wherever you selected for that. You can always edit your containers to see what paths you used (it should also display this from the docker list in Unraid).

Share this post


Link to post
11 minutes ago, Skylord123 said:

When you installed the container you chose your appdata location. It is wherever you selected for that. You can always edit your containers to see what paths you used (it should also display this from the docker list in Unraid).

yeah i looked there

i see folders.. but nothing for users..

 

Share this post


Link to post
21 minutes ago, skank said:

yeah i looked there

i see folders.. but nothing for users..

 

You need to go to the path you installed your container's appdata path and modify the config file. Inside that config file you have two users defined. Just remove one of them.

Share this post


Link to post

HI, im also a first time user installing MQTT on unraid via the docker template on the app store. The default/sample config file downloaded does have "user mosquitto" defined twice which causes the error below and the container does not start. Removing the duplicate config entry fixes the issue, but will continue to trip new users.

 

Error: Duplicate user value in configuration.
Error found at /config/mosquitto.conf:21.
Error: Unable to open configuration file.

Share this post


Link to post
1 hour ago, Nosbus said:

HI, im also a first time user installing MQTT on unraid via the docker template on the app store. The default/sample config file downloaded does have "user mosquitto" defined twice which causes the error below and the container does not start. Removing the duplicate config entry fixes the issue, but will continue to trip new users.

 

Error: Duplicate user value in configuration.
Error found at /config/mosquitto.conf:21.
Error: Unable to open configuration file.

Thanks for the info - I have fixed it. Strange that it has only just come to light, that hasn't changed for years!

Edited by spants

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.