Skip to content

Instantly share code, notes, and snippets.

View koleson's full-sized avatar

Kiel koleson

View GitHub Profile
@koleson
koleson / sunpower_ess_mode_set.sh
Last active May 6, 2023 04:25
Script to set SunPower SunVault ESS discharge mode via SunPower GraphQL API
#!/usr/bin/env zsh
# Created 5 April 2023 by Kiel Oleson - kiel@kmo.email - @kielo
#
# example usage: ./sunpower_ess_mode_set.sh -m SELF_CONSUMPTION -r 0.04 -s A_123456 -u user@test.lol -p SuperSecret1!
#
# NOTES:
#
# I don't have access to any SunPower GraphQL API docs. Solely reverse-engineered.
#
@koleson
koleson / NOTES
Last active February 1, 2024 04:16
PVS6 Notes
SunPower PVS6
Control Board (Part 45-403-000690)
CPU: Freescale/NXP i.MX6 UltraLite - ARMv7 (32-bit) - `armhf` - (Automotive Grade - -40°C to 120°C operating temperature) - 528MHz part underclocked to 396MHz
eMMC: Kingston EMMC04G-W627-M06U (32Gbit/4GB - NAND MLC, BGA153 footprint, eMMC5.1 (HS400), i-Temp industrial operating temperature range - -40°C to +85°C) - later models use Micron eMMC
RAM: 2x Nanya1917 (???) - 1GiB total
"PSOC4": Cypress/Infineon PSoC4 Microcontroller
CAN Controller: NXP TJA1042T - SO8 footprint (Datasheet: https://www.nxp.com/docs/en/data-sheet/TJA1042.pdf)
CAN Ports (2): Molex Nano-Fit 4-pin (2x) connectors (counterpart: Molex Part 1053081204)
PMIC: NXP MC32PF3000A7 - 48QFN footprint (Datasheet: https://www.nxp.com/docs/en/data-sheet/PF3001.pdf)
@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