Jump to content

Gina

Beyond the Event Horizon
  • Posts

    45,326
  • Joined

  • Last visited

  • Days Won

    120

Everything posted by Gina

  1. I've noticed that Node-RED doesn't create MQTT topics, these are created in the sketch running on the client hardware. I gather Node-RED just sets up links.
  2. Could this be the problem - the output switch has no topic? Or does the connection (link) do that? I think I need to read up on Node-RED.
  3. I'm trying to use the Node-RED web interface to set other controls and see what happens. Previously I've just been following the tutorial bit by bit - sort of "blind". The whole point of it is to be able to set up topics etc. and link clients so I shall need to see how it works if I'm to use it in the future to expand the network, once learned it should be easier and quicker than writing code I would think.
  4. Problem is I can't even operate the switch in the Dashboard!
  5. I've been following THIS tutorial. I haven't seen the NodeRed -> ESP MQTT 'ON / OFF' message in the MQTT Explorer. I feel the problem has to be in the Node-RED Dashboard as the switch control output won't turn on.
  6. Rebooted the RPi and now the Dashboard output switch is locked in the off state. I can slide it over with the pointer but the colour doesn't change and it goes back to off. This seems to be a problem with the Node-RED Dashboard. OTOH MQTT Explorer has output = on.
  7. I guess I could try rebooting the RPi that should reset the Node-RED Dashboard but don't know how much of the setting up I would lose.
  8. Here's a copy of the Serial Monitor display. Nothing showing for the output topic but nothing has been sent from the Dashboard recently as the switch is locked on.
  9. The current situation then is the latest ESP32/BME280 sensor unit is sending data successfully through the broker to the Node-RED Dashboard BUT the link the other way doesn't work - a switch in the Dashboard is supposed to send an "on" or "off" message to the ESP32 and light (or not) an LED - and furthermore the Output switch has got locked in the on position. MQTT Explorer shows the ESP32 output = on but whether that is what the ESP32 has received or just what has been sent, I don't know. Has anyone any idea how I can find out what's wrong or any suggestions? TIA
  10. Uploaded the MQTT sketch and... it works - one way. The temperature and humidity are being displayed in the Node-RED Dashboard. But the LED control is still not working. I know the LED works because I added my own version of Blink to the other sketch and the LED blinked on and off as expected. SO--- A modicum of success!! 🙂 To be sure I was seeing what I was supposed to be seeing I touched the sensor and the temperature jumped up as expected. See the spike in the graph.
  11. Think I've found it!! The BME280s I have are different from the one shown in the tutorial - SDA and SDL are reversed!! EDIT :- Yep, that was it. BME280 now working!
  12. The BME280 is not working with the older sketch so I must have wired something wrongly but I've checked everything many times and even confirmed the connections with a DMM continuity test.
  13. The BME280 module works fine with the obsy ESP32. Next I'm going to try a known working sketch instead of the MQTT one. That will test the hardware.
  14. Tried connecting the ESP32 to my Mint box and running the Serial Monitor. This showed that the BME280 wasn't working. Double checked the wiring and also that the BME280 had power. Guess it could be a duff module. When it stops raining I can take it out to the ESP32 in the obsy and see it it works with that. Doesn't explain why the LED doesn't come on though. Checked D4 and logic "0".
  15. Hardware soldered onto stripboard and all connected up. Powered from bench PSU on 5v. Devices are recognised but I can't get communications. Node-RED links showing clients connected. This is the Node-RED Dashboard. At first I could move the Output switch from OFF to ON but it won't go back, This seems to be saying that the ESP32 unit has received the on message but the LED isn't on. Seems to be nearly working but not quite.
  16. Sketch from the tutorial above now uploaded to one of my ESP32s. Now to connect the BME280 etc. After a coffee break 😁
  17. Hmm... The Node-RED Dashboard is a fiddly thing to set up and will need some studying but designing any specialised GUI is going to be like that. I reckon I can now see the way ahead but I think graphical displays are for the future and i need to get MQTT running first. OK so Node-RED is supposed to be a short-cut to designing the MQTT network and the links between clients but it seems a lot to learn all at once! OTOH the ESP32 MQTT – Publish and Subscribe with Arduino IDE tutorial has an example that almost exactly matches an ESP32 sensor unit that I want to use so I'll continue and set that up and gain experience. No doubt I can then go on to modify things to suit my other sensor units.
  18. The Node-RED Dashboard looks like one way of displaying my weather (and ROR) data and controlling the ROR. It could do all I want, so I shall install it.
  19. Until I see the advantages of Node-RED I won't set the autostart on boot yet but start it when I want it with :- node-red-start or from the Programming menu. If/when I find it useful I can make it start at boot with :- sudo systemctl enable nodered.service sudo reboot Does anyone here use Node-RED and how useful do you find it?
  20. Now installing Node-RED a slow process... Done. Running Node-RED install for user pi at /home/pi on raspbian\n This can take 20-30 minutes on the slower Pi versions - please wait. Stop Node-RED ✔ Remove old version of Node-RED ✔ Remove old version of Node.js ✔ Install Node.js for Armv6 ✔ Node v10.22.0 Npm 6.14.7 Clean npm cache ✔ Install Node-RED core ✔ 1.1.3 Move global nodes to local - Install extra Pi nodes ✔ Npm rebuild existing nodes - Add shortcut commands ✔ Update systemd script ✔ Any errors will be logged to /var/log/nodered-install.log All done. You can now start Node-RED with the command node-red-start or using the icon under Menu / Programming / Node-RED Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880 Started Sat 15 Aug 09:06:28 BST 2020 - Finished Sat 15 Aug 09:21:48 BST 2020 rm: cannot remove '/usr/bin/update-nodejs-and-nodered': No such file or directory pi@MQTTBrokerGina:~ $
  21. I have it working. No doubt I'll see what to do with it as I proceed.
  22. Next question is how to use it. I have it running but it only seem to show what's on the net.
  23. Rebooted and it's there now. Don't usually have to do that with Linux.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.