Hi everyone,
I am new to this forum, i dont know how much things work here but i am pretty happy to be here.
i have a bit of problem with node red , am using arduino IDE and Esp 8266 to send dht11 sensor data and a rain drop sensor readings to node-red , through MQTT using Mosquitto broker on my pc. All seems to be working fine but node-red ui is not reading, i mean the gauges and charts are not responding, even the debug doesnt show anything.
please i need help.
===================
1 May 11:31:28 - [info] Node-RED version: v1.3.4
1 May 11:31:28 - [info] Node.js version: v14.16.1
1 May 11:31:28 - [info] Windows_NT 10.0.19042 x64 LE
1 May 11:31:29 - [info] Loading palette nodes
1 May 11:31:32 - [info] Dashboard version 2.28.2 started at /ui
1 May 11:31:32 - [info] Settings file : C:\Users\hp.node-red\settings.js
1 May 11:31:32 - [info] Context store : 'default' [module=memory]
1 May 11:31:32 - [info] User directory : \Users\hp.node-red
1 May 11:31:32 - [warn] Projects disabled : editorTheme.projects.enabled=false
1 May 11:31:32 - [info] Flows file : \Users\hp.node-red\flows_DESKTOP-VA8P8UI.json
1 May 11:31:32 - [info] Server now running at http://127.0.0.1:1880/
1 May 11:31:32 - [warn]
Welcome to the forum @Joy
Show us what you see in the debug node
This is almost exactly the same as I'm doing, just DS18B20 sensors rather than DHT11. If the debug output is showing the correct values then it would point to problems in your chart and gauge setup. If you're not getting anything in the debug output then it could be a problem with your MQTT broker.
ooh okk, i will check on the broker.please did you use mosquitto broker too?
The debug node show's nothing
What broker (and version) are you running?
Where is the broker installed?
Can you connect to the broker from another computer?
please can you share your work with me?
ok, so mosquit V2 does not permit external connection by default. You need to modify mosquitto.conf to permit connection from other devices on the network.
please how do i do that, am really new to everything.
or you can share the version which works best so i install that.
ok,
Firstly, for some reason, you seem to have installed the 32bit version on your 64 bit windows. so...
- uninstall mosquito
- reboot
- download the 64bit version from here
- install that.
- open services and ensure mosquitto is stopped
- edit
C:\Program Files\mosquitto\mosquitto.conf
add the following lines...
listener 1883
allow_anonymous true
- start the mosquitto service
Read about it here
Yes, I'm running it on a Linux PC, which is also my Node-RED server (plus other uses). I also used a Raspberry Pi initially when testing ideas for my system.
There's a useful tool called MQTT Explorer (http://mqtt-explorer.com) which can show you the messages being sent and received. It may show if you have something wrong, or not what you expect, in your message structures.
I'm not sure how much would be directly shareable, as it would depend on your system setup - hardware, software, libraries etc., but I'll try my best to help solve your connection problems. (If they're not solved by @Steve-Mcl's suggestion above.)
am not sure if the uninstallation is done, it gives this message
you still seem to have mosquito in program files (x86) - (32 bit) - use the standard windows uninstall program --> mosquito
NOTE: net stop requires an elevated command (right click cmd - run as administrator)
- uninstall mosquito (use uninstall program in windows settings)
- reboot
- download the 64bit version from here
- install that.
- open services and ensure mosquitto is stopped
- or from an elevated administrator cmd prompt,
net stop mosquitto
- edit
C:\Program Files\mosquitto\mosquitto.conf
add the following lines...
listener 1883
allow_anonymous true
- start the mosquitto service
- or from an elevated administrator cmd prompt,
net start mosquitto