Raspberry Pi IoT Server Tutorial: InfluxDB, MQTT, Grafana, Node-RED & Docker

Raspberry Pi IoT Server Tutorial: InfluxDB, MQTT, Grafana, Node-RED & Docker

Learn Embedded Systems

1 год назад

212,287 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Burkay CANATAR
Burkay CANATAR - 29.09.2023 09:57

Do you parse the data in JSON as "String" ?

Ответить
Uffe Ibsen
Uffe Ibsen - 26.09.2023 15:45

great tutorial

Ответить
Shriya Sinha 21BLC1395
Shriya Sinha 21BLC1395 - 18.09.2023 09:53

can even upload these data to an app and control the actuaters from it only?

Ответить
Purnima Mishra
Purnima Mishra - 05.09.2023 18:44

Absolutely brilliant.

Ответить
Samir Mishra
Samir Mishra - 29.08.2023 14:38

Very helpful

Ответить
HomelessGee
HomelessGee - 23.08.2023 10:51

Do you have any suggestion to decrease power usage to change it to make a reading every 1 mins instead of few seconds. And using only solar energy from a panel? To make sure its fully autonomous

Ответить
edward luck
edward luck - 22.08.2023 13:40

After struggling for a whole day trying to get mosquitto to work on my raspberry pi, following your video had me up and running within half an hour. This is a fantastic tutorial, thank you so much for the help ❤

Ответить
Mohamade Najim
Mohamade Najim - 06.08.2023 01:52

Hi, thx for the nice tutorial but as some people said earlier, I think there is an issue with th IOTStack and Node-red.
Indeed while installing the stack the installation gets stuck and Node-red is not installed.
I found out the reason was because I have configured the Raspberry IP as Static ( like shown in your previous tutorial :) )
It seems that during installation an IP has to be assigned to the containers and without DHCP it gets blocked...
Can it be?

Ответить
Helene Live
Helene Live - 01.08.2023 17:56

Hi there, after running the linked IoT install script and script was processed, my Raspi boots up into blackscreen, no GUI available any longer. Luckily, I had a VNC server running, so I am able to connect via VNC viewer from my PC, although with a very poor resolution, that makes it nearly impossible to operate it this way. I have tried several reboots, with no success, obviously the script has "broken" my GUI, do you know how to make it available again ? I can access ssh via VNC. I'd like to avoid having to reformat my SD card again, Cheers mate !

Ответить
ahmed alsamraae
ahmed alsamraae - 31.07.2023 11:56

Hi, Thank you for this professional tutorial. I followed it and my ESP32 client can connect to the MQTT server jus if both the Raspberry pi and ESP32 on same wifi network. What am I missing?

Ответить
Rafael Machado
Rafael Machado - 21.07.2023 21:20

Well Done. Thank you. Do you know if can I do that on an EC2 AWS instance?

Ответить
Pavol Filek
Pavol Filek - 18.07.2023 19:05

NIce

Ответить
Javier Fernandez Marcos
Javier Fernandez Marcos - 17.07.2023 17:03

how do you configure MOSQUITTO? I selected the IP of my RPI3 and I am not receiving anything :(

Ответить
Yigal B
Yigal B - 30.06.2023 15:33

Whn isntalling the stack, an error appears: not enough lines to render. Any idea how to avoid it?

Ответить
Yigal B
Yigal B - 30.06.2023 11:29

Where do you discuss the static IP? Should this be set in the router?

Ответить
Dan G
Dan G - 13.06.2023 00:35

Well done and I have a number of projects in mind that will use what was explained here.

Ответить
SDN TechForum
SDN TechForum - 10.06.2023 07:12

Amazing Video, cannot thank you enough. I tried it myself and here is feedback. The github code you shared is having issue with NodeRed, see error below -
I managed to install other containers by skipping nodered and later installed nodered as systemd.
It would be nice if you can make your github repo public in that way users can report issue and can pull the working code.
############
Start Stack:
docker-compose up -d --remove-orphans
WARNING: Some networks were defined but are not used by any service: nextcloud
Creating network "iotstack_default" with driver "bridge"
Building nodered
ERROR: Cannot locate specified Dockerfile: Dockerfile

Ответить
S Y
S Y - 04.06.2023 21:38

Which raspberry bi model is used here ?

Ответить
luqman zainal
luqman zainal - 03.06.2023 20:55

Why do it shows “docker-compose : not found” when i wants to start stack? Help mee

Ответить
feedmemusictv
feedmemusictv - 03.06.2023 01:07

Thank you. Nice; quick and succinct.
One comment.Why skip over Portainer when - and this is from limited knowledge - I think you could have set everything up from within Portainer

Ответить
Scobbo
Scobbo - 02.06.2023 05:28

So one topic is for each arduino with the sensor suite, so each room has a different topic? or is it a bunch of sensors sending data to one arduino and it is transmitting different topics per room?

Ответить
Anders Jackson
Anders Jackson - 30.05.2023 20:00

Great video. But as I understand it, MQTT messages should not have a starting "/".

Ответить
edinet grunHed
edinet grunHed - 29.05.2023 18:52

subscribed done, please make updated video for this some additional dashboard components

Ответить
edinet grunHed
edinet grunHed - 28.05.2023 19:23

Thank you for this video, i learned about portainer,grafana and influxdb in same video. thank u very much

Ответить
Derek Radke
Derek Radke - 28.05.2023 13:18

You are inspiring. Thank you for sharing.

Ответить
Jonam Sanchez
Jonam Sanchez - 28.05.2023 09:03

if the RPi is running as a server, how from an outside windows computer could check the database and dashboards? or do I need to enter to RPi to check that?

Ответить
ayush patel
ayush patel - 28.05.2023 03:17

can i use 32 bit raspberry pi os

Ответить
Sean Horner
Sean Horner - 26.05.2023 20:16

Thank you! Very nice, well explained and easy to follow, bookmarking and saving your website tut too. I've got a couple renewable energy projects that I'm designing, and this should work perfectly for some monitoring hardware (tachometers on wind turbines and voltage readers on solar arrays). Also thinking about a few other metrics around the house I could definitely appreciate collecting :D.

Ответить
frollard
frollard - 23.05.2023 00:46

After what feels like 45000 tutorials, thank you - you finally gave me the insight needed to strip out unnecessary data and CHANGE the incoming data into a payload that influx was happy with. I now have a happy little chart of how bad the air is during the Canadian wildfire season.

Ответить
noSafetySwitch
noSafetySwitch - 06.05.2023 02:14

Amazing guide! I watched it a couple of times and after a few hours I had my Grafana up and running, mind you I had never done anything MQTT before. For now I am just logging the room temp with an ESP32 and an LM35 temp sensor but I will be adding a lot of stuff soon and hopefully some solar production data in the future. Thanks a lot!

Ответить
Adam Bryant
Adam Bryant - 23.04.2023 15:39

Thanks for this guide, I have referenced and linked to it because it helped me build a server on an M5Stack CM4 Stack.

Ответить
Radim Cernej
Radim Cernej - 23.04.2023 06:10

I am confused about Node-RED. Is it design-time-only tool? Or does it have to run also at runtime, after I deploy my solution?

Ответить
Kira Yamato
Kira Yamato - 19.04.2023 18:10

can you access grafana using phone for viewing ?

Ответить
Rixtronix LAB
Rixtronix LAB - 12.04.2023 03:50

Nice video, thanks :)

Ответить
José Tuzinkievicz
José Tuzinkievicz - 06.04.2023 22:19

Incredible! Thanks for that. From Argentina.

Ответить
Trevor Cook
Trevor Cook - 06.04.2023 16:32

This is great, going to try and connect the data from my Victron solar gear, Ill get back and let you know how I get on

Ответить
Sansy
Sansy - 27.03.2023 23:13

Amazing tutorial. May i have a question ?

Say i finish all the installation above, is it possible that my system can operate completely offline ? ( reading, workflow, visualization, modifying … ) Like i connect those 2 boards to the same network which doesnt have internet connection.

Ответить
Fra81
Fra81 - 27.03.2023 22:53

very useful video, I did this Iot Server, but with DHT22 temperature sensor with ESP32. Did anyone have the problem that at 7.30 am and pm for some reason grafana stop saving data? Any suggestion?

Ответить
Media Icon
Media Icon - 24.03.2023 04:25

Wow. You are doing what I have been reading so many tutorials to try to do. I am setting this up to remotely monitor a vacation property. I am looking at setting up a sensor that will measure the distance to the surface of water in a sump pit. I was wondering if you could provide some guidance on this. I was thinking of using a HC-SR04 to monitor the distance to the surface of the water. Wondering if you have any thoughts on this.

Ответить
Manas Pradhan
Manas Pradhan - 18.03.2023 07:03

Great tutorial to get started with IoT stack in R-Pi4. I am going to use this in a CM4 and use node red + mosquito talking to IO module downstream. Docker surely makes things flexible and easy.

Ответить
Henrik Boensvang
Henrik Boensvang - 14.03.2023 23:45

I was wondering. Could anyone point me in a direction where I'm using a microbit instead of the Arduino? Why.. I don't have an arduno :(

Ответить
sanjeev joshi
sanjeev joshi - 10.03.2023 20:34

it worked fine for a few hours and then started returning this error ( rc=-2Attempting MQTT connection...failed ) what might be the issue

Ответить
energyideas
energyideas - 22.02.2023 17:17

Looking into this for a mesh network of environmental sensors including ground level pollution from vehicles. Thanks.

Ответить
Marzanitrate
Marzanitrate - 15.02.2023 16:56

help i got stucked in this situation.

IOTstack Installation
Enter in the sudo password when prompted, to install dependencies
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.20.1-2+deb10u7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
fatal: destination path 'IOTstack' already exists and is not an empty directory.
IOTstack cloned
Python virtualenv found.
Python Version: 'Python 3.7.3'. Python and virtualenv is up to date.
Error getting docker version. Error when running docker command. Check that docker is installed correctly.
Docker version 23.0.1 >= 18.2.0. Docker is good to go.
Setting up environment:
pi@raspberrypi:~ $

Ответить
Michael Andersen
Michael Andersen - 05.02.2023 21:52

Great video....when I try to install thsi with a static IP adress set I can not connect to the server.
When must I set the static IP adress?

Ответить
adjbutler
adjbutler - 03.02.2023 03:05

love it!😄

Ответить
Mitchell Boswell
Mitchell Boswell - 02.02.2023 10:52

Great video! Nice work. I would love to see the set up of the sensor node

Ответить
John Sinha
John Sinha - 06.01.2023 14:33

This is a really excellent tutorial. Every step is clearly explained in detail. Just one issue: it is generally not advised to use a leading forward slash '/' for the root an MQTT topic. But that's a minor quibble

Ответить