scaidermern / picambot Goto Github PK
View Code? Open in Web Editor NEWSecurity camera based on a raspberry pi and Telegram, controllable by smartphone
License: GNU General Public License v3.0
Security camera based on a raspberry pi and Telegram, controllable by smartphone
License: GNU General Public License v3.0
Add sending a video when motion is detected.
Exception in thread Image watch:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/Downloads/SecuritySys/piCamBot-master/piCamBot.py", line 398, in fetchImageUpdates
notify.add_watch(watch_dir.encode('utf-8'))
File "/home/pi/.local/lib/python3.5/site-packages/inotify/adapters.py", line 93, in add_watch
path_bytes = path_unicode.encode('utf8')
AttributeError: 'bytes' object has no attribute 'encode'
Add a config option for arming the device automatically if there hasn't been any motion for a specific time. Useful in case the user forgot to arm the device.
Currently piCamBot fails with python3 for various reasons.
If piCamBot is armed and shuts down or crashes it should re-enter armed state when being started again.
Hey guys, Im sorry.. i have error with my raspberrypi..
Traceback (most recent call last):
File "piCamBot.py", line 480, in
bot.run()
File "piCamBot.py", line 61, in run
self.config = json.load(open('config.json', 'r'))
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I have followed your instructions in a new raspbian installation because my old SD card went wrong.
To make it work, I needed old versions of two dependencies.
pip3 install python-telegram-bot==10.1.0
pip3 install inotify==0.2.8
Maybe you want to note it on README.md
Messages should be queued and if network errors occur. Active probing should ensure that queued messages get delivered as soon as the network becomes accessible again.
Currently piCamBot fails if module RPi.GPIO is not installed. The module is only needed for controlling a PIR sensor or buzzer. piCamBot could be used without it for image capturing purposes only.
Report how long we have been down after coming back on after a shutdown or crash.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.