Posts

Showing posts from January, 2020

Raspberry Pi - Cloud Based Motion Detection Surveillance System

Image
This was a fun little project to make. I ended up with a really cool alternative to paying for a monthly cloud server fee to save my motion-detection videos and it's more secure because my data is being sent right from my Raspberry Pi to my Google Drive. And so we begin with this little powerful device. The Raspberry Pi Zero W. First we start with a Raspberry Pi. We will need to add a camera, a flashed ISO image on a little SD card and we will add some configuration. This is me in my computer lab with one of my assistants. I enlisted the help of one of my cats. This is not advisable. Cats are quite capable of chewing on and short circuiting your equipment. You may need to reorder parts if you follow this step. This is everything exposed while we were doing our initial configuring, installing and troubleshooting. Also be mindful of the parts you buy. I bought this recommended camera on Amazon and ended up with a cyberpunk look having circuits and a

FTP file uploading using a Macbook and an AWS EC2 Windows Server

Image
Here I show how to use a Macbook to transfer files via FTP in the cloud between virtual windows machines running on AWS EC2 instances. We will also use a remote desktop connection to control our Windows VM. You need to setup a few things to get this to work: 1. Instantiate an AWS EC2 Windows Server. 2. Next we install and configure Microsoft Remote Desktop ("MRD") which is the portal we use on our Mac to access our remote instance of Windows on the AWS cloud. 3. Once we are in the AWS EC2 cloud instance of Windows we install Filezilla and log in with the hostname, username and password of our FTP server. Once we are in logged into our Filezilla FTP client in the cloud the file transfer process becomes very straightforward. On the left is the folder with files and sub-folders that we have access to from our Filezilla FTP server. On the right bottom window we have our remote Windows FTP client. As you see once we double click on trees.jpg and click "send" we

Using CURL to send JSON requests & listening with an Ubuntu Netcat server

Image
Here I show how to send a CURL request in a binary format containing JSON key/value pairs. On the other end I show how we are using an Ubuntu Netcat server to listen for our JSON key/value pairs.. I created the following key/value pairs to send through. It's just my e-mail a hashed number and the time of day. This is a collection of JSON key/value pairs we will send . Next we go into the terminal on the Macbook locally to use CURL so we can send our key/value pairs. CURL is what we are using to send the JSON from the terminal We explicitly state the source of the file on our desktop and the destination (the Netcat server). The command line is pretty straight forward in that the commands are essentially self-explanatory. You just have to be very specific with telling the computer what you are sending, how to send it and where to send it. Here is a screenshot from the terminal on our cloud based Ubuntu Netcat listening server. Here I am logged in via SSH to my