commit 8022c322874ec7081db89071ad58deb216af0f2b
parent 5312526466fc0bba793cb0c98dc443a241c52593
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 9 Dec 2018 18:24:50 -0500
Fix ssl errors on gmail, change forecast target to Plainsboro
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/links/.offlineimaprc b/links/.offlineimaprc
@@ -200,7 +200,7 @@ type = Gmail
remoteuser = andersdc@gmail.com
#remotepasseval = get_keychain_pass(account="andersdc@gmail.com", server="imap.gmail.com")
remotepasseval = get_pass("andersdc@gmail.com")
-auth_mechanisms = LOGIN
+#auth_mechanisms = LOGIN
realdelete = no
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
@@ -214,7 +214,9 @@ folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail', '[Gmail
ssl=true
# install openssl from homebrew
#sslcacertfile=/usr/local/etc/openssl/cert.pem
-sslcacertfile=/etc/ssl/cert.pem
+#sslcacertfile=/etc/ssl/cert.pem
+sslcacertfile=/etc/ssl/certs/ca-certificates.crt
+ssl_version=tls1_2
#folderfilter = lambda folder: folder not in ['Kalender','Kontaktpersoner','Slettet post','NFIT-Import-adc-2012-09-11-04:18']
diff --git a/links/bin/forecast b/links/bin/forecast
@@ -4,11 +4,11 @@ set -e
# DMI
#zipcode=7700 # Thisted
-zipcode=9520 # Skoerping
-url="http://servlet.dmi.dk/byvejr/servlet/byvejr_dag1?by=${zipcode}&mode=long&eps=true"
+#zipcode=9520 # Skoerping
+#url="http://servlet.dmi.dk/byvejr/servlet/byvejr_dag1?by=${zipcode}&mode=long&eps=true"
# NWS: Plainsboro
-#url='http://f1.weather.gov/meteograms/Plotter.php?lat=40.3308&lon=-74.5647&wfo=PHI&zcode=NJZ012&gset=20&gdiff=10&unit=0&tinfo=EY5&ahour=0&pcmd=11011111111110100000000000000000000000000000000000000000000&lg=en&indu=3!1!1!&dd=&bw=&hrspan=48&pqpfhr=6&psnwhr=6'
+url='http://f1.weather.gov/meteograms/Plotter.php?lat=40.3308&lon=-74.5647&wfo=PHI&zcode=NJZ012&gset=20&gdiff=10&unit=0&tinfo=EY5&ahour=0&pcmd=11011111111110100000000000000000000000000000000000000000000&lg=en&indu=3!1!1!&dd=&bw=&hrspan=48&pqpfhr=6&psnwhr=6'
if command -v open &>/dev/null; then
open=open