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
switch(this.event_type) { | |
case 0: | |
// We treat all subtypes as the same currently | |
return "entry.unlocked"; | |
case 4: | |
switch(this.event_subtype) { | |
case 8: | |
case 210: | |
case 211: | |
return "entry.forcedopen"; |
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 | |
""" | |
Example: | |
config_boxes.py --file test_config_boxes.csv --token MYTOKEN --dryrun | |
Loops through each row of CSV file and posts the new config for event_auto_upload_query_filter like: | |
{ | |
"device_id": "AQAG***REDACTED***MrOIwnr", | |
"event_auto_upload_query_filter": { | |
"text": "7pm to 10am" |
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
#!/bin/sh | |
# concatenate all the mp4 files in the argument directory. | |
# Examples: | |
# ./ffconcat.sh /Users/Carter/Downloads/video | |
# | |
# | |
IN_DIR="$1"; | |
if [ "$IN_DIR" = '' ] ; then | |
IN_DIR="." | |
fi |
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
curl \ | |
-H "Content-Type: application/json" \ | |
-d '[{"timestamp":"2018-06-25T17:04:51.460+0700", "labels_to_add": ["badge123", "unlocked"]}]' \ | |
-X PUT https://camio.com/api/users/xyzpdq/devices/site1/annotations |
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
curl \ | |
-H "Authorization: token abc123" \ | |
-d '{"Front Door": ["home", "San Mateo"], "Office Entrance":["work"]}' \ | |
-X POST \ | |
https://camio.com/api/cameras/labels |
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
{ | |
"date_created": "2017-04-10T04:20:47.118-0000", | |
"message": { | |
"body": "See this #Camio https://camio.com/c/s1ui6ygpwveo/app via @camio", | |
"subject": "See this Camio Query Link", | |
"url": "https://camio.com/c/s1ui6ygpwveo/app" | |
}, | |
"name": "Query Link Liverpool 6:45pm to 11pm", | |
"owner": { | |
"user_id": "117550000798386757677" |
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
{ | |
"name": "Query link Liverpool 6:45pm to 11pm", | |
"query": { | |
"text": "Liverpool 6:45pm EDT April 9 2017 to 11pm EDT April 9 2017 all jcmaslan@gmail.com" | |
}, | |
"type": "public" | |
} |