Skip to content

Instantly share code, notes, and snippets.

@eviljim
eviljim / simpliSafeAlarmState.groovy
Last active February 25, 2018 06:20
When you change your Smart Home Monitor security setting -- Arm(away), Arm(home), Off -- your SimpliSafe system will be set to away, home, or off. For use with SimpliSafe device type found here: https://community.smartthings.com/t/simplisafe-alarm-integration-cloud-to-cloud/8473 ; based heavily on https://github.com/foxxyben/smartthings/blob/mas…
/**
* 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
@eviljim
eviljim / vudu.py
Last active February 24, 2024 22:39
Simple Python module to pull a CSV list of movies in your Vudu account.
# 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/'
@eviljim
eviljim / interworx.py
Created July 9, 2013 13:51
Basic python class to talk to an Interworx webhosting control panel (nodeworx or siteworx) API using python.
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 {}