Skip to content

Instantly share code, notes, and snippets.

@Paraphraser
Paraphraser / Compiling GoSungrow.md
Last active February 4, 2026 02:59
Compiling GoSungrow

Updating GoSungrow

This gist is intended to help you deal with the following error conditions:

  • Error: appkey is incorrect 'er_invalid_appkey
  • Error: unknown error 'Request is not encrypted'
  • nil pointer exceptions while fetching battery information
  • missing device_type arguments

This gist has a number of parts which, because of the way in which this gist has grown over time, are not necessarily in a logical order.

@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git