• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Digital Ocean, MQTT Mosquitto Broker and Node-Red Dashboard

Q&A Forum › Category: ESP32 › Digital Ocean, MQTT Mosquitto Broker and Node-Red Dashboard
0 Vote Up Vote Down
Gayland Monken asked 3 years ago

I’ve been trying to load the above two projects onto the Digital Ocean VM system with the following successes and  problems.  The successes were that I was able to get subscribed to Digital Ocean and load both the MQTT Mosquitto Broker and Node-Red Dashboard with a few challenges.

  1. Under “Autostart Node-Red on Boot,”  should the Node-Red service be “nodered.service” or “node-red.service”?  When creating it, ” nodered.service”  is used but when enabling it “node-red.service” is used.  I believe it has to be one or the other in both instances. I used “node-red.service.”
  2. Under ” Securing Node-Red Software with Username and Password,” I could never get my pw to work when it came up on my browser using “admin” as the username and my pw.  I tried three or four times and never could get it to work.  I took a screen shoot of the hash string and put it in the modified “setting.js” file manually but never had any luck when I saved and rebooted it.  On my PC Node-Red Dashboard came up unsecured and on my Ipad it couldn’t get it through the login page using admin as my username then my pw.  My question is, how do I get Node-Red Dashboard to work using my pw?
  3. Concerning the above hash string, you said to “copy the hash string to your clipboard and open the Node-Red settings file.”  I’ve tried every way that I know of to copy that string without any luck.  First, I can’t seem to select it to copy it and then can’t paste it.  I’m using a PC, going on the Digital Ocean site and opening up the terminal screen to do coding but when I gets to copying and pasting the hash string, I can’t do it.  I always had to take a screen shot and copy it manually into the “settings.js” file.  Quite laborous.  My question is how can I copy it to my clipboard and paste it into the modified”setting.js” file  from the terminal (black) screen?
  4. When working in the terminal (black) screen, I always had to have my “Caps Lock” to enter material.  For lower case, “caps lock” on and for upper case “caps lock” on with shift.  Would you have any idea why this is happening?  It seems to be working backwards.

If you can help me with any of these problems I would appreciate it.  And thanks for the good work in developing these projects.
Gayland

Question Tags: MQTT Mosquitto Broker, Node-Red
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hello,

  1. You are correct. The command should be (we will update the guide): Access Node-RED Dashboard from Anywhere using Digital Ocean
sudo systemctl enable node-red.service

2. I’ve never experienced that error. It didn’t work one time for me (because I’ve misspelled the password while typing). When I type the exact password and press enter, the has key will work for me every time…

3. Are you using PuTTY? If so, when you selet with your mouse a string in the PuTTY console and you press the mouse right click it will automatically copy to your clipboard

4. Which software are you using? Are you on a Windows PC?

Thanks!

0 Vote Up Vote Down
Gayland Monken answered 3 years ago

Thanks for your reply.
My computer is ai PC and I’m using Windows 10.
I also started using putty instead of the terminal window that comes up on the DigitalOcean page when you load and start using your VM. I’m now able to copy and paste the hash string. But how does one copy and paste from the DigitalOceans terminal page?
Again thanks for your answers and support.
Gayland

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi again.
I think as you said Digital Ocean Terminal page only allows you to paste something that you have in your clipboard. It doesn’t allow you to copy.
I would stick to Putty because it easily allows you to copy and paste.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.