This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from picamera import PiCamera, Color | |
from time import sleep | |
import datetime as dt | |
camera = PiCamera() | |
# 8 hour timeplase with image taken every 10 seconds | |
for i in range(2880): | |
camera.annotate_background = Color("black") | |
camera.annotate_text = dt.datetime.now().strftime("PiLapse %m-%d-%Y %H:%M:%S") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow less secure apps to access your gmail account | |
import email | |
import smtplib | |
fromaddr = "[email protected]" | |
toaddr = "[email protected]" | |
msg = "Content of your email message." | |
username = "yourGmailAddress" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# allow less secure apps to access your Gmail at: https://support.google.com/accounts/answer/6010255?hl=en | |
# https://en.wikipedia.org/wiki/List_of_SMS_gateways | |
# [email protected] for AT&T | |
# [email protected] for Sprint | |
# [email protected] for T-Mobile | |
# [email protected] for Verizon | |
import smtplib | |
username = "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from picamera import PiCamera, Color | |
from time import sleep | |
import datetime as dt | |
camera = PiCamera() | |
camera.annotate_background = Color("black") | |
start = dt.datetime.now() | |
camera.start_recording("recording.h264") | |
while (dt.datetime.now() - start).seconds < 3600: # total seconds for length of recording |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow less secure apps to access your Gmail account | |
# https://en.wikipedia.org/wiki/List_of_SMS_gateways | |
# [email protected] for AT&T | |
# [email protected] for Sprint | |
# [email protected] for T-Mobile | |
# [email protected] for Verizon | |
from gpiozero import MotionSensor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow less secure apps to access your Gmail account | |
from gpiozero import MotionSensor | |
from picamera import PiCamera | |
from datetime import datetime | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.image import MIMEImage | |
from email.mime.text import MIMEText | |
import smtplib | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable less secure apps in Gmail | |
import os | |
import smtplib | |
import email | |
import sys | |
import picamera | |
import time | |
from datetime import datetime | |
from email.mime.multipart import MIMEMultipart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# allow less secure apps to access your Gmail at: https://support.google.com/accounts/answer/6010255?hl=en | |
# guide for setting up PiCamera at: https://www.raspberrypi.org/learning/getting-started-with-picamera/worksheet/ | |
# guide for connecting PIR sensor to Pi at: https://www.raspberrypi.org/learning/parent-detector/worksheet/ | |
# requires your email password to run (line 56), obviously a security hazard so be careful. | |
from gpiozero import MotionSensor | |
from picamera import PiCamera | |
from datetime import datetime | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.base import MIMEBase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fizz_buzz(): | |
for num in range(1,101): | |
if num % 5 == 0 and num % 3 == 0: | |
print("FizzBuzz") | |
elif num % 3 == 0: | |
print("Fizz") | |
elif num % 5 == 0: | |
print("Buzz") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
artless | base-court | apple-john | ||
---|---|---|---|---|
bawdy | bat-fowling | baggage | ||
beslubbering | beef-witted | barnacle | ||
bootless | beetle-headed | bladder | ||
churlish | boil-brained | boar-pig | ||
cockered | clapper-clawed | bugbear | ||
clouted | clay-brained | bum-bailey | ||
craven | common-kissing | canker-blossom | ||
currish | crook-pated | clack-dish | ||
dankish | dismal-dreaming | clotpole |
OlderNewer