Kassian's IoT Hour
Presented by: Kassian Rosner Wren
Originally aired on February 11, 2021 @ 10:00 PM - 11:00 PM EST
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 the 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. There, so I don't lose the cord, 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.
File.
File. So target storage device.
While that happens, I'm going to grab my network people because this requires.
I forgot to do this before the show for the climb under my desk.
adapter. The camera was off, you have to see me down there.
Okay. Fantastic.
Fantastic. Okay. Okay, flash is complete.
We're going to take the card out, put it into the pie. Okay.
We're going to plug the pie into power.
Instructions. Okay, so let me take a minute to actually hook up.
Here. Take a second.
This. Let's look at onboarding while we wait for this to install.
Can I have a screen account. Okay. Okay.
Okay.
Okay. And we'll start looking at being able to use workers to do that.
So, now, with me.
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.
There we go.
So, automation in Python examples, that's something we can look at.
Okay.
I just want to make a curl request.
Okay.
Okay.
Okay.
Okay. Okay. Okay.
Yeah, let's check.
Okay, this is what we're looking for.
Cool. Okay.
No.
No. Support room.
8123. There we go.
Okay, cool.
Cool. Okay.
Okay.
Exactly where I am here.
Chicago here somewhere.
Okay. There we are.
Me recognizes a lot of stuff on my Let's see if it recognizes the.
No, that's fine. There's a very nice light bulb, they already have, but that's okay.
Sure, we're gonna have my phone here in a second.
Okay. Okay.
Again.
Refresh this.
There's the mobile app.
Cool. Fantastic. Mobile app here. Cool.
The battery level of my phone and the WiFi connection. Oh, goodness. All right, so.
Okay, so. Okay. Okay.
Okay. Now we have this done. We did the onboarding.
Configuration of the sidebar.
Automation. Okay.
Add one.
Okay. Okay, hang on.
Cool. Okay. Okay.
Okay.
Okay, so we don't need to worry about that.
Okay. Okay. Okay. Okay.
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 do that. I'm actually creating a new repository. Okay.
Cool.
Cool.
Okay. Okay, so we've got this.
Okay, so now we're going to say wrangler help because I can never remember the command to wrangler.
Units. Wrangler. Generate.
Wait. Call this.
Almost as good. Okay.
Okay. Okay.
Okay.
Okay.
Okay. Okay. Okay.
Okay.
Okay. Okay. Okay. Okay. Okay.
Okay.
Okay.
It's telling me to add it to the very top.
Which we will.
And we'll save it. Okay. Okay.
Okay. Okay.
There.
Hmm.
That button.
That's weird. Sorry, starting.
Okay. Okay.
Okay.
H is a.
Terminal. Here. Here we go. Hmm. Hmm.
Hmm.
Hmm.
Hmm.
Hmm. Hmm.
Hmm.
Not an advanced mode.
Okay. Okay.
Now we go back to supervisor. Okay. Okay.
Okay. Okay. Okay.
Okay.
Okay.
Okay.
Okay. Okay.
Okay.
Oh, I used the wrong.
Back to this one.
Okay. This is a much better reading.
Okay. Okay.
Okay.
How do I get in?
Hmm. Okay.
Hmm.
Okay. Okay.
Okay.
Okay.
Okay.
Okay. Hmm.
Hmm. Okay. Okay.
Okay.
Okay.
Oh, here we are. Okay. Okay.
Here we go.
Okay. Okay. Okay.
I don't know how to figure it.
Here. Oh, I think I know now.
Okay. Okay. Okay. Okay.
Okay. Okay.
Okay.
Okay. Okay. Okay.
Okay. Okay.
Oh, there's not.
Okay. Okay.
Okay.
Okay. Okay. Okay.
Okay.
Okay. Okay.
Okay. Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
Okay.
No, we're not going to worry too much about. So we're going to close. Bunch of this stuff.
Oh, Yeah. Yeah. Okay. Okay.
Okay.
Okay.
So next thing we're going to do is get a react app working for our dashboard. Time here.
So I'm going to do is go through the deploy react apps. So we're going to go into terminal here.
To our. We're going to.
Okay. Okay.
Okay. Okay.
Okay.
Okay.
Okay. Okay.
Okay.
Okay.
Okay.
Okay. Okay. Okay.
Okay. Okay. Okay. Okay. Okay.
So.
Okay. Okay. Okay. Okay.
Okay.
Thank you.
Okay. Okay.
Okay.
Okay.
All right.
Okay.
Okay.
Okay.
Okay. Okay. Okay.
There's a reason it worked with my other account. No, that's not what I wanted to do.
So now I'm going to go over here.
Okay. No.
Now have a working. So. Was there a last 10 minutes. Oh, pardon me. Okay. Silver about 50 minutes.
Okay. So. With our last 10 minutes, let's. Start figuring out what exactly we want to have this.
IOT. Applications.
So to do that, let's do some drawing. Okay.
We're going to do on the ground.
We're going to start drawing out a graph.
What we want this to do. Okay.
Starting with. We're here. 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. We'll reattach our.
We'll change the shape here. Reflexes sensor. Reattach. What happened here?
There we go.
Okay. Okay.
Okay. So. Nothing important. Okay. We've got our.
And we're going to do a link. Okay. Okay.
We'll make this a.
Oh, I know. Okay. And then I'll give information to. You can also add.
Lights. Okay.
No.
Okay. No, it doesn't. We've got.
And. What to do is be able to control these from our home assistant hub.
Square.
Okay. That is. Okay. We've got late. What we want. Is 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. We have another function. Stores.
Okay.
And it will. Use.
And this one will be a two-way communication.
Okay. And then. And then we'll scoot all of this.
All of this over a bit. And then create one more.
And then we'll create another worker. And this will be a.
Dashboard. And interact.
The devices. What this will interact with.
This function. It'll call it. Okay. Okay.
Yeah. Okay. So this is kind of what we're looking at. We're going to build over the next.
Couple of weeks. So. I think. That's about it for today. Okay. Unfortunately, just a tiny bit early.
Here. Okay. Thank you so much for watching today.
Very much appreciated. We look forward to the next IOT segment.
We'll start actually. Implementing this. And. I hope you enjoy the rest of today's.
TV for me. And thanks so much. Have a good day. Thank you.
Thank you.
Thank you.
Thank you. Thank you.
Thank you. Thank you.
Thank you. Thank you. Thank you.
Thank you. Thank you. Thank you. Thank you. Thank you.