Build an IOT Server

Поділитися
Вставка
  • Опубліковано 17 кві 2020
  • In this episode I show you how to setup your Raspberry Pi server with Node-RED, Mosquitto MQTT and SQLite.
    Click "SHOW MORE" to see jump to the spot in the video that interests you:
    0:00:21 Setting up Rapsbery Pi 4 Server (Headless)
    0:02:22 Enabling SSH on the Raspberry Pi
    0:03:30 Connecting to the Raspberry Pi with PuTTY
    0:04:44 Change your Raspberry Pi password
    0:05:03 Update and Upgrade your Raspberry Pi
    0:05:30 Install Mosquitto MQTT Broker
    0:05:30 Run Mosquitto MQTT Broker at boot
    0:06:42 Install Node-RED
    0:06:50 Run Node-RED at boot
    0:06:54 Install SQLite
    Raspberry Pi 4: geni.us/rpi4b2gb
    Raspberry Pi 4 Case: geni.us/rpi4case
    Raspbnerry Pi 4 Case for POE: geni.us/rpi_POE_case
    Raspberry Pi 4 Power Supply: geni.us/rpi4power
    Raspberry Pi 4 POE Hat: geni.us/rpi_poe_hat
    MicroSD Card 32gb: geni.us/32gbmicrosd
    Commands, links and notes for this episode: pastebin.com/ppbYXXjL
    Sign up to my newsletter to get alerted of new sauces, spices, merchandise...or any other big news. www.chillichump.com/newsletter 🔥
    Banggood - bit.ly/CCbanggood
    If you would like to support me and my channel, please check out / chillichump
    Visit my main channel: / chillichump
    ----------------------------------------------------------
    Any links to products or services may be affiliate links that give me a small kickback at no cost to you, and with no influence on the content. I use Geni.us to help geo-target, ensuring you are linked to the correct country's Amazon website -- As an Amazon Associate I earn from qualifying purchases.
    🔥 Website - www.chillichump.com
    🔥 Patreon - / chillichump
    🔥 Instagram - / chillichump
    🔥 Facebook - / chillichump
    🔥 Twitter - / chillichump
    🔥 Reddit - / chillichump
    Note: All information provided by ChilliChump is furnished only for educational/entertainment purposes only. You agree that use of this information is at your own risk and hold ChilliChump harmless from any and all losses, liabilities, injuries or damages resulting from any and all claims.

КОМЕНТАРІ • 53

  • @linaso9739
    @linaso9739 4 роки тому +3

    This is getting interesting. Looking forward to the next episode!

  • @pietervheerden
    @pietervheerden 4 роки тому +4

    This series contains some excellent, well explained content. I'm looking forward to understand how all these components fit together.

  • @simplifygardening
    @simplifygardening 4 роки тому +2

    Great video mate. This is all new to me so looking forward to the next section

  • @igiveupfine
    @igiveupfine 4 роки тому +4

    holy crap man. this series is turning out to be WAY useful to me. really glad you're making it. thank you.

  • @lorddawn3752
    @lorddawn3752 4 роки тому

    I am not a linux expert, and have followed numerous tutorials to install nodered on my new pi, and yours is the first one that's worked perfectly. Nailed it, thanks @Chillichump

  • @jtrjr
    @jtrjr 4 роки тому +1

    I just wanted to say thank you for the content you produce. I really appreciate it. I'm a fellow pepper-head and an automation engineer. All of your content is right in line with my career and hobbies. I am currently converting my greenhouse, lawn sprinkler system, and home alarm system from the industrial automation controllers I have installed, over to a Raspberry Pi and a few esp32s. Thanks, again.. fantastic content.. keep up the great work.

    • @ChilliChump2
      @ChilliChump2  4 роки тому +2

      thanks Joe, I'm glad you are enjoying my videos! I will keep bringing the videos out as long as people want to watch them!

  • @alexx7447
    @alexx7447 3 роки тому

    Just goes to show how good the episodes are when you get 0 dislikes on a video with over 2 thousand views. Good job I love the series!

  • @shawntaylor9509
    @shawntaylor9509 4 роки тому +1

    Dankie my bru! Jou vidoes is lekker!

  • @awaydad
    @awaydad 2 роки тому

    hi
    just want to say i subscribe to exactly 100 youtube channels at present.. mostly technical and iot. You are in my top 4.
    thanks for all your work you are sharing

    • @ChilliChump2
      @ChilliChump2  2 роки тому

      Thanks Mike, that is kind of you to say! A lot more IOT content is on its way. I have been developing out my SeedsIO platform to include some very cool IOT features.

  • @denited4883
    @denited4883 3 роки тому

    Amazing job with this series! Really got the to finally hit the button and buy a raspberry pi and go hydroponics for my chiliest too!

    • @ChilliChump2
      @ChilliChump2  3 роки тому

      Thank you! More episodes are incoming!

  • @xXPeter23Xx
    @xXPeter23Xx 4 роки тому +3

    I just love it, greetings from Germany

  • @AtkinsonMatthieu
    @AtkinsonMatthieu 4 роки тому +2

    Good stuff this, I'll give it a go as well since i've had the idea for a while but never got down to getting to learn the tech (which is a shame as it's my main job! :) )

  • @joshua023156
    @joshua023156 3 роки тому +1

    Very cool globe visual

  • @MrBobWareham
    @MrBobWareham 3 роки тому

    Thank you so much for holding my hand to install all this on my py 3, I have never done anything like this before but you made it so easy to follow top marks 5 star Bob in the UK

    • @ChilliChump2
      @ChilliChump2  3 роки тому

      Its my pleasure Bob, glad it was helpful!

  • @TheZachmann21
    @TheZachmann21 4 роки тому +3

    Great video ChilliChump! As a helpful tip for those that can't login to their router to get the pi's ip address. If the pi you want to ssh into is the only pi on the local network, you can find its ip by pinging raspberrypi.local or you can also just use raspberrypi.local in place of the local ip address to when ssh'ing. Stay Spicy!

    • @ChilliChump2
      @ChilliChump2  4 роки тому +2

      great tip mate!

    • @Gepstra
      @Gepstra 4 роки тому

      If you can't login to your router you have a bigger problem :p

  • @simonhughes9418
    @simonhughes9418 4 роки тому

    Chillichump do you have a git repo with the code for the various components in this series and the stuff you use in your GH? I'd like to have a look at your esp32 code if possible.

  • @colinbruijnen9975
    @colinbruijnen9975 4 роки тому

    I am making one! Love the project! Looking forward to you next video! When are you potting up? This weekend?

    • @ChilliChump2
      @ChilliChump2  4 роки тому

      Hi Colin, yes probably this coming weekend. Let's hope the weather is decent!

    • @colinbruijnen9975
      @colinbruijnen9975 4 роки тому

      @@ChilliChump2 Cant wait to see your greenhouse filled again with your plants. I am potting up this week, but i have only 10 plants in soil and 10 plants in hydro. The weather is great here in Amsterdam for the upcoming days. Have fun with it!! Cheers!

  • @cw4608
    @cw4608 3 роки тому

    To newbies like me following this excellent tutorial-If mosquitto seems to load but you receive an error message stating something along the line of “Mosquitto service not found” when you enter the command to start the mosquitto service at boot up, try installing mosquitto again. I’m sorry I did not write down the exact verbiage. I decided to do so after looking in the file system for ‘mosquittos’ and not finding any.

  • @jordyd8916
    @jordyd8916 4 роки тому +1

    Still with you Shaun. Could use more explanation on what MQTT brokers are though. And is an pi4 not a bit overkill? Would a Pi zero W be good enough? (just thinking about power consumption here)

    • @ChilliChump2
      @ChilliChump2  4 роки тому +6

      Remember this is a server...this isn't the IOT device. It will be doing some pretty resource intensive things. in particular with node-RED. So while a pi zero may be possible, I wouldn't recommend it.
      And I will be doing an episode on MQTT, as well as node-RED. please bear with me...these episodes take many hours to do. and I am keeping them episodic. If I put too much info in a single episode, I am likely to leave out a lot too.

    • @igiveupfine
      @igiveupfine 4 роки тому +1

      the mqtt program will let you safely and coherently send data to multiple threads/programs. instead of worrying about locks and semaphores and all this crazy stuff, you just send/receive data from mqtt (likely in json format). then you write every program/thread as it sends and receives data. when you get new data you'll have an "onMessageReceived" function that will be called.
      really cool. i'm impressed to see this in just a home automation chili growing setup.

  • @MrAkerblom
    @MrAkerblom 4 роки тому

    Really great! ..but will we ever see an episode 12..? :-)

    • @ChilliChump2
      @ChilliChump2  4 роки тому

      These things take time! I have a full time job, and my primary channel to do videos for. I have to prioritise where I spend my time...I need more people subscribed to this channel and watching the videos! There should be a couple episodes coming this week though.

    • @MrAkerblom
      @MrAkerblom 4 роки тому

      ChilliChump2 I hope you take it as a compliment rather than as a complaint. I think few if any take your work for granted, however many seem to appreciate it!

    • @ChilliChump2
      @ChilliChump2  4 роки тому +1

      Of course, I didn't take it as a complaint. Personally I am frustrated, because I would like to get out plenty more content (so many ideas, so little time!)

  • @stephensimmons1537
    @stephensimmons1537 4 роки тому

    On my version of Raspian Desktop (in a hyper-v vm) i had to run sudo apt-get install npm first, if anybody has issues with the node-red install crashing during installing node.js check the log file. The misleading thing is the first failure log will show the sudo npm command not found error but subsequent attempts do not.

  • @kaushik36
    @kaushik36 10 місяців тому

    Hi
    Thanks for this nice video.
    Is it possible to build this on a standard Ubuntu server ?

    • @ChilliChump2
      @ChilliChump2  10 місяців тому

      Sure, that will be just fine

  • @tybo759
    @tybo759 4 роки тому +1

    I have a brand new rasberry pi 3 still in its package. Will it work for this project or do I need the 4?

  • @roganthoerson1909
    @roganthoerson1909 3 роки тому

    Maybe a bit stupid question but how large can the MQTT database be ? That is for me useful to know because the raspberry was delivered with a 32gb card. Once a certain size is reached by the database is there a kind of first in first out process to release memory for tge new message ? How much data does represent 32Gb if we send float numbers ?

    • @ChilliChump2
      @ChilliChump2  3 роки тому +1

      MQTT doesn't actually store the messages very long (unless you change some settings). But I wouldn't worry...32gb is a load of space. So when I get to the part where we store data in a SQLite DB, unless you are taking multiple readings 10 times a second, you shouldn't have an issue. I have an SQLite DB with millions of rows of data, and it is currently 18mb

    • @roganthoerson1909
      @roganthoerson1909 3 роки тому +1

      @@ChilliChump2 Nice. I thought it would be way larger. As it is very new to me i don't realize how much data is being exchanged. I am really glad you are explaining all this. It is really helpful to get me started doing this.

  • @chielsaro8667
    @chielsaro8667 7 місяців тому

    Would a raspberry pi zero w be suitable to host the IOT server?

  • @georgeprout42
    @georgeprout42 4 роки тому

    You probably don't need the IP address as (on your LAN) it'll respond to raspberrypi.local e.g. "ping raspberrypi.local" or raspberrypi.local etc.

  • @jordanfischer5417
    @jordanfischer5417 4 роки тому

    Err:1 raspbian.raspberrypi.org/raspbian buster InRelease
    Temporary failure resolving 'raspbian.raspberrypi.org'
    ive been at this for days. how do you connect via ethernet

    • @ChilliChump2
      @ChilliChump2  4 роки тому

      Are you connecting your raspberry pi to the LAN via a LAN cable?
      Where are you getting that error?
      Which Raspberry Pi version do you have?

    • @jordanfischer5417
      @jordanfischer5417 4 роки тому +1

      @@ChilliChump2 weirdly enough after days of trying it finally just worked thanks for responding!

  • @awaydad
    @awaydad 2 роки тому

    having trouble connecting rpi with putty
    tried Autoconfiguration IPv4 Address. . : 169.254.87.13(Preferred)
    tried changing to static by adding 169.254.87.150 to end of line of cmdline.txt file
    tried adding DNS Servers . . . . . . . . . . . : 192.168.1.1 from wireless LAN adapter WI-FI: which got me to login as: pi but came back with some banner message about wifi and disconnected

    • @awaydad
      @awaydad 2 роки тому

      nvm
      finally got it
      got in but password raspberry is being denied so gotta fig that one out now
      thx

    • @ChilliChump2
      @ChilliChump2  2 роки тому

      Unfortunately they changed things recently with the raspberry pi image so that there is no default password. You need to create it when you create the image.

    • @awaydad
      @awaydad 2 роки тому +1

      @@ChilliChump2 Thanks for replying
      found out that late last night
      voila finally in and within minutes had MQTT, Node-red, and SQLITE installed and moved on into your series
      thanks again for your great content