Skip to content

Instantly share code, notes, and snippets.

@koleson
koleson / sunpower_ess_mode_set-sh-README.md
Last active September 20, 2024 21:03
Sunpower ESS Mode Set Shell Script README
@koleson
koleson / sunpower_ess_mode_set.sh
Last active September 20, 2024 21:04
Script to set SunPower SunVault ESS discharge mode via SunPower GraphQL API
#!/usr/bin/env zsh
# Created 5 April 2023 by Kiel Oleson - [email protected] - @kielo
# updated 6 July 2024
#
# example usage: ./sunpower_ess_mode_set.sh -m SELF_CONSUMPTION -r 0.04 -s A_123456 -u [email protected] -p SuperSecret1!
#
# README/NOTES: https://gist.github.com/koleson/db9df38ef6051715d743e572acebdd4d
#
@koleson
koleson / Future_Experiments.md
Last active October 31, 2024 02:40
PVS6 Notes

Past and Future Experiments

Ideas for profitable investigations and an index of experimental results. Free to a good home; will post results as they come in.

Past Experiments

MQTT reroute - MQTT_Reroute.md

Very fruitful - finally understood how the mySunPower app's SunVault mode changes are communicated to the PVS6, which performs the system control described by the modes, and found a potential method of changing the command and data acquisition server from one in the cloud to one that is locally controlled.

Future Experiments

@koleson
koleson / gist:253c64a5bf0a6a9ea8d0558c0b01988f
Created August 5, 2017 20:22
SSL failure - istatd to iStat View
default 13:21:34.342074 -0700 iStat View Server 'orange pi' Connecting
default 13:21:34.343108 -0700 iStat View Server 'orange pi' Connecting to address: opp.local, port: 5109
default 13:21:34.343199 -0700 iStat View Stream client bypassing proxies on TCP Conn [21:0x61000019f6f0]
default 13:21:34.343215 -0700 iStat View TCP Conn 0x61000019f6f0 started
default 13:21:34.517381 -0700 iStat View TCP Conn 0x61000019f6f0 event 1. err: 0
default 13:21:34.517425 -0700 iStat View TCP Conn 0x61000019f6f0 complete. fd: 17, err: 0
default 13:21:34.517785 -0700 iStat View Server 'orange pi' Connected
default 13:21:34.517830 -0700 iStat View Server 'orange pi' starting tls
default 13:21:34.517966 -0700 iStat View TCP Conn 0x61000019f6f0 starting SSL negotiation
default 13:21:34.520422 -0700 iStat View CFNetwork SSLHandshake failed (-9847)
@koleson
koleson / keybase.md
Created April 13, 2016 23:13
My Keybase Proof

Keybase proof

I hereby claim:

  • I am koleson on github.
  • I am kiel (https://keybase.io/kiel) on keybase.
  • I have a public key ASDvdliPTK7Kb1TXDJn5qSEbwR_vpSy-38I7jSVmQlmwmAo

To claim this, I am signing this object:

@koleson
koleson / ExtensionOverrides.swift
Last active January 29, 2016 20:47
Confusion: Method overrides in extensions
// Playground - unexpected extension method selection
import Foundation
var str = "Hello, playground"
protocol MethodProtocol {
func aMethod() -> String
}
//
// CLLocationManager+AutomationMock.m
//
#import "CLLocationManager+AutomationMock.h"
@implementation CLLocationManager (AutomationMock)
+ (BOOL)authorizationStatus