View simpliSafeAlarmState.groovy
/** | |
* SimpliSafe Alarm State revision 5 | |
* 02-15-2016 | |
* | |
* Copyright 2015 Ben Fox with modifications by Jim Reardon | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
View vudu.py
# Don't judge me I wrote this quickly. | |
# Create a file credentials.txt and put your email on the first line, and your password on the second. | |
# You may have to replace the @ in your email with %40, ie, foo@gmail.com would be foo%40gmail.com | |
import csv | |
import json | |
import requests | |
BASE_URL = 'https://api.vudu.com/api2/' |
View interworx.py
import xmlrpclib | |
class InterworxRpc(object): | |
def __init__(self, server_url, key_file): | |
with open(key_file, 'r') as f: | |
self.key = f.read() | |
self.server = xmlrpclib.Server('https://%s:2443/xmlrpc' % server_url) | |
def Query(self, path, cmd, params=None): | |
params = params or {} |