Skip to content

Instantly share code, notes, and snippets.

View sawdog's full-sized avatar

Andrew Sawyers sawdog

View GitHub Profile
@sawdog
sawdog / sense_api_powershell_examples.ps1
Created October 12, 2018 03:42 — forked from mbrownnycnyc/sense_api_powershell_examples.ps1
beginnings of sense home energy monitor undocumented API dive
### sense api powershell examples
# with reference:
# https://www.jokecamp.com/blog/invoke-restmethod-powershell-examples/
# https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/invoke-restmethod
## enter your email address and password (will use securestring later)
$emailAddress = "email@contoso.corp"
$password = "insertpassword"
@sawdog
sawdog / quick_sense_API_ref.txt
Created October 12, 2018 03:41 — forked from mbrownnycnyc/quick_sense_API_ref.txt
Quick intro reference for the Sense Home Energy Monitor thus far undocumented API. This was taken from the Sense Android app version 1.3.7-9be446d, which was available in Google Play store on February 6th, 2017.
-- Authentication --
URL: https://api.sense.com/apiservice/api/v1/authenticate
Method: POST
Fields:
email (your email)
password (your password)
response JSON:
{