Join David Ross for an in-depth discussion in this video Explore Weaved and test our services, part of Raspberry Pi: Home Monitoring and Control.
- Let's sign back into our Weaved account, and we'll do a little bit of exploring and see how things are set up. If we take a look at our list of devices as I said before this is a raspberry pipe B, Jessie. This is the other one which is raspy and weezy, and if we take a look at any of these we can take a look under settings, and under settings we're going to find under external address the wide area network address, and the internal addresses, or local area network address. You can go up here at any time.
You can rename your service. You can delete your service and reinstall it again if you wish. You've got all these things that you can do, but let's take a look and see how these services actually work. First one we're gonna do is we're gonna take a look at VNC, because we've used that quite a bit, and the password that's it's going to ask for here is going to be the one for VNC that you set up when you did VNC server. There's a couple of differences here. When you click on this on the Mac it's very simple, but when you go here to to the one for Windows you're going to have to use a VNC client, and you're going to have to put this into your VNC client.
It's so much easier on the Mac, but you can make it work on the PC. What we're going to do is protocol request. We're going to say launch application, and up here it's going to say proxy number and the actual port ID, and we're going to say connect, and it's going to ask for a VNC password. Make sure it's your VNC password. Here we are with the complete VNC connections. We have everything you'd see if you had a HDMI connection directly to the pie, but we're doing this completely through the wide area network right into our local area network and seeing exactly what we would see using VNC normally, locally.
Let's take a look at the next thing that we want to do, and so let's turn off screen sharing, and let's close this off here. Next thing we want to check out is SSH. When we use Weaved to go into SSH, it depends on whether you want to use pie username, root username, or all others can use this. I'm going to use pie. I'm just going to grab this. I'm going to right mouse click, copy. We're going to switch over the turnal window, and I'm just going to paste that in, and all I have to do is hit enter, and I'm going to say yes.
It's going to ask for password, and when I'm logged in I can just type things like LS. I can take PWD for print working directory, and it's going to work exactly as you would expect. I can exit out of this. I can switch back over here, and take a look at other options that we want to look at. Let's go back to our services panel, and this time let's choose WebIOPi. If we click on this, this is really cool.
It's going to come down and ask you for a log in. The log in is going to be WebIOPi, and the password is going to be raspberry. Let's type that in. webiopi, all lowercase, and we're going to type raspberry. What it's going to do is it's going to come up with a number of options here. GPIO header, so we click here, and we can actually see on here, since we've done all of our revisions we can see the full 40 pin GPO header on the raspberry pi two, and the raspberry pi B plus.
If you are running this on raspberry pi B you're only going to see the first 26 pins. This is pretty cool, and you can change these from input to output just by clicking on them. You can use any web browser, whether it's on a cell phone, whether it's on a tablet, or it's on a computer system. You make things output, and you can turn things on right now and just turn on a LED that happens to be connected to this pin, click on it, now the LED has gone out. It's very, very simple and graphical, and if you have inputs connected, this is 3.3 volts.
That's why it's yellow. This is zero volts, because it's black. These are five volts, which typically we're not going to use for a project, but you can see here that just by changing, clicking on it, it's changed the voltage which can drive something. Click on it again, it's changed as an output. On an input it will actually change as the input changes. This is really, really cool. What we're going to be doing is using this to turn on just by getting to this page, turn on our burglar alarm system. Turn it off just by having one of the pins that we just click, the system is on, click again it's off.
It's very, very cool.
This DIY electronics project provides simple directions for getting your home monitoring system up and running. Author David Ross helps you select a power supply, camera, motion detector, enclosure, and other components and accessories, and make your system "smart" by connecting to web services frameworks such as Weaved and WebIOPi. Then he helps you program the logic to make your Pi camera take pictures and stream video, connect to home peripherals, and mount your alarm system. With this training, and a little elbow grease, you can create a fully autonomous system that helps you and your family feel more secure at home and away.
Note: These instructions work with Raspberry Pi B, Raspberry Pi B+, and Raspberry Pi 2 models.
- Selecting hardware, including a Raspberry Pi camera and a Pi Cobbler
- Configuring VNC, SSH, and WebIOPi services
- Sending SMS messages with the Raspberry Pi
- Taking and accessing pictures remotely
- Setting up video streaming with a Raspberry Pi camera
- Connecting the Pi to the development board
- Connecting the relay and motion detector
- Programming the alarm in Python
- Mounting and securing the alarm system