Skip to content

Instantly share code, notes, and snippets.

@xaxxontech
Created October 13, 2020 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xaxxontech/3609670d5d58107d1b191fe138b9f0e3 to your computer and use it in GitHub Desktop.
Save xaxxontech/3609670d5d58107d1b191fe138b9f0e3 to your computer and use it in GitHub Desktop.
Autocrawler/Oculus Prime Motion Detection Alert to RSS Feed
#!/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