Would you like to set up a $5 (Fry's) webcam in your home and be able to look at it from anywhere on your phone?
If yes, then...
(assumes fswebcam is installed on your Raspberry Pi and you have a cron job (see older post:) to take a photo ever so often and that pic is being saved at ~/Desktop/snapshot.jpg)
Last year, I had an Airbnb guest stay at my place when I left town. I only cared about the garage being secure. So, I set up a pi-connected-webcam there. I had to use an SFTP client on my phone to pull the pic each time. We (my smarter buddy who helped me with the setup) couldn't get HTTP to do it..
Today, we figure out that it's just that Cox is blocking port 80 (HTTP). (My buddy ran nmap to reach the conclusion)
So, pick another port - maybe 1025 and, in your (assuming you've installed lighttpd as your webserver :) ) /etc/lighttpd/lighttpd.conf, change to see :
server.port = 1025
Now, in your /var/www, you need a link to the snapshot.jpg, so do :
(after you cd to /var/www)
(might have to do sudo)
ln -s ~pi/Desktop/snapshot.jpg
Then, you can, in a browser, even on your phone,
whatever.wherever.org:1025/snapshot.jpg
See older post on how you can get the whatever.wherever stuff done right - using freedns.afraid.org.
I recently installed inadyn to update my IP address on that host automatically...
Happy securing :)
Here's an alternative to freedns.afraid.org :
http://www.instructables.com/id/Host-your-website-on-Raspberry-pi/step5/have-your-domain-name/
No comments:
Post a Comment