#!/usr/bin/env python3
# encoding: utf-8

from gpiozero import MotionSensor
import requests
from signal import pause

import urls


def callback():
    try:
        requests.get(urls.get_kotomera_url('take_a_picture'))
    except requests.ConnectionError:
        pass


pir = MotionSensor(4)
pir.when_motion = callback

pause()

acba083ab376a16dfc0407e7c50ce88d46ee89c8
<mask token>


def callback():
    try:
        requests.get(urls.get_kotomera_url('take_a_picture'))
    except requests.ConnectionError:
        pass


<mask token>

<mask token>


def callback():
    try:
        requests.get(urls.get_kotomera_url('take_a_picture'))
    except requests.ConnectionError:
        pass


<mask token>
pause()

<mask token>


def callback():
    try:
        requests.get(urls.get_kotomera_url('take_a_picture'))
    except requests.ConnectionError:
        pass


pir = MotionSensor(4)
pir.when_motion = callback
pause()

from gpiozero import MotionSensor
import requests
from signal import pause
import urls


def callback():
    try:
        requests.get(urls.get_kotomera_url('take_a_picture'))
    except requests.ConnectionError:
        pass


pir = MotionSensor(4)
pir.when_motion = callback
pause()

#!/usr/bin/env python3
# encoding: utf-8

from gpiozero import MotionSensor
import requests
from signal import pause

import urls


def callback():
    try:
        requests.get(urls.get_kotomera_url('take_a_picture'))
    except requests.ConnectionError:
        pass


pir = MotionSensor(4)
pir.when_motion = callback

pause()
