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


429 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
Link to post
  • Replies 428
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Ya....just go into the Node-Red Docker template and change the repository as I said above and hit apply.......That's all I had to do. Love it

This is where I will be hosting some dockers that I find useful, built on a Phusion or Linuxserver base. Add to your templates if you wish.   https://github.com/spants/unraidtemplates/

Does anyone here know how to update node.js version in the Node-Red Docker Container?   docker exec -it NodeRed-OfficialDocker /bin/bash node -V The command above shows I'm on v

Posted Images

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 

 

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.

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
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.

Link to post
  • 2 months later...

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

Link to post
  • 3 weeks later...

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!

Link to post
  • 2 weeks later...
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.

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
Link to post
  • 2 weeks later...

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.

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/

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?

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).

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..

 

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.

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
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.