Skip to content

Instantly share code, notes, and snippets.

View scottweston's full-sized avatar
👾
Looking busy until the singularity

Scott Weston scottweston

👾
Looking busy until the singularity
View GitHub Profile
@scottweston
scottweston / config.ini
Created September 13, 2018 01:48
Little script I use to sync AWS SES mail dumped into an S3 bucket to a Maildir folder so I can deal with it via Mutt for those domains where Google Suite is just massive overkill.
[DEFAULT]
maildir = /home/username/Maildir
bucket = bucket_name
profile = credential_profile
@scottweston
scottweston / power.sh
Created August 27, 2017 22:11
Command I use to watch my Tesla Energy Gateway (for a Powerwall 2)
#!/bin/bash
watch 'curl -s http://tesla-energy-gateway/api/meters/aggregates | jq "{battery:.battery.instant_power,solar:.solar.instant_power,grid:.site.instant_power,house:.load.instant_power}"'

Tesla Range Watch Complication

My Tesla's range (199.86kms in this screenshot) is always displayed in the black circle top right, it updates every 15m.

Ingredients

Keybase proof

I hereby claim:

  • I am scottweston on github.
  • I am srw (https://keybase.io/srw) on keybase.
  • I have a public key whose fingerprint is FBE8 A9D0 C614 50F5 FFB5 9EB8 718C 5FC1 355B 6537

To claim this, I am signing this object: