Skip to content

Instantly share code, notes, and snippets.

View NotExactlyMeerkat's full-sized avatar

Peshomir NotExactlyMeerkat

  • Peshomir's Inc.
  • Antarctica
View GitHub Profile
@NotExactlyMeerkat
NotExactlyMeerkat / blink.py
Created December 22, 2019 06:02
Blink ACT LED
@NotExactlyMeerkat
NotExactlyMeerkat / alarm.py
Created December 22, 2019 06:05
Feeder alarm
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")
import os
print("Camera!")
while True:
os.system("fswebcam image.jpg")
os.system("rm image.jpg")