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
import os | |
print("Camera!") | |
while True: | |
os.system("fswebcam image.jpg") | |
os.system("rm image.jpg") |
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
import requests | |
import json | |
import time | |
from pushbullet.pushbullet import PushBullet | |
key = "[SUBJECT PUSHBULLET KEY HERE]" | |
p = PushBullet(key) | |
devices = p.getDevices() | |
contacts = p.getContacts() | |
timecur = time.strftime("%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
import os | |
while True: | |
os.system("echo 1 | sudo tee /sys/class/leds/led0/brightness") | |
os.system("echo 0 | sudo tee /sys/class/leds/led0/brightness") |