Kassian's IoT Hour
Presented by: Kassian Rosner Wren
Originally aired on August 10, 2020 @ 11:00 PM - 12:00 AM EDT
Let's dig into how you can use Serverless to supercharge your IoT projects! We'll walk through setting up a remote sensor and LED with Cloudflare Workers, Workers KV, and a Raspberry Pi.
Original Airdate: July 27, 2020
English
Transcript (Beta)
Good afternoon, everyone. Welcome to the IoT Hour. I am Kassian. And so this week we're going to take a bit of a departure, and we're going to be working on is the, we're gonna be working with the home assistant for the Raspberry Pi, and starting to work on an IoT Hub integration with workers.
So first thing I'm going to do is I'm going to unplug the Raspberry Pi here.
Sure. And I'm gonna take this card out.
Some help. You can do it.
All right.
Pen will do it. There we go.
All right, so we got our card. Here. Here. There, so I don't record, and then we're going to put the micro SD card in our reader here.
Okay.
So, I'm going to share my screen here so that you can see what I'm doing. Okay.
So, I'm starting. So I've already downloaded the image, so what we're going to do is we're going to open up the image here.
File.
File. So, target storage device.
While that happens, I'm going to grab my network cable because this requires Internet.
I forgot to do this before the show, I forgot to climb under my desk.
Adapter. The camera was off so you have to see me down there.
Okay. Fantastic.
Fantastic. Okay. Start as far as it will go.
It's right here. Right there. There we go.
I'm going to take the micro SD card out, put it into the Pi.
We're going to plug the Pi into power.
Instructions.
Instructions. Okay, so we're going to do this address.
It may take a minute to actually hook up.
It's going to take a second.
All right. Let's look at onboarding while we wait for this to install.
It's going to have us create an account. Okay.
Okay. Okay. Okay.
Okay.
Look at in the example is try to find one where it calls a third party service so that we can see.
Okay. Okay.
We can look at.
I can get my mouse with me. Okay. Okay.
Okay.
Okay.
Okay.
Okay.
Okay. Okay.
Okay.
Yeah, let's check.
Here we go. Okay, this is what we're looking for.
Cool. Okay. No.
Support room.
8123.
There we go.
Okay, cool.
Cool. Okay.
I want to show exactly where I am here.
Chicago here somewhere.
Six.
So, America, Chicago, there we are. Neat recognizes a lot of stuff online.
See if it recognizes the. No, that's fine. There's a light bulb, but that's okay.
Sure, we're going to have my phone here in a second.
Okay. Okay.
Again.
Again. Refresh this.
There's the mobile app.
Cool. Fantastic. Okay. I'm a lot here. Cool.
The battery level of my phone and the wifi connection. Oh, goodness. Okay. Yes.
Now we have this done. We did the onboarding.
Sidebar.
There we are.
Automation.
Okay.
Okay.
Add one. Okay. Hang on.
So. Cool. Okay. Okay.
Okay. Okay.
Okay.
So we don't need to worry about that. Okay.
Okay.
So the first thing we're going to do is create a new worker. That will do something when we call it.
So. Okay.
Cool.
Cool.
Okay. Okay.
So we've got this. Okay.
It's your Wrangler. Okay. So now we're going to say.
Okay. cause I can never remember the command for Wrangler.
Wrangler.
Generate.
Wait. Call this.
Okay.
Now we have our worker.
Okay. Okay. Okay.
Okay.
Okay. Okay. Okay.
Okay.
Okay. Okay. Okay. Okay. Okay.
Okay.
Okay.
It's going to add it.
Very tall. Okay. We'll save it.
Okay.
There.
Hmm.
I'll do that button.
Okay. Sorry, starting.
Okay. Looks like it restarted.
Awesome. No.
Yeah. Wrangler. Wrangler. Hmm. Hmm.
Hmm.
Hmm.
Hmm. Hmm.
Hmm.
Not an advanced mode.
Okay. So advanced mode on. Okay.
Now we go back to supervisor. Okay. Okay.
Okay. Okay. Okay.
Okay.
Okay.
Okay.
Okay.
Hmm.
Oh, I used the wrong.
Back to this one.
Hmm. Hmm.
Hmm. Hmm. Okay. Highest security rating. Hmm. Hmm. Highest security rating.
Hmm. Hmm. Hmm. Hmm. Supervisor.
Supervisor.
Hmm. Hmm.
That's interesting. Carefully read this page.
Okay. Hmm.
Hmm.
Hmm.
Hmm. Hmm. Hmm. Hmm. Hmm.
Hmm.
Hmm.
Hmm.
Hmm.
Hmm.
Hmm. Hmm. Hmm.
Hmm.
Should be allowing me to figure it, but I'm not seeing.
Hmm. Oh, Yeah.
Okay. Hmm.
How do I get this in my term? Hmm. Hmm. Hmm. Hmm. Hmm. Hmm. Hmm. Hmm. Hmm. Hmm.
Hmm. Hmm. Hmm.
Hmm. Hmm.
Hmm. Hmm. Hmm. Hmm. Hmm. Hmm. Hmm.
Hmm.
Hmm.
Hmm.
Hmm. Hmm. Hmm. Hmm. Hmm. Hmm. I don't know how to configure it.
Hmm. Here. Oh, I think I know now.
Okay. Hmm. Hmm. Or. Okay. I don't even want to do. Okay. Okay.
Okay. Okay. Okay. Okay. Okay.
Okay.
Okay. Okay. Okay.
Okay.
You're stopping it gives us a chance to configure it.
Oh, integration. Okay. Move this off.
My screen for a second so I can. Okay. Okay.
Okay. Okay.
Okay.
In there. Here. Okay. Okay.
Okay. Okay.
Okay. Okay.
Okay. Okay.
Okay.
Yeah.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
No, we're not going to worry too much about. So close. Bunch of this stuff.
Oh, What was the. And local tab.
Okay. Okay.
Okay. Okay.
Okay.
Time here. So, I'm going to do. Go to the deploy react apps. So we're going to run terminal here.
To our. Okay. Okay.
Okay. Okay.
Okay.
Okay.
Okay.
Okay. Okay. Okay.
Okay. Okay.
Okay.
Okay. Okay. Okay.
Not funny.
Okay. So.
Okay. Okay. Okay. Okay.
Okay.
Thank you.
Okay. Okay.
Okay.
Okay.
All right.
Okay.
Okay.
Okay.
Okay. Okay. Okay. Okay.
Okay. There's a reason it worked with my. Other account. So. No, that's not what I want to do.
So now.
Over here. Okay. No.
Now have a working. So. Was there a last 10 minutes.
Oh, pardon me. Sitting still for about 50 minutes. Okay.
So. With our last 10 minutes, let's. Start figuring out what exactly we want to have this.
IOT. Applications.
Okay. So to do that, let's do some drawing. Where am I getting?
We're going to do on the ground.
We're going to start drawing out a graph.
What we want this to do. Starting with.
We're here. Okay. We'll call this the rest. Smaller.
Okay. A little bigger. I have here.
And let's determine what kind of sensors we'd want to attach to it. Okay.
We'll reattach our. We'll change the shape here. Reflexive sensor. We'll reattach.
What happened here?
Okay.
There we go. Okay. Okay.
Okay. So. Okay. Nothing important. We've got our classes are here.
Okay. We're going to do a link. Okay. Okay.
Okay.
Oh, I know.
You can also add. Lights. Okay.
What we want to do is be able to control these from our home assistant hub. Square.
That is.
Okay. We've got late. We want. A serverless function.
Okay. To represent with. So we want to be able to turn lights on.
From outside the home.
Okay. Because otherwise it's just use the hub for it. And we will communicate back and forth with each other.
No, actually they want the serverless function.
We'll just call them. And then we'll change the lights and then.
Okay. So. We have another function. Stores.
Okay.
And this one will be a two-way communication.
Okay. And then we'll scoot all of this.
All of this over a bit. And then we'll create one more.
Worker. And this will be a.
Dashboard. No.
The devices.
Okay. What this will interact with.
This function. It'll call it. Okay.
You're on the.
Okay. I'm just going to. Yeah.
Okay. So this is kind of what we're looking at. We're going to build over the next.
A couple of weeks. So. I think. Okay. That's about it for today. Unfortunately, just a tiny bit early.
Okay. Here. Thank you so much for watching today.
Thank you. Very much appreciated. We look forward to the next IOT segment.
We'll start actually. In implementing this. And. I hope you enjoy the rest of today's.
TV programming. And thanks so much. Have a good day.
Thank you.
Yeah.
Yeah.
Yeah.
Yeah.
Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah.
A botnet is a network of devices that are infected.
My malicious software programs called bots.
Nah it's controlled by an attacker known as a bot herder. Bots are made up of thousands or millions of infected devices.
These bots send spam, steal data, fraudulently click on ads, and engineer ransomware and DDoS attacks.
There are three primary ways to take down a botnet.
By disabling its control centers, running antivirus software, or flashing firmware on individual devices.
Users can protect devices from becoming part of a botnet by creating secure passwords, periodically wiping and restoring systems, and establishing good ingress and egress filtering practices.