fixed tmux mem cpu load issue. Working on making everything a submodule
parent
3079c5b7b9
commit
004565e190
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $HOME/.dotfiles/tmux/plugins/tmux-mem-cpu-load
|
cd $HOME/.dotfiles/bin/tmux-mem-cpu-load
|
||||||
cmake .
|
cmake .
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 5dccd1801f36efb14e6b43ad90cb9569fe220d1c
|
@ -1,9 +1,9 @@
|
|||||||
TEMP=35.06000000000000000000
|
TEMP=42.08000000000000000000
|
||||||
HUMIDITY=63.929305394195
|
HUMIDITY=88.816089115542
|
||||||
ICON=skc
|
ICON=ovc
|
||||||
LOCATION=
|
LOCATION=
|
||||||
ZONE=https://api.weather.gov/zones/forecast/MAZ014
|
ZONE=https://api.weather.gov/zones/forecast/MAZ014
|
||||||
CITY="Cambridge"
|
CITY=Cambridge
|
||||||
STATE="MA"
|
STATE=MA
|
||||||
TOD=night
|
TOD=night
|
||||||
EXPIRATION=1673315272
|
EXPIRATION=1673570805
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#source "$HOME/.dotfiles/.priv/key"
|
||||||
|
#source "$HOME/.dotfiles/bin/weather/.env.location"
|
||||||
|
#source "$HOME/.dotfiles/bin/weather/.env.weather"
|
||||||
|
# API_KEY=$(cat "$HOME/.dotfiles/bin/weather/.priv/key")
|
||||||
|
# getting weather
|
||||||
|
CUR_TIMESTAMP=$(date +%s)
|
||||||
|
# only update weather every 30 seconds
|
||||||
|
|
||||||
|
if [[ $CUR_TIMESTAMP -gt $EXPIRATION || -z $EXPIRATION ]] ; then
|
||||||
|
WEATHER=$(curl --silent "http://wttr.in/${LOCATION}?format=j2" | gojq -r '.current_condition[0]')
|
||||||
|
|
||||||
|
echo $WEATHER
|
||||||
|
TEMP=$(echo $WEATHER | gojq -r '.temp_F')
|
||||||
|
HUMIDITY=$(echo $WEATHER | gojq -r '.humidity')
|
||||||
|
ICON=$(echo $WEATHER | gojq -r '.weatherCode')
|
||||||
|
EXPIRATION=$(($CUR_TIMESTAMP+30))
|
||||||
|
echo "TEMP: $TEMP HUMIDITY: $HUMIDITY ICON: $ICON"
|
||||||
|
#printf 'TEMP=%s\nHUMIDITY=%s\nICON=%s\nEXPIRATION=%s\n' "$TEMP" "$HUMIDITY" "$ICON" "$EXPIRATION" >"$HOME/.dotfiles/bin/weather/.env.weather"
|
||||||
|
fi
|
||||||
|
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
WEATHER_DIR="${HOME}/.dotfiles/bin/weather"
|
WEATHER_DIR="${HOME}/.dotfiles/bin/weather"
|
Binary file not shown.
@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#source "$HOME/.dotfiles/.priv/key"
|
|
||||||
#source "$HOME/.dotfiles/bin/weather/.env.location"
|
|
||||||
#source "$HOME/.dotfiles/bin/weather/.env.weather"
|
|
||||||
# API_KEY=$(cat "$HOME/.dotfiles/bin/weather/.priv/key")
|
|
||||||
# getting weather
|
|
||||||
CUR_TIMESTAMP=$(date +%s)
|
|
||||||
# only update weather every 30 seconds
|
|
||||||
|
|
||||||
if [[ $CUR_TIMESTAMP -gt $EXPIRATION || -z $EXPIRATION ]] ; then
|
|
||||||
WEATHER=$(curl --silent "http://wttr.in/${LOCATION}?format=j2" | gojq -r '.current_condition[0]')
|
|
||||||
|
|
||||||
echo $WEATHER
|
|
||||||
TEMP=$(echo $WEATHER | gojq -r '.temp_F')
|
|
||||||
HUMIDITY=$(echo $WEATHER | gojq -r '.humidity')
|
|
||||||
ICON=$(echo $WEATHER | gojq -r '.weatherCode')
|
|
||||||
EXPIRATION=$(($CUR_TIMESTAMP+30))
|
|
||||||
echo "TEMP: $TEMP HUMIDITY: $HUMIDITY ICON: $ICON"
|
|
||||||
#printf 'TEMP=%s\nHUMIDITY=%s\nICON=%s\nEXPIRATION=%s\n' "$TEMP" "$HUMIDITY" "$ICON" "$EXPIRATION" >"$HOME/.dotfiles/bin/weather/.env.weather"
|
|
||||||
fi
|
|
@ -1,46 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# source symbol based on $WEATHER_CODE and $TOD
|
|
||||||
# WeatherCodesDay := map[string]rune{
|
|
||||||
# "Unkown": '\ue374',
|
|
||||||
# "Cloudy": '\ue302',
|
|
||||||
# "Fog": '\ue303',
|
|
||||||
# "HeavyRain": '\ue318',
|
|
||||||
# "HeavyShowers": '\ue318',
|
|
||||||
# "HeavySnow": '\ue31a',
|
|
||||||
# "HeavySnowShowers": '\ue31a',
|
|
||||||
# "LightRain": '\ue308',
|
|
||||||
# "LightShowers": '\ue308',
|
|
||||||
# "LightSleet": '\ue3aa',
|
|
||||||
# "LightSleetShowers": '\ue3aa',
|
|
||||||
# "LightSnow": '\ue30a',
|
|
||||||
# "LightSnowShowers": '\ue30a',
|
|
||||||
# "PartlyCloudy": '\ue37b',
|
|
||||||
# "Sunny": '\ue30d',
|
|
||||||
# "ThunderyHeavyRain": '\ue31d',
|
|
||||||
# "ThunderyShowers": '\ue31d',
|
|
||||||
# "ThunderySnowShowers": '\ue365',
|
|
||||||
# "VeryCloudy": '\ue312',
|
|
||||||
# }
|
|
||||||
|
|
||||||
# WeatherCodesNight := map[string]rune{
|
|
||||||
# "Unkown": '\ue374',
|
|
||||||
# "Cloudy": '\ue37e',
|
|
||||||
# "Fog": '\ue346',
|
|
||||||
# "HeavyRain": '\ue318',
|
|
||||||
# "HeavyShowers": '\ue318',
|
|
||||||
# "HeavySnow": '\ue31a',
|
|
||||||
# "HeavySnowShowers": '\ue31a',
|
|
||||||
# "LightRain": '\ue325',
|
|
||||||
# "LightShowers": '\ue325',
|
|
||||||
# "LightSleet": '\ue3ac',
|
|
||||||
# "LightSleetShowers": '\ue3ac',
|
|
||||||
# "LightSnow": '\ue361',
|
|
||||||
# "LightSnowShowers": '\ue361',
|
|
||||||
# "PartlyCloudy": '\ue379',
|
|
||||||
# "Sunny": '\ue32b',
|
|
||||||
# "ThunderyHeavyRain": '\ue31d',
|
|
||||||
# "ThunderyShowers": '\ue31d',
|
|
||||||
# "ThunderySnowShowers": '\ue366',
|
|
||||||
# "VeryCloudy": '\ue312',
|
|
||||||
# }
|
|
@ -1 +0,0 @@
|
|||||||
{ "FeelsLikeC": "28", "FeelsLikeF": "82", "cloudcover": "75", "humidity": "48", "localObsDateTime": "2022-08-17 01:09 PM", "observation_time": "05:09 PM", "precipInches": "0.0", "precipMM": "0.3", "pressure": "1015", "pressureInches": "30", "temp_C": "25", "temp_F": "77", "uvIndex": "4", "visibility": "16", "visibilityMiles": "9", "weatherCode": "116", "weatherDesc": [ { "value": "Partly cloudy" } ], "weatherIconUrl": [ { "value": "" } ], "winddir16Point": "E", "winddirDegree": "80", "windspeedKmph": "22", "windspeedMiles": "14" }
|
|
Binary file not shown.
Loading…
Reference in New Issue