security-camera | Motion detecting security camera using a raspberry pi | Camera library
kandi X-RAY | security-camera Summary
kandi X-RAY | security-camera Summary
This is a guide to creating a simple motion sensing security camera using a Raspberry Pi, USB webcam, Amazon S3, Slack. Anytime motion is detected images will be captured, uploaded to S3 and sent to a Slack channel.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Basic example of how to upload a file
- s3Put uploads a file to S3 .
- Validate validates the configuration .
- NotifySlack sends a webhook to slack .
- UploadToS3 uploads a file to S3
- NewConfigFromEnv creates a new config from environment variables
- fileURL returns a URL for a file
security-camera Key Features
security-camera Examples and Code Snippets
Community Discussions
Trending Discussions on security-camera
QUESTION
To start off, I am a complete noob to Debian, Python, and shell scripts, so please speak to me like I am a toddler.
I have a python script I am running through a virtualenv, and I want to execute it via a shell script. Here is what I'm typing in to the terminal to do so:
source .profile
workon cv
cd Desktop/Camera
python main.py
I tried turning this into a shell script, but I receive the error -- source: not found
I've found no answer to my problem, at least not in any terms I can understand. Any advice would be appreciated. Furthermore, before you answer, I also have no idea why it is I need to execute source .profile
, I'm simply following a beginner guide for the project which can be found here: https://www.hackster.io/hackerhouse/smart-security-camera-90d7bd
Thanks in advance, and sorry if this is a dumb question.
...ANSWER
Answered 2017-Dec-06 at 20:30Add a hashbang at the top of your script (should be the first line):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install security-camera
Create an S3 bucket, noting the name and region
Create an IAM user, noting the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
Create and attach an IAM policy to the user, allowing them to upload to the S3 bucket
Create a Slack incoming webhook
Note the Webhook URL, e.g. https://hooks.slack.com/services/xxx/yyy/zzzzz
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page