[Markdown link](https://
1 min read
Micro Monday: @retrophisch for, if nothing else, the #NoRepeatStarWarsShirts
1 min read
@jeremycherfas trying a “Post” rather than a “Status”; let’s see if the mention works #notwordpress #thirdrssfeedformicroblog
2 min read
Following another round of inverter issues, and generation meter misbehaviour I decided to actively investigate on–site battery storage.
Settling on a DC–coupled* Tesla Powerwall (their curvy first version) with a SolarEdge inverter.
(* Trying to reduce round–trip power losses due to rectification (AC—DC‡) and inversion (DC—AC). Powerwall 2 is AC–coupled for many reasons.)
These and an optimiser per PV (photovoltaic) panel† were fitted over two days around this time last year (October 2016).
(† There are 21 185W (Watt) Sharp panels, originally fitted August 2011. The original system is at least 80% paid off, not counting bill reduction(s).)
The result being: more use of electricity generated by photonic interactions with silicon wafers. (Some science.)
The upshot of this: many days’ nighttime usage covered by battery capacity (≤6.4kWh), negligible grid import, and bills where standing charge dwarfs unit expenditure.
e.g. “… for the period 29 June 2017 to 28 September 2017
- 12 units (1kWh kilowatt hour)
- 15.11p ex 5% VAT = 1.81 ex 5% VAT (value–added tax.)
- 92 days’ standing charge
- 30.87p ex 5% VAT = 28.40 ex 5% VAT
”
With the higher–level FIT (feed–in tariff), the 3.8+MWh generated over the year (translated to money in the bank) has been enough to pay those bills, and more…
1 min read
Find a likely plugin on GitHub: https://
Clone
Spend a few hours over a couple of days hacking about wildly (OAuth via login, then via web)
Place repository on a GOGS installation you created earlier: https://
Cross your fingers
Profit?
2 min read
Basically followed along with How To Set Up Gogs on Ubuntu 14.04.
However, installation to a Raspberry Pi B 2 running Mail In A Box requires some adjustments.
wget https:// storage.googleapis.com/ golang/ go1.6.3.linux-armv6l.tar.gz
./certbot-auto certonly -w /home/cn/domains/[server name] -d [server name] -a webroot
sudoedit /etc/nginx/conf.d/gogs.conf
server {
listen 80;
server_name [server name];
proxy_set_header X-Real-IP $remote_addr; # pass on real client IP
location / {
# Redirect using the 'return' directive and the built-in
# variable '$request_uri' to avoid any capturing, matching
# or evaluation of regular expressions.
return 301 https:// $server_name$request_uri;
}
location /.well-known/acme-challenge/ {
# This path must be served over HTTP for ACME domain validation.
# We map this to a special path where our TLS cert provisioning
# tool knows to store challenge response files.
root /home/cn/domains/[server name];
}
}
# The secure HTTPS server.
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name [server name];
# Improve privacy: Hide version an OS information on
# error pages and in the "Server" HTTP-Header.
server_tokens off;
ssl_certificate /etc/letsencrypt/live/[server name]/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/[server name]/privkey.pem;
location / {
proxy_pass http:// localhost:3000;
}
}
sudoedit /etc/supervisor/conf.d/gogs.conf
It will be no surprise to me if I’ve missed a step that I changed.