#255

Sdílet
Vložit
  • čas přidán 9. 06. 2024
  • Grafana, InfluxDB, and Node-Red on a Raspberry Pi form a dream team for visualization of IOT data. The setup is not easy, but this is what we will do together.
    Today
    - We will install everything necessary on a Raspberry Pi using Peter Scargill's newest script
    - We will compare time-series databases like InfluxDB with SQL databases and see their advantages for IOT
    - We will create an influxDB database and connect it to a Node-Red flow to read data of my weather station
    - We will create a Grafana data source to get access to the InfluxDB database
    - We will develop a dashboard with several panels showing the different weather data
    - We will see the power of a time-series database combined with Grafana
    - And in the end, you can download a ready-made SD card for your Raspberry
    Links:
    SD card image with Node-Red, InfluxDB, Grafana:
    drive.google.com/open?id=1MnJ...
    Node-REd example Flow: drive.google.com/open?id=1u2y...
    Peter's Script: tech.scargill.net/the-script
    Raspbian installation: hackernoon.com/raspberry-pi-h...
    Grafana videos: / @earlyadopterme9292
    Samsung SD cards: s.click.aliexpress.com/e/90y5IJW
    Raspberry Pi 3+: bit.ly/2tNdULR
    #NodeRed, #InfluxDB, #Grafana, #RaspberryPi
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com/sensorsiot
    My Patreon Page: / andreasspiess
    Alternative: flattr.com/@andreasspiess
    My Bitcoin address: 19FSmqbBzb5zsYB1d8Bq4KbxVmezToDNTV
    If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
    For Banggood bit.ly/2jAQEf4
    For AliExpress: bit.ly/2B0yTLL
    For ebay.com: ebay.to/2DuYXBp
    profile.php?...
    / spiessa
    www.instructables.com/member/...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
  • Věda a technologie

Komentáře • 592

  • @HendraKusumahiot
    @HendraKusumahiot Před 5 lety +73

    "We like programming, but we love result" Quote of the day. Thank you sir

  • @richard_wenner
    @richard_wenner Před 5 lety +64

    Andreas - another perfectly formed video - in every aspect. We appear to run parallel lives as I was working on this for my open air pollution monitoring project. There must be more than 24 hours in the Swiss day as I can't for the life of me see how you manage to produce a) so much high quality material, b) over such a diverse range of subjects c) in such depth in such a short space of time and d) in a Swiss accent!!!).

    • @AlenTuzlak
      @AlenTuzlak Před 5 lety +6

      I agree 100%. Andreas is amazing!! Thank you so much Sir for sharing knowledge with everyone and great commitment on making amazing videos !!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +10

      We are slow here. That is probably why our time runs a little slower... I hope the content still helps you a little for your pollution project!

    • @richard_wenner
      @richard_wenner Před 5 lety

      @@AndreasSpiess Yes, it will. The issue is the simplest way of amassing JSON over https from many disparate sources. Not sure how to organise the secure apis.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Security is not my specialty, fortunately ;-)

  • @aux789
    @aux789 Před 5 lety +19

    Amazing! I had to stop the video on two occasions I was so overwhelmed by the sheer power of this suite of FREE software! Thanks Andreas!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      That is the power of CZcams. You can use it at your pace ;-)

  • @opsahle2
    @opsahle2 Před 5 lety +6

    Extremely usefull video - I am very happy to be one of your Patrion-supporters! Keep it coming, Andreas!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Thank you for your support! It is always good to read that my videos are useful...

  • @noealves8400
    @noealves8400 Před 4 lety +1

    Mr Spiess, my deepest gratitude for your work and for sharing great content in a video like this. I became your Patreon today to support your work!

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety

      Thank you for supporting the channel. I appreciate it!

  • @springwoodcottage4248
    @springwoodcottage4248 Před 5 lety +4

    Super useful! Displaying data in a meaningful & useful way is always a great challenge between providing what is of interest to a range of user interests & storing what is needed to create this output in such a way that it is easily accessed & does not need a lot of storage. There were several great ideas within this both as shown with this software or for writing ones own software on different hardware. Thank you for sharing!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      You are welcome. And I agree that retention strategies are not easy to define these days with very cheap disk space...

  • @AndreasSpiess
    @AndreasSpiess  Před 5 lety +13

    The timestamps of the example data are from 2019-02-06. Please choose an appropriate date range in Grafana if you want to display them

  • @mikethezipper
    @mikethezipper Před 5 lety +1

    You are seriously amazing. Thank you so much for this video - I've spend days trying to get this to work, and with just a couple hours and following your video, I've got everything up and running.

  • @hoekbrwr
    @hoekbrwr Před 5 lety +1

    This video just gave me the push to convert my smart energy meter and heating data into Grafana and Influxdb. Until now I was using Highcharts and the Dashboard of Node-RED which is so difficult to setup. Now I can add historical data. Great video, thanks Andreas!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      I transferred historical data exporting to CSV and creating the needed input strings for influxDB with Excel.

  • @voltlog
    @voltlog Před 5 lety +10

    This set of tools is very flexible, I am using it myself and I was amassed at how easy it was to add a new device and process it's data once the whole system is configured. In my case I didn't have to go through the setup process because I just used a ready made raspberry pi image from the BigClown IoT bundle.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +2

      I think it is not so easy if you have to do everything from the ground. So we both were happy we were able to stand on the shoulders of others ;-)

  • @santorcuato
    @santorcuato Před 5 lety +3

    I have no words Andreas. Astonishing. Thanks.

  • @PeterScargill
    @PeterScargill Před 5 lety +62

    Nice to see you're making good use of "the script" Andreass.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +15

      I always like to stand on the shoulders of big men ;-) Makes me more productive! Like that, everybody can profit.

    • @PeterScargill
      @PeterScargill Před 5 lety +14

      @@AndreasSpiess Hah. I do that all the time. My script enables software like Node-Red, written by people cleverer than me!

    • @deangreenhough3479
      @deangreenhough3479 Před 5 lety +7

      Thank you both for your wonderful work. I have a beautiful image on my Pi and it’s all working 😁🏴󠁧󠁢󠁥󠁮󠁧󠁿

  • @hsmptg
    @hsmptg Před 5 lety +8

    Just to remind that "Retention Policies" in InfluxDB comes connected with the concept of "Continuous Queries". Maybe in a future video you can explain that. Great video as always. Thanks!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +3

      I mentioned the compression, but not in detail. I do not plan a video on that because it is very special. Maybe once part of another one. Who knows?

  • @rgrf
    @rgrf Před 3 lety +1

    Well done you. This, #255, is my 'eureka' tutorial. Thank you for explaining why AS WELL AS how to. I've read the rest of the Internet and really should have started here. Sensors have been my professional 'thing' for decades and I can now see a better way to process and examine the data. Thank you.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Maybe you also watch my videos about IOTstack...

    • @rgrf
      @rgrf Před 3 lety

      @@AndreasSpiess I did Andreas and for the first time doing useful things with this stack. More thanks. My stuff is at rogerfrost.com. Best wishes.

  • @mrtarantl
    @mrtarantl Před 5 lety +5

    Amazing video for home use 😇 I have a similar setup running in my new flat, including Gas-Heater control and a combination of all sorts of different mcus with sensors and actuators based on various projects with a centralized mqtt/influx/nodered/grafana server (mostly own-software, tasmota...)
    Keep up the amazing work - your channel is still one of the best (mostly because you don't have annoying intros and music or semi-funny jokes ;) )
    Greetings from Austria

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +2

      Thank you! Jokes are not easy in an international environment. Glad to read that you like them.
      I like music, but in videos like that, I hate it myself. This is why I do not use it...

  • @chuxxsss
    @chuxxsss Před 5 lety +4

    I did find another script from another person with red-node. It is handy for solar and batteries. I hated manually install parts of Peters script the .npm title. But Peter has done a great Job with this script with Mr Sharky. I love it. Peter is a great person thank goodness we have him around. The graphics I think was made by him too.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +3

      With his new version, you should not need any manual install...

  • @sausagehider
    @sausagehider Před 5 lety

    Such a coincidence. I was up until 1:30 am this morning looking at almost the exact same thing.
    Excellent content, I will give it a go today. Thanks. Martin.

  • @christosmoutevelis4896

    Thank you , always something to learn every week in an easy way

  • @manuelorellanahinojosa7356

    Your channel is pure gold!!
    Greetings from Chile!

  • @princebanini
    @princebanini Před 4 lety

    this was an eye opener for me. always a good time learning from you

  • @jab5569
    @jab5569 Před 3 lety

    Nice work Andreas! Thank you for putting this together, very informative.

  • @viniciusnoyoutube
    @viniciusnoyoutube Před 5 lety

    Fantastic job!
    Just what I was needing for my project.
    Thank you!

  • @klogaraa
    @klogaraa Před 5 lety +1

    Amzaing effort from you and Pete's , keep the videos coming Andreas 👍

  • @MrAtarifreak
    @MrAtarifreak Před 5 lety +3

    Thank you for your great video. These are the projects that I can learn from a lot....

  • @wilman_studio
    @wilman_studio Před 5 lety

    Awesome guide to getting Grafana up and running, thank you :)

  • @alanjrobertson
    @alanjrobertson Před 2 lety

    Really helpful explanation of the benefits of time series databases for IoT, thank you 👍👍

  • @yura979
    @yura979 Před 5 lety +5

    I swear, you are a Swiss mind reader or something! I was sitting here, building my Node Red + Grafana + InfluxDB setup and your video got uploaded. O_O

  • @thorsten9211
    @thorsten9211 Před 4 lety +1

    Thank You!
    I love how well structured your videos are. Suits my taste as german engineer ;)

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety +1

      Thank you! Maybe you also watch the one about Docker. It simplifies the installation of those programs

    • @thorsten9211
      @thorsten9211 Před 4 lety

      @@AndreasSpiess Yes i did and everything is working nicely together. :)

  • @athanasiosstefanopoulos5211

    What another great video, thank you Andreas! Your video inspired me for changing my implementation on how to use historical data.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      I hope you will be successful!

    • @athanasiosstefanopoulos5211
      @athanasiosstefanopoulos5211 Před 5 lety

      @@AndreasSpiess The InfluxDB was really fast and easy! I installed influxDB in a chrooted Linux on an Android TV box where I am using it as a mqtt broker and node-red administrator. Now I am testing the first data recording from my air conditioning energy meter. Next step to install Grafana.
      And all these thanks to you again :)

  • @PileofKyle
    @PileofKyle Před 4 lety +1

    You're awesome, thanks for sharing this knowledge. I've been learning a lot from you.

  • @christopheralexander8763

    Great video, Andreas. Really enjoyed this one.

  • @ajaybnl
    @ajaybnl Před 5 lety

    Everything new. I had watched twice to understand. I want this setup too for my home sensors. Thank you dear.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      You are welcome!

    • @ajaybnl
      @ajaybnl Před 5 lety

      Im now successfully using grafana influxdb with mosquitto (EspMqtt) using node red on my OrangePi Lite.

  • @regenerativelife991
    @regenerativelife991 Před 5 lety +2

    thanks a lot for this research and experimentation. we will definitely use this for our farm.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      I hope your application will add some value :-)

  • @drfritz142
    @drfritz142 Před 5 lety

    Thank you. This is what I needed. I'll get to work right away...

  • @rainbowforest09
    @rainbowforest09 Před 5 lety +1

    This is what i'm looking for. Thanks!!

  • @portfedh
    @portfedh Před 3 lety

    Thank you so mucho for this. I succesfully followed this tutorial and now have an energy monitor and a water pressure sensor working and displaying data in grafana.

  • @followthetrawler
    @followthetrawler Před 3 lety

    Very nice Andreas - I've just been playing with InfluxDB and Grafans with InfluxDB fed with SNMP data by telegraf, all in docker containers. This video has given me an idea to move that on and try to connect my weather station rather than just looking at my Internet traffic :) I'll need to try to understand my stations data stream format which should be fun.
    Thanks for another great video and the idea...

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      There are a few other videos about weather station hacking and Pi and Docker (IOTstack)

  • @Argosh
    @Argosh Před 5 lety +2

    I've been agonizing over my heating system lately (I have been using a homebrew controller for my parents house heating unit for over 10 years now). Now I can just copy your image and dump my logging data in there while using a esp32 to control all the relais and sensors. Thank you so much!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      I hope you will be successful in transferring the data from your source into InfluxDB.

  • @Aemilindore
    @Aemilindore Před 5 lety

    Thanks so much for providing the SD image. Thanks thanks thanks

  • @abrax5
    @abrax5 Před 5 lety

    Really inspiring ideas, thank you! I'm thinking to move my solar panel yield visualization to an influxdb and grafana stack.

  • @avejst
    @avejst Před 5 lety

    Fantastic project👍😀
    Thanks for sharing😀👍

  • @tarmiziizzuddin337
    @tarmiziizzuddin337 Před 5 lety

    Thank you very much sir! Always love your video

  • @einars899
    @einars899 Před 5 lety +3

    Interesting and useful video!
    It seems we are heading back to remote sensing? I like that.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Sensing and acting based on these data is IOT for me ;-)

  • @leedevries5660
    @leedevries5660 Před 5 lety

    Great work again Andreas!

  • @rbid
    @rbid Před 3 lety

    Excellent video. Thanks.
    Greetings from the galilee

  • @RicardoRodriguesPT
    @RicardoRodriguesPT Před 5 lety

    Another excellent video. Thanks!

  • @desy666
    @desy666 Před 5 lety +2

    Useful and interesting as usual 😉

  • @qamarkilani551
    @qamarkilani551 Před 5 lety

    Many Thanks Andreas - Well Done and hope to see more

  • @superconfort
    @superconfort Před 5 lety

    Thanks, this was just what I needed

  • @PhG1961
    @PhG1961 Před 5 lety

    Waw, excellent work ! Heavy stuff aswell !

  • @victorchorques4893
    @victorchorques4893 Před 5 lety

    Great job!! Very useful video.

  • @MehrdadGivehchi
    @MehrdadGivehchi Před 5 lety

    What a great video. Many thanks!!!!

  • @ThWischi
    @ThWischi Před 2 lety

    Dear Andreas, great Video! Quite complex things explain so amazing short. Stuff like this can only see very rarely. Love your comments why you choose this tools. Thank You! Greets Thomas

  • @ursmii_
    @ursmii_ Před 4 lety

    I took the newest RasPi-4 & OS Buster, used your selections @2:53 and the latest version of peter's script. It took 17 minutes for a full installation. Thanks for this video

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety

      Very fast! Did you try the docker Installation?

    • @ursmii_
      @ursmii_ Před 4 lety

      no I did not. I'll try to create a surveillance for 24/7 running PCs (if message does not arrive periodically - alert)@@AndreasSpiess

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety

      Interesting project!
      We created a whole project with lots of useful containers (IOTstack)...

  • @wei48221
    @wei48221 Před 5 lety

    Awesome as always.. Thank you...

  • @MitchellWongHo
    @MitchellWongHo Před 5 lety

    Excellent demonstration of how little you need to collect and visualise data. I have a spare PINE64 which I'd like to try using these building blocks

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      You have to check which operating systems the script supports if you want to use it.

  • @partscience
    @partscience Před 5 lety +4

    Wao!!!! Great idea!!!

  • @laveur
    @laveur Před 5 lety

    Thanks for a great video! I use Influx and Grafana professionally at work to analyze metric data from a mobile application. Thankfully I have an entire team of people to manage maintaining those systems. This kind of inspires me to see if I can hack my solar system on my roof (it uses zigbee apparently) to get data into influx and match it with real time weather so I can analyze better how my solar is performing.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      At least you would have great support for your project. Not as we "simple people" ;-)

  • @alexanderkirchnerat
    @alexanderkirchnerat Před 4 lety

    Sehr geil, wie immer! Vielen Dank!

  • @Alby_VA
    @Alby_VA Před 3 lety

    Big thanks. I was using the Node Red Dashboard and it was awful, nevermind browser issues if you left it on the dashboard page too long. Pushing my data to InfluxDB and then viewing beautiful charts in Grafana from that DB information is awesome. Thanks,

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      I also like Grafana...

    • @Alby_VA
      @Alby_VA Před 3 lety

      @@AndreasSpiess I would also add that I'm using Python on a (Pi Zero W) to push MQTT data to a remote server listening for MQTT and is hosting InfluxDB, Node Red, and Grafana. You just need to install Paho MQTT on the Pi (pypi.org/project/paho-mqtt/). Then in the script just import it (import paho.mqtt.client as mqtt), define the remote server (mqttBroker = 'foo.server.com'), set the client with client = mqtt.Client(), connect to the remote server, client.connect(mqttBroker), and then for every variable assign to your data feed, you then just publish it with something like this: client.publish('Temperature', temperature). Where temperature = bmp.temperature, a feed coming from a BMP390 sensor. I any case, following your instructions on Influx DB, Node Red (MQTT->InfluxDB), and Grafana has been a life saver. It sure beats trying to chart something from file data. :-)

  • @peopledrivemecrazy
    @peopledrivemecrazy Před 5 lety

    Amazing work!

  • @LucasGuillemette
    @LucasGuillemette Před 5 lety

    I'm a programming student and I was this kind of data retention policy saves a lot of work. Glad I don't have to reinvent the wheel.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      We live in a good time with all this open source software...

  • @DaveBrown1
    @DaveBrown1 Před 2 lety

    Excellent, very good.

  • @AbcDef-hl2ic
    @AbcDef-hl2ic Před 5 lety

    Congratulations and thank you again!

  • @Ne3M1
    @Ne3M1 Před 4 lety

    Awesome video!

  • @nikolaimorozov6383
    @nikolaimorozov6383 Před 4 lety +1

    Many thanks for your video!

  • @kwazar6725
    @kwazar6725 Před 5 lety +1

    Cool. Great stuff Andreas.

    • @kwazar6725
      @kwazar6725 Před 5 lety

      Its all the craze doing opensauce. I wonder what made u not choose non elk and or prometheus. I suppose grafana is top for these requirements. Miss lora and esp32 a bit... a lot to be said about long range iot.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Thank you!

  • @TechnoAutomation
    @TechnoAutomation Před 5 lety

    Great explained sir.

  • @YouGenom
    @YouGenom Před 5 lety +1

    Great, finally this seems to solve my IT problems for IoT. HomeAssistant is also good but seems to have an easy start with challenging future. (developing all the plugins etc. for simple additional custom features!)

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      So far I always used Node-Red and do not know Home Assistant.

    • @YouGenom
      @YouGenom Před 5 lety

      @@AndreasSpiess For whom, who might be interested... Home Assistant (HA) has MQTT capability. An MQTT broker can direct messages to HA and HA will store them and display in a nice manner. Only by writing some making configuration files, one can trigger alerts, actions etc... e.g. I could set up a threshold for humidity sensor, after crossing this level, HA triggered a relay, which controls the fan. It is neat but extending it seems to be difficult.

  • @SmithyScotland
    @SmithyScotland Před 5 lety +1

    Thank you. I've been struggling for years with mysql and an inflexible php graphing library.

  • @michaelgruner941
    @michaelgruner941 Před 5 lety +1

    Grüezi Andreas, as always a great video with many explanation that everybody can follow and learn a lot. todays topic is very sexy, since data/process mining is the new lubricant of the world. as already told on TTN con I love your 'Mutterwitz'. cheers Michael (guy form Sulzer)

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      It was long overdue for me as I wanted to use it for my installation.
      I hope you had a good trip home!

  • @kokoscom
    @kokoscom Před 5 lety

    Excellent video Andreas. Clear instructions and to the point. We have used mqtt (activeMQ) +nodered+mysql and we were planning to use influx dB since its performance is more suited to IoT and time series data. Node red is really amazing and can help you to get to the results without the need of programming. Grafana (even if its free) its excellent visualisation tool. We have everything working under Ubuntu VPS, docker images of MQTT, node red, mysql, grafana etc and the performance is more than enough (more than 25k measurements in one minute transfered from the remote sensor via mqtt to the database without any issues)

    • @kokoscom
      @kokoscom Před 5 lety

      it would be great if any of you wants to collaborate for any EU funded research based projects. (as mentioned most of us live parallel lives.. and do similar things)

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      25k points per minute are quite a lot! I did not know this is possible. Docker is a good concept. But with Peter's script, it is also quite easy to install. And we have full access to the RPI hardware...

  • @90daner
    @90daner Před 3 lety

    you are my new god sir! thank you so much!

  • @MrDenisJoshua
    @MrDenisJoshua Před 3 lety

    Greate video... thanks a lot :-)

  • @asiw
    @asiw Před 5 lety

    Happy birthday Andreas, hope you have a good one.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Yes, I had a good one. My new bike for the Danube tour arrived right that day :-)

  • @lucapesce3335
    @lucapesce3335 Před 5 lety +1

    Cool, I use InfluxDB for my home, but never understood the retention policy, thank you.
    I have three point about your setup:
    - InfluxDB is part of the TICK stack, that has Chronograf as data visualization tool in place of Grafana, a different flavour of the same concept someone might prefer, and has Telegraf agent you can use to collect raspberry's own metrics to track its health, feeding them through the same InfluxDB and Grafana combination
    - This raspberry use case tends to put some pressure on the SD because of the big quantity of data written and red, it is important to consider an external HDD and a backup strategy (obviously you already know this)
    - All those "installations" and "SD images" are things of the past, you need to switch to the container approach, I am talking about Docker; that will give you ease of installation, configuration, resource balancing, sharing, testing different setup, replication of setup and tenths of other things you will discover

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      1. I made a video about SD cards and showed how you can enable an HDD. So far I had no problems with my SQLite database. The number of points written is not a lot.
      2. As soon as Docker gives full HW access it will be a good solution also for the RPI. I had problems to access a simple USB port on my PC. Otherwise a good concept with a lot of potentials.

  • @icecaper
    @icecaper Před 5 lety

    Great video again, Andreas and superb timing as I too have a project which requires this type of sensor recording/display. Have you used an IOT2020?

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      No, I usually do not use such "professional" components like the IOT2020

  • @karenlalayan3700
    @karenlalayan3700 Před 5 lety

    Number One!!! Thanks.

  • @uweri_3851
    @uweri_3851 Před 5 lety

    Thanks for IMG file. Awesome stuff.

  • @DavidL3430
    @DavidL3430 Před 5 lety

    Great video and very timely for me as I am looking to complement my old RRD based graphics site with Grafana and Infuxdb.
    I have used Pete’s ( and Mr Shark’s) script along with his node-red big timer for years!
    While I do enjoy node red, I am looking to lower my dependence on it. Thus hints of ways to direct mqtt data directly to influxdb are high on my curiosity list!!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      A other viewer commented he is using python scripts instead of Node-red

    • @RalfVogler
      @RalfVogler Před 5 lety

      github.com/influxdata/telegraf/tree/master/plugins/inputs/mqtt_consumer

  • @user-mq3bf7zk1e
    @user-mq3bf7zk1e Před 2 měsíci

    you r amazing , thanks

  • @Hex-Mas
    @Hex-Mas Před 4 lety +1

    Thanks for this video

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety +1

      You are welcome!

    • @Hex-Mas
      @Hex-Mas Před 4 lety

      Im waiting to try this when I get another rpi3. I want to have as many sensors i can stuff into a rpi3 with a display to let me know as much info as possible.

  • @veljac99
    @veljac99 Před 5 lety

    Nice video Andreas!
    In my case, instead of manual instalation, since I started using Home Assistant a few days ago, I just added InfluxDb and Grafana pluggins in Home Assistant which was like 5 minutes effort (Node Red I already added before).
    Anyway your instructions helped a lot for a fast start. And a sugestion - if you didn't already - check out Home Assistant. Nice platform + combined with Mosquitto, Node Red and now InfluxDb and Grafana ... make it very interesting.
    I use some manually programmed microcontrolers (bathroom humidity and fan control), Nextion displays from your video over MQTT, and dwo days ago I reprogram own application for LED strip and Sonoff Basic with esphomeyaml. Addionally using Alexa over Node Red, that fits very niceli into Home Assistant. New graphs from bathroom humidity, temperature and fan control is today nice addon.
    Point is that any additional knowledge nicely fits in picture. Constant evolution...

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Other commenters also mentioned that it is easy with Home assistant. Maybe I have to try it one...

  • @familyplans3788
    @familyplans3788 Před 4 lety

    just putting up xmas lights but as soon as that is done i will be following this video and cant wait to use Mr. Scargills 'script'

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety +1

      Maybe you watch the „ultimate pi server“ video first.

    • @familyplans3788
      @familyplans3788 Před 4 lety

      @@AndreasSpiess LOL i was just wondering that !! good job the mrs LOVES your accent so i get away with watching geeky videos

  • @alainvihumbira8354
    @alainvihumbira8354 Před 4 lety

    Thank you for the video, otherwise I have a question is it possible to integrate Grafana in a php page or is it an open source that can be easily integrated into a web page in your site?

  • @asiw
    @asiw Před 5 lety +1

    This is a new concept for me (and it's very interesting), I have used a more traditional sql approach based on the work by Csongor Varga "Working with time series data in Node Red with SQLite" on CZcams. Your viewers might find the comparison interesting.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      SQL is always a possibility. It is stable and does its job.

  • @realsushi_official1116

    Very interesting and easy to jump in.
    Actually I was using a Python Jupiter Notebook for Receiving, parsing, sending payload to the MQTT broker. This solution is great, especially for future maintenance

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      I never thought about using Jupiter Notebook for something like that. Now I have to look into it. Tanks for the info.

  • @banzobeans
    @banzobeans Před 5 lety

    Good stuff!

  • @joakimbergstedt4390
    @joakimbergstedt4390 Před 4 lety +2

    Hi!
    Could you please upload the NR-flow? I am really interested in the details in the function-nodes. I am struggling with my own input from NR to InfluxDB. :)

  • @valenmilimilo2498
    @valenmilimilo2498 Před 4 lety

    muchas gracias

  • @px1690
    @px1690 Před 5 lety +8

    Hi Andreas, you might want to consider hass.io which has all as point and click install packages for all you talked about today! Great also to create automation for your tv lighting etc.. all over a web gui so easy it will withstand the wife test.

  • @eriklaken1025
    @eriklaken1025 Před 5 lety +1

    Nice for my next step, 3 monts from now, i donate when i download the sd card, Have a Nice Day and Thank,S for so much Help!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      You are welcome!

    • @eriklaken1025
      @eriklaken1025 Před 5 lety +1

      Thank You, now i have made a sensor for my garden, Very litle solarpanel, a Mini_Pro that sleeps all Day with a Ds3231 clock, wakeup Once a Day send by WiFi with a ESP8266 with turn On with mosfet and give data to mqtt. The System works and have with 18650 batery power enoff.
      The py and MQTT make a Nice http:). So you can do a lot with a ESP8862 in this way. No power problem. I see On my computer How dry the garden is and maby give iT Some action.

  • @user-lj9uu9zb4w
    @user-lj9uu9zb4w Před 5 lety

    Thank you for the hundreds of really useful, interesting, up to date tutorials and info, you're pure gold! I have a question regarding the pi node-red server side, i need to have it in a distant location and feed it with 12V batteries (car battery) and let it run node-red influx db and grafana. What would be a good way to convert 12V down to 5V for the pi? Would one of these cheap buck converters do? What do you suggest?
    thank you in advance!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      A buck converter with at least 3A should do it. There are many projects around if you search with Google

  • @stefanmarinescu5086
    @stefanmarinescu5086 Před 5 lety

    That is too complex for my level but is very nice to know that if needed, this is a good reference for learning.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      It should be easy if you install the image of the SD card to start playing and learning...

  • @gavinsmalley1513
    @gavinsmalley1513 Před 5 lety

    Another great video. By coincidence I was looking at just these products yesterday. Thank you for such a detailed but concise summary.
    I am left with one question though, since InfluxDB automatically timestamps data is there any way of moving already existing historical data into an InfluxDB without it all being given the current time?

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      AFAIK you can insert also timestamp fields. At least this is what I did when I copied data from one RPi to another.

  • @squalazzo
    @squalazzo Před 5 lety +42

    @Andreas issues are now solved, as you know by latest comments on Pete's blog... i'm MrShark :)

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +9

      Thanks! The video was already out then. I pin your comment that everyone can read it.

    • @squalazzo
      @squalazzo Před 5 lety +4

      @@AndreasSpiess problems were caused by a double install of sqlite node, 1 in Pete's node selection, 1 after that with unsafe-perms, and the sqldbs node which is unmainained from 2 years, we removed it... and now nodes are installed 1 by 1, instead on a single batch, so if 1 fails, it's just that, it does not make the others fail all together... now seems all fine

    • @squalazzo
      @squalazzo Před 5 lety

      @@AndreasSpiess minor issues solved this morning: switched to official grafana repository instead of the previous one, as now it exists and it's working properly (it was not so when i added grafana and influxdb to script, a year ago or so...)

    • @MrJanulis
      @MrJanulis Před 5 lety

      @@squalazzo Influxdb node still requires manual installation - tried just a couple of hours ago

  • @MirkWoot
    @MirkWoot Před 5 lety +2

    Lovely!. I've used InfluxDB + Grafana for almost a year, but for me the confusing part is Node-Red. I've instead used a InfluxDB libary for my ESP8266 codes, there is also for Python, etc.. and a small program "Telegraf" can send data from windows, macs, and linux machines.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      I did not know a library exists. Thanks for the tip. In my case, it is more flexible to use Node-Red as an "intermediate". And the rest (telegraph, python) is maybe for other channels ;-)

    • @steveb7600
      @steveb7600 Před 5 lety +1

      You can easily send data our from Arduino and the ESP8266 as HTTP, ingest it in a Node-Red inout, then send it out from Node-Red in MQTT on port 1883 or 8883 depending if you need certs for TLS1.2. It can do a lot as an intermediary, as Andreas said.

  • @UpLateGeek
    @UpLateGeek Před 5 lety +2

    I started out using node-red and MongoDB, because you used to be able to get free cloud-based MongoDB services, but that time-based data consolidation is really nice, so I'll probably switch to InfluxDB for my projects from now on.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      MongoDB seems to use quite a lot of disk space because it is made for other purposes. There is a comparison on the influxDB page...

    • @UpLateGeek
      @UpLateGeek Před 5 lety

      @@AndreasSpiess yeah, MongoDB seems to store a lot of metadata for every record, which could be useful for some things, but not so much for simple IoT projects.

  • @trejohnson7677
    @trejohnson7677 Před 2 lety

    I’m glad I was already on the path of least resistance w/ Grafana

    • @AndreasSpiess
      @AndreasSpiess  Před 2 lety

      Maybe you have a look at the IOTstack project. There you find everything easier...

  • @Techonsapevole
    @Techonsapevole Před 5 lety

    Thanks Andreas, did you consider to wrap this config in Docker/Docker Compose instead SD ? It would be easier to upgrade