Created
October 13, 2020 19:10
-
-
Save xaxxontech/3609670d5d58107d1b191fe138b9f0e3 to your computer and use it in GitHub Desktop.
Autocrawler/Oculus Prime Motion Detection Alert to RSS Feed
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
#!/usr/bin/env python | |
import time, oculusprimesocket | |
oculusprimesocket.connect() | |
oculusprimesocket.sendString("publish camera") # start camera | |
time.sleep(20) # wait for camera startup | |
while True: | |
oculusprimesocket.sendString("motiondetect") # start motion detection | |
# wait for detection | |
oculusprimesocket.waitForReplySearch("<state> streamactivity video") | |
# post alert to rssfeed | |
# see http://www.xaxxon.com/documentation/view/autocrawler-command-reference#rssadd | |
oculusprimesocket.sendString("rssadd [autocrawler detection] motion detected") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment