2017-10-23 at 1:10 AM UTC
So I used one of my rPi to set up a front door camera. I set it up to connect to my phone's hotspot(my only internet) whenever it can so that I can monitor it from any of my devices connected to my phone's hotspot. I made a little python program so that I have an app indicator with a little camera icon that I can just click on to quickly see who's at my door.
#!/usr/bin/env
import os, gtk, appindicator, subprocess, StringIO, webkit
def main():
indicator = appindicator.Indicator("FrontDoor", '/home/User/Documents/Python/camera.png', appindicator.CATEGORY_APPLICATION_STATUS)
indicator.set_status(appindicator.STATUS_ACTIVE)
indicator.set_menu(build_menu())
gtk.main()
def build_menu():
menu = gtk.Menu()
frontDoor = gtk.MenuItem("Front Door")
frontDoor.connect("activate", frontdoor, "FrontDoor")
menu.append(frontDoor)
menu.show_all()
return menu
class MyDemoApp():
def __init__(self):
window = gtk.Window()
window.scrolls = gtk.ScrolledWindow()
window.webView = webkit.WebView()
window.webView.load_uri('http://192.168.1.95:8081')
window.scrolls.add(window.webView)
window.add(window.scrolls)
window.set_title("Front Door")
window.set_default_size(480, 640)
#button = gtk.Button("TODO")
#button.connect("clicked", self.todo_button)
window.show_all()
def todo_button(self, window):
print 'TODO'
def frontdoor(self, coding='utf-8'):
app = MyDemoApp()
main()
This here is the short guild that I used to set it up.
https://pimylifeup.com/raspberry-pi-webcam-server/Post last edited by SBTlauien at 2017-10-23T01:12:58.277652+00:00Post last edited by SBTlauien at 2017-10-23T01:27:45.206568+00:00
The following users say it would be alright if the author of this
post didn't die in a fire!
2017-10-23 at 1:11 AM UTC
"FrontDoor", '/home/Lanny/Documents/Python/camera.png'
alt detected
The following users say it would be alright if the author of this
post didn't die in a fire!
2017-10-23 at 1:16 AM UTC
The following users say it would be alright if the author of this
post didn't die in a fire!
2017-10-23 at 1:16 AM UTC
The following users say it would be alright if the author of this
post didn't die in a fire!
2017-10-23 at 1:21 AM UTC
Lol, Lanny is a name that people sometimes have. Nobody would've believed you were the same person if you hadn't edited it
2017-10-23 at 1:21 AM UTC
lol, I edited the link to the picture. Nice try though. Also, the picture still isn't showing.
Where can I host it at so that it works?
2017-10-23 at 1:22 AM UTC
Originally posted by SBTlauien
lol, I edited the link to the picture. Nice try though. Also, the picture still isn't showing.
Where can I host it at so that it works?
Cubeupload.com
The following users say it would be alright if the author of this
post didn't die in a fire!
2017-10-23 at 1:22 AM UTC
I've never met someone in my life who's met lanny
2017-10-23 at 1:24 AM UTC
Like, why would greenplastic possibly come up with that? Even if I hadn't seen it myself, that doesn't make sense.
2017-10-23 at 1:28 AM UTC
Now the image is working. How long will the image stay on CubeUpload?
I like PhotoBucket because the image is forever, keeping old threads lively.
2017-10-23 at 2:19 AM UTC
face recognition for bud man
2017-10-23 at 3:55 AM UTC
i have a screenshot. it's still up in another tab
2017-10-23 at 4:04 AM UTC
Originally posted by SBTlauien
I like PhotoBucket because the image is forever, keeping old threads lively.
bullshit.
98% of the time i get search-results for a forum or some other site that has pics there is that shitty photobucket error message of 'youve reached your limit for 3rd party hosting...pay $300 a year if you want anyone to be able to see your shit, otherwise, sucks to be you'
edit: perfect example. im browsing other sites at the same time as this one and ran into the photobucket death message: 'please update your account to enable 3rd party hosting.' then there is a gay little graphic showing 100% '3rd partying hosting usage.'
faggots. fuck fuckobucket. i shit in their bucket and pull it down over their ears.
Post last edited by infinityshock at 2017-10-23T04:10:40.273721+00:00
The following users say it would be alright if the author of this
post didn't die in a fire!