Free Android IP Webcam With Remote Access

Over the last few years I have collected many Android devices and recently decided to put them to work. I have a Nexus 7 tablet that I occasionally use as an alarm clock and to look at the web while sitting on the pot, and also a Nexus 4 that I tinker with every now and then. I recently got the idea to turn them into IP webcams.

First I downloaded the free Android app IP Webcam. IP Webcam is a powerful android app that has the ability to turn your phone into an IP webcam that can email you photos on motion detection, save motion detection and upload it to the cloud and much more. I set my devices to stream on device boot and still run the server while the screen is off.

screenshot_2016-12-09-07-48-00screenshot_2016-12-09-07-48-12screenshot_2016-12-09-07-48-49

Another very cool feature of this app is the ability to connect it to an Ivideon account to view your IP webcams remotely. You can create a free Ivideon account here. Ivideon also supports Windows, Linux, and Mac for streaming IP cameras. You can also specify how much local storage you would like to store on your computer. I have over a months history so far!

screenshot_2016-12-09-07-48-39

Live IP camera feeds on ivideon

selection_014

You can also access your webcams by there IP address on port 8080. It should display IP address that you need to connect on the devices screen.

Screenshot of IP webcam screen running the IP Webcam server

screenshot_2016-12-09-07-49-18

Connected via web browser after logging in. You can see me dog on the bed ūüôā

selection_011

Additional web settings with the ability to focus camera and take pictures

selection_012

There is also a sensor graph (I’m a nerd and I find this awesome)

selection_013

Pics of my devices – Nexus 7 Tablet with Anker Stand

1209160754b

Nexus 4 with Reticam stand and tripod

1209160752b

And with leftover devices I now have 2 android IP webcams that startup on boot, and multiple desktops and laptops functioning as IP webcams all for free.

IP Webcam –¬†https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en

Ivideon¬†–¬†https://www.ivideon.com/

Anker Tablet Stand –¬†http://amzn.to/2hbNxHf

Reticam Stand –¬†http://amzn.to/2hbRlZi

Tripod –¬†http://amzn.to/2hbNCuJ

Anker Charger –¬†http://amzn.to/2gtgzUB

Advertisements
Posted in Uncategorized | Tagged , , | Leave a comment

Raspberry Pi YouTube Live Stream

I have my Lego Raspberry Pi 3 up and live-streaming on YouTube. I followed this video and instructions below to get my pi streaming

sudo raspi-config
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean

First you need to install FFMPEG I used the website below.
http://www.jeffreythompson.org/blog/2…

Installing FFMPEG for Raspberry Pi
INSTALL H264 SUPPORT
Run the following commands, one at a time.
cd /usr/src
git clone git://git.videolan.org/x264
cd x264
./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
sudo make
sudo make install

INSTALL OTHER LIBRARIES/FORMATS
Anything else you would like to install should be done now, before compiling FFMPEG. This includes MP3, AAC, etc.

INSTALL FFMPEG
Add lines similar to the –enable-libx264 for anything else installed above. This may take a REALLY long time, so be patient.
cd /usr/src
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
sudo make
sudo make install

Note if you have a Model B+ you can use make -j4 instead of just make to take advantage of all four cores!

To start the live stream for Youtube. Use this command line

raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -fs16le-ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/Put your stream key here

legopipihang

Live stream is up and running! Let me know what you think of my setup and configuration ūüôā

Live Stream –¬†http://www.youtube.com/c/JoshSistoplus/live

Raspberry Pi Camera –¬†http://amzn.to/2h8YZ6z

Raspberry Pi 3 –¬†http://amzn.to/2h93fmu

Lego Case –¬†http://amzn.to/2h930YG

USB Mic –¬†http://amzn.to/2gMmNfz

Posted in Uncategorized | Tagged , , | Leave a comment

Cron Jobs With Raspberry Pi

I recently wrote a blog post on how to create a twitter bot that posted Bitcoin prices every 24 hours. A user on reddit suggested that I setup a cron job to run the script instead of the script running continuously. Duh why didn’t I think of that. I am a somewhat novice user when it comes to linux so it took me a little bit of time to figure it how. To access the cron jobs type $ sudo crontab -e This will bring up a screen of the scheduled cron job’s under the super user account. After some trial and error I successfully¬†got the my script to run using a cron job. The line below show’s that the job will run at 12:00 PM every day then will invoke python and run the file script.py

0 12 * * * python /home/pi/scripts/script.py

This is the same Pi that I have running as a mini weather station¬†so I added the line below to start the python script on startup. The @reboot start’s the script below when during my raspberry pi’s boot process

@reboot python /home/pi/scripts/MWS.py

I also set vnc server to start on boot with the line below

@reboot vncserver -geometry 1366x767 -depth 24

Now my raspberry pi tweets on a schedule, automatically starts working as a weather station, and runs a vncserver when it boots up.

Check out my twitter bot –¬†https://twitter.com/Evil_1T

Posted in Uncategorized | Tagged , , | Leave a comment

Python Twitter Bot – How-To With Scripts

I’m going to show you how I created a twitter bot using Python. I wanted to create a twitter bot that I could run on my raspberry pi. I decided to combine the Bitcoin script that I was helped with in a previous post. The script queries the¬†CoinDesk¬†API for current the current Bitcoin price and last years bitcoin price and posts it to twitter every 24 hours.

First you need to create a new twitter¬†account that you are going to use for the bot.¬†To access the twitter API you will need to register a new app, you can use this link. After registering a new app you will need to update the “Application Type” under the permissions tab to “Read and Write”. Under the Keys and Access Tokens tab click “Generate Consumer Key and Secret” you will be provided with an Consumer Key, Consumer Secret, Access Token, and Access Token Secret. You will need this information for you script to login to the twitter API.

Next you need to install Tweepy on the device you will be running the script from. On my raspberry pi I simply typed  pip install tweepy

Tweepy installation instructions can be found on GitHub

Use the script below and fill in the Consumer Key, Consumer Secret, Access Token, and Access Token Secret that you generated earlier for your bot. You now have a twitterbot!

Follow my bot on twitter at @Evil_1T

As always I would like any input and feedback on what you guys think. All ideas welcome

My GitHub repository for this project –¬†https://github.com/llamafarmer/twitterbot

Tweepy install –¬†https://github.com/tweepy/tweepy

Twitter Bot –¬†https://twitter.com/Evil_1T

Raspberry Pi 3 (The same one I’m using) –¬†http://amzn.to/2gzPPlz

Posted in Uncategorized | Tagged , , , , | 1 Comment

How I Passed the CompTIA Network+ Certification

I recently passed the CompTIA Network+ Certification and wanted to share the steps I took to pass it. At the time of writing this I have been working in the IT sector for over 4 years without any certifications under my belt. After researching all of the many certifications that are available I decided on Network+ since it seemed to fit my skills and abilities best. I researched a lot of study materials and decided to go with CompTIA Network+ All-In-One Exam Guide by Mike Meyers. I read the book from front to back researching any unfamiliar terms or anything that I needed a better understanding of. After spending about a month studying the book and researching online I began taking the online CompTIA Network+ Practice Exams. After I was scoring at least 80% and above on every test I purchased a CompTIA voucher and signed up at my nearest testing center.

Removed Content – I was pointed to CompTIA’s “Candidate Conduct Policy” by a user on reddit and learned I am not to divulge any information related to the test. What I can share is that the test took me about 70 minutes of the alotted 90 minutes and I passed!

networkplus

I am now working towards getting CompTIA Security+ certified.

Check me out of LinkedIn –¬†https://www.linkedin.com/in/joshsisto

PDF of my Cert –¬†http://bit.ly/2guKX16

CompTIA Network+ Practice Exams¬†–¬†http://bit.ly/2ggS62m

CompTIA Network+ Mike Meyers – http://amzn.to/2gSGYID

Posted in Uncategorized | Tagged , , | Leave a comment

Automatic Routerboard Configuration Backup and Email

In this blog post I am going to show you how schedule my Mikrotik firewall backup configurations and email them to myself. First you need to configure the email settings on your firewall. Go to Tools → Email. For my email I am using SMTP through MailJet

winboxscreen Send a test email from here

Next we need to configure the scripts the firewall is going to run under System¬†‚Üí Scripts. Under the scripts tab create a new script named “backupscript” with the following source code “/system backup save name=RB_Backup”

backupscript

Now we need to create the script that will email the script. Create another script named “mailscript” with the following source code “/tool e-mail send file=RB_Backup.backup to=joshsisto@gmail.com subject=[/system identity get name]”

mailscript

Script List should look like the image below

scriptlist

Now we need to schedule the scripts that we setup. Go to System¬†‚Üí Scheduler and create a new schedule. Use the following source code “/system script run backupscript /system script run mailscript”

shedule

Emails are sent every night at midnight to my email

gmailinbox

Mikrotik Firewall –¬†http://amzn.to/2fQVcsC

Mailjet –¬†https://app.mailjet.com

Posted in Uncategorized | Tagged , , | Leave a comment

Running Alexa On Raspberry Pi

Here is a video of me running Amazon‘s Alexa service on my raspberry pi. Step by step directions for the raspberry pi can be found on GitHub. This was a fun project to do and quite simple. I now have an Amazon Alexa whenever I want as long as I have a raspberry pi. Unfortunately you can’t play music using your voice currently, but you can send music to it using the Amazon Alexa App. I mostly use this to set alarms, set reminders, check traffic, read personalized news, and ask an occasional question with limited results. Let me know how you use your Amazon Alexa service in the comments.

Update – On reddit I was pointed to an updated GitHub repository where some of the issues I have been facing have been worked out –¬†https://github.com/sammachin/AlexaPi

Update –¬†https://github.com/sammachin/AlexaPi

GitHub – https://github.com/alexa/alexa-avs-sample-app/wiki/Raspberry-Pi
Raspberry Pi 3 – http://amzn.to/2gmneAh
Lego Case – http://amzn.to/2g8umNJ
USB Mic – http://amzn.to/2gMmNfz

Posted in Uncategorized | Tagged , , | Leave a comment

My First Python Script Follow Up

After writing My First Python Script I uploaded it to¬†reddit.com/r/learnpython¬†and linked it on twitter. I received over 200 views in less than 24 hours and got a lot of valuable input. The-Zebulan¬†was the most helpful in providing some pointers and the script below. I was also pointed towards PyCharm¬†and codewars¬†which I can’t recommend enough.

Posted in Uncategorized | Tagged , | Leave a comment

My First Python Script

I have been playing around with Python for a few months and I finally wrote my first script all by myself. This script queries CoinDesk’s API for the current Bitcoin price and last years Bitcoin price and prints it out. I additionally created a script that will display this information on a Raspberry Pi Sense HAT screen.

Raspberry Pi Sense HAT script –¬†https://github.com/llamafarmer/Pi/blob/master/bitcoinSENSEHAT.py

CoinDesk API –¬†http://www.coindesk.com/api/

Posted in Uncategorized | Tagged , | 3 Comments

Easy Domain Name Dynamic DNS Using Mikrotik Routerboard

In this blog post I am going to show you how I use Mikrotik’s built in DDNS service in conjunction with freedns.afraid.org¬†to create an easy to remember domain name that will forward to a given destination. I am a huge fan of Mikrotik Routerboard firewalls, and am sure I will right up many more blog posts using the wonderful device. First you need to configure the built in DDNS service on the routerboard, login to your firewall using the web browser or Winbox. Navigate to IP¬†‚Üí Cloud make sure both boxes are checked and that your public IP address shows. Copy your DNS name

winboxcloud Some numbers have been blocked

The DNS name that you we just copied down would be a pain to type out each time that we wanted to access it and hard to memorize (it uses the serial number of your firewall in the name). To get around this issue we can create a much shorter and easy to memorize domain name by creating an account at freedns.afraid.org. After creating an account navigate to Subdomains and create a new CNAME record. I chose the subdomain home because this is going to point to my home router that has a changing IP address. Then choose the domain of your choice, in this example I went with mooo.com. Finally you are going to put the DNS Name that you saved earlier in the Destination section. In the example below home.mooo.com will point to my DDNS provided by Mikrotik which will resolve to the firewalls public IP address

selection_001

The command line puts out the following

root@ubuntu:/# ping home.mooo.com
PING 42b123456780.sn.mynetname.net (98.25X.XXX.XXX) 56(84) bytes of data.

Now you have an easy to remember domain name that will always resolve to the public IP address of your firewall! Please comment if you have anything to add or contribute.

https://freedns.afraid.org

Posted in Uncategorized | Tagged , , | Leave a comment