Skip to content

Instantly share code, notes, and snippets.

@nsmith
Created October 22, 2013 21:40
Show Gist options
  • Save nsmith/7108663 to your computer and use it in GitHub Desktop.
Save nsmith/7108663 to your computer and use it in GitHub Desktop.
pivot power run 1
2013-10-22 17:38:43 UTC-4: [Status] Device booting
2013-10-22 17:38:43 UTC-4: [Device] Bank 1 set to 0.
2013-10-22 17:38:43 UTC-4: [Device] Bank 1 is online.
2013-10-22 17:38:43 UTC-4: [Device] Bank 2 set to 0.
2013-10-22 17:38:43 UTC-4: [Device] Bank 2 is online.
2013-10-22 17:38:43 UTC-4: [Device] Pivot Power Genius
2013-10-22 17:38:43 UTC-4: [Device] Firmware Version: v0.2.2
2013-10-22 17:38:44 UTC-4: [Device] Device ID: 20000c2a69028be9
2013-10-22 17:38:44 UTC-4: [Status] Device configured to be "Pivot Power Genius"
2013-10-22 17:38:44 UTC-4: [Device] Node Registered
2013-10-22 17:38:44 UTC-4: [Device] post data
2013-10-22 17:38:44 UTC-4: [Device] bank_1 = 0
2013-10-22 17:38:44 UTC-4: [Device] bank_2 = 0
2013-10-22 17:38:44 UTC-4: [Device] nonce = (null : 0x0x0)
2013-10-22 17:38:44 UTC-4: [Agent] Pivot Power Genius Agent Running
2013-10-22 17:38:44 UTC-4: [Agent] Agent Version: v0.3.2
2013-10-22 17:38:44 UTC-4: [Agent] State::restoreState checking state package for possible state to restore
2013-10-22 17:38:44 UTC-4: [Agent] winkDeviceId = 430
2013-10-22 17:38:44 UTC-4: [Agent] hmacSha1Psk = 59b080e4e2ab2d0535e453f96cef8e4cf3119e68
2013-10-22 17:38:44 UTC-4: [Agent] stateEndpoint = https://winkapi.quirky.com/powerstrips/430
2013-10-22 17:38:44 UTC-4: [Agent] tokenEndpoint = https://winkapi.quirky.com/oauth2/token
2013-10-22 17:38:44 UTC-4: [Agent] accessToken = 06264e2806719ed9306a1e0d56217f70
2013-10-22 17:38:44 UTC-4: [Agent] refreshToken = f55ce8762538131bc3d86b5211353ace
2013-10-22 17:38:44 UTC-4: [Agent] macAddress = 0c2a69028be9
2013-10-22 17:38:44 UTC-4: [Agent] impeeId = 20000c2a69028be9
2013-10-22 17:38:44 UTC-4: [Agent] deviceFirmwareVersion = 0.2.2
2013-10-22 17:38:44 UTC-4: [Agent] State::restoreState restored state OK
2013-10-22 17:38:44 UTC-4: [Agent] Assigned nonce 430_1382477924_1 since none was given
2013-10-22 17:38:44 UTC-4: [Agent] PUT https://winkapi.quirky.com/powerstrips/430
2013-10-22 17:38:44 UTC-4: [Agent] Content-Type: application/json
2013-10-22 17:38:44 UTC-4: [Agent] Authorization: Bearer 06264e2806719ed9306a1e0d56217f70
2013-10-22 17:38:44 UTC-4: [Agent]
2013-10-22 17:38:44 UTC-4: [Agent] { "impee_id": "20000c2a69028be9", "mac_address": "0c2a69028be9", "outlets": [ { "powered": false }, { "powered": false } ], "agent_firmware_version": "0.3.2", "nonce": "430_1382477924_1", "device_firmware_version": "0.2.2", "powerstrip_id": "430" }
2013-10-22 17:38:44 UTC-4: [Agent] Acked nonce 430_1382477924_1
2013-10-22 17:38:44 UTC-4: [Agent] 430_1382477924_1 = 1382477924
2013-10-22 17:38:44 UTC-4: [Agent] State::restoreState checking state package for possible state to restore
2013-10-22 17:38:44 UTC-4: [Agent] macAddress = 0c2a69028be9
2013-10-22 17:38:44 UTC-4: [Agent] impeeId = 20000c2a69028be9
2013-10-22 17:38:44 UTC-4: [Agent] deviceFirmwareVersion = 0.2.2
2013-10-22 17:38:44 UTC-4: [Agent] State::restoreState restored state OK
2013-10-22 17:38:44 UTC-4: [Agent] Assigned nonce 430_1382477924_2 since none was given
2013-10-22 17:38:44 UTC-4: [Agent] PUT https://winkapi.quirky.com/powerstrips/430
2013-10-22 17:38:44 UTC-4: [Agent] Content-Type: application/json
2013-10-22 17:38:44 UTC-4: [Agent] Authorization: Bearer 06264e2806719ed9306a1e0d56217f70
2013-10-22 17:38:44 UTC-4: [Agent]
2013-10-22 17:38:44 UTC-4: [Agent] { "impee_id": "20000c2a69028be9", "mac_address": "0c2a69028be9", "outlets": [ { "powered": false }, { "powered": false } ], "agent_firmware_version": "0.3.2", "nonce": "430_1382477924_2", "device_firmware_version": "0.2.2", "powerstrip_id": "430" }
2013-10-22 17:38:44 UTC-4: [Agent] Acked nonce 430_1382477924_2
2013-10-22 17:38:44 UTC-4: [Agent] 430_1382477924_2 = 1382477924
2013-10-22 17:38:44 UTC-4: [Agent] Got state from device: bank 1 off, bank 2 off, nonce (null : 0x(nil))
2013-10-22 17:38:44 UTC-4: [Agent] Assigned nonce 430_1382477924_3 since none was given
2013-10-22 17:38:44 UTC-4: [Agent] PUT https://winkapi.quirky.com/powerstrips/430
2013-10-22 17:38:44 UTC-4: [Agent] Content-Type: application/json
2013-10-22 17:38:44 UTC-4: [Agent] Authorization: Bearer 06264e2806719ed9306a1e0d56217f70
2013-10-22 17:38:44 UTC-4: [Agent]
2013-10-22 17:38:44 UTC-4: [Agent] { "impee_id": "20000c2a69028be9", "mac_address": "0c2a69028be9", "outlets": [ { "powered": 0 }, { "powered": 0 } ], "agent_firmware_version": "0.3.2", "nonce": "430_1382477924_3", "device_firmware_version": "0.2.2", "powerstrip_id": "430" }
2013-10-22 17:38:45 UTC-4: [Agent] Acked nonce 430_1382477924_3
2013-10-22 17:38:45 UTC-4: [Agent] 430_1382477924_3 = 1382477925
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment