From d569f4d65ac2204d932146c6d3ad2cbf5ec18280 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 9 Jan 2023 00:34:09 +0100 Subject: [PATCH] ma ham: enable more weather services --- 2configs/editor/vim.nix | 3 ++- 2configs/editor/vimrc | 6 +++++- 2configs/home/ham/sensor/outside.nix | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/2configs/editor/vim.nix b/2configs/editor/vim.nix index b37f240..f53be58 100644 --- a/2configs/editor/vim.nix +++ b/2configs/editor/vim.nix @@ -11,7 +11,8 @@ "YouCompleteMe" #"UltiSnips" # vim-nix handles indentation better but does not perform sanity - "vim-addon-nix" + "vim-nix" + # "vim-addon-nix" "vim-better-whitespace" ]; }; diff --git a/2configs/editor/vimrc b/2configs/editor/vimrc index 309e81a..e24d299 100644 --- a/2configs/editor/vimrc +++ b/2configs/editor/vimrc @@ -7,7 +7,7 @@ set listchars=tab:▸\ filetype off filetype plugin indent on -colorscheme darkblue +colorscheme desert set background=dark set number @@ -49,6 +49,10 @@ set matchtime=3 set hlsearch autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red +hi MatchParen cterm=none ctermbg=green ctermfg=blue + +let g:better_whitespace_enabled=1 +let g:strip_whitespace_on_save=1 " save on focus lost diff --git a/2configs/home/ham/sensor/outside.nix b/2configs/home/ham/sensor/outside.nix index d05e8a1..e746761 100644 --- a/2configs/home/ham/sensor/outside.nix +++ b/2configs/home/ham/sensor/outside.nix @@ -26,5 +26,19 @@ { platform = "met"; } + { + platform = "openweathermap"; + api_key = "!secret openweathermap"; + language = "de"; + mode = "hourly"; + } + { + platform = "tomorrowio"; + api_key = "!secret tomorrowio"; + } + { platform = "octoprint"; } + { platform = "accuweather"; + api_key = "!secret accuweather"; + } ]; }