You are not logged in.
Cool, @loutch. Any solution is welcome.
I always have in the back of my mind at the moment,
7.13m/s x 3.6 = 25.668km/h
Offline
made a few changes to the openweather conky by @loutch and @unklar, in a sense that it no longer rely on images, but instead use the 'feather' iconfont for the weather category icons. Such icons now have the same size as the font, and are set equally/simultanuously with a template nominator.
Obviously, you need to have the 'feather' iconfont installed on your system.
Below conkyrc assumes that both 'weather.sh' (as before) and 'openweather-loutch' (configuration) scripts are located in ~/.conky/scripts directory.
conkyrc
--[[
Current Weather --> basis @OpenWeatherMap
Idea @loutch / Config @unklar / Mod @ceeslans | Sept 2022
--]]
conky.config = {
update_interval = 1.0,
total_run_times = 0,
double_buffer = true,
no_buffers = true,
cpu_avg_samples = 1,
net_avg_samples = 1,
text_buffer_size = 4096,
use_spacer = 'none',
uppercase = false,
background = true,
own_window = true,
own_window_type = 'normal',
--own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager', --sticky,
own_window_class = 'Conky',
own_window_title = 'WeatherLoutchConky',
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 0,
border_inner_margin = 0,
border_width = 1,
default_color = '#eeeeee',
default_shade_color = 'black',
default_outline_color = 'black',
use_xft = true,
font = 'Liberation Sans Narrow:size=10',
xftalpha = 1,
override_utf8_locale = true,
minimum_width = 280, maximum_width = 280,
--minimum_height = 200,
gap_x = 30,
gap_y = 75,
alignment = 'bottom_left',
-- ### set equal font+icons size for the weather categories
template1 = '10',
--lua_load = '~/.conky/LUA/draw_bg.lua',
--lua_draw_hook_pre = 'draw_bg',
--${goto 15}Temperature: ${goto 125}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.temp' | awk '{print int($1+0.5)}')} °C
--${goto 15}Feels Like: ${goto 125}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.feels_like' | awk '{print int($1+0.5)}')} °C
--
};
conky.text = [[
${texeci 1200 ~/.conky/scripts/weather.sh}
${voffset -5}${goto 185}${font feather:size=60}${execpi 600 ~/.conky/scripts/openweather-loutch -i}{$font}
${voffset -70}${goto 15}${font feather:size=12} ${font Abel:bold:size=13}${execpi 600 cat ~/.cache/weather.json | jq -r '.name'}\
${voffset -3}${goto 135}${font Bebas Neue:size=20}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.temp' | awk '{print int($1+0.5)}')}°
${voffset -12}${goto 15}${font Abel:italic:size=11}${execpi 600 cat ~/.cache/weather.json | jq -r '.weather[0].description' | sed "s|\<.|\U&|g"}${font}
\
###weather categories >> (size of font+icons set by 'template1')
${voffset 12}${goto 15}${font Liberation Sans Narrow:size=$template1}Wind direction ${goto 125}${execpi 600 ~/.conky/scripts/openweather-loutch -d} ${goto 102}${font feather:size=$template1}${font}
${goto 15}${font Liberation Sans Narrow:size=$template1}Wind speed ${goto 125}${execpi 600 ~/.conky/scripts/openweather-loutch -s} km/h ${goto 102}${font feather:size=$template1}${font}
${goto 15}${font Liberation Sans Narrow:size=$template1}Wind gust ${goto 125}${execpi 600 ~/.conky/scripts/openweather-loutch -g} km/h ${goto 102}${font feather:size=$template1}${font}
${goto 15}${font Liberation Sans Narrow:size=$template1}Humidity ${goto 125}${execpi 600 (cat ~/.cache/weather.json | jq '.main.humidity')} % ${goto 102}${font feather:size=$template1}${font}
${voffset 10}\
${goto 15}${font Liberation Sans Narrow:size=$template1}Sunrise ${goto 125}${execpi 600 date -d "@$(jq -r .sys.sunrise ~/.cache/weather.json)" +%H:%M\ %P} ${goto 102}${font feather:size=$template1}${font}
${goto 15}${font Liberation Sans Narrow:size=$template1}Sunset ${goto 125}${execpi 600 date -d "@$(jq -r .sys.sunset ~/.cache/weather.json)" +%H:%M\ %P} ${goto 102}${font feather:size=$template1}${font}
${voffset 10}\
${goto 15}${font Liberation Sans Narrow:size=$template1}Clouds ${goto 125}${execpi 600 (cat ~/.cache/weather.json | jq -r '.clouds.all')} % ${goto 102}${font feather:size=$template1}${font}
${goto 15}${font Liberation Sans Narrow:size=$template1}Pressure ${goto 125}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.pressure')} mb ${goto 102}${font feather:size=$template1}${font}
${goto 15}${font Liberation Sans Narrow:size=$template1}Visibility ${goto 125}${execpi 600 (cat ~/.cache/weather.json | jq -r '.visibility')} m ${goto 102}${font feather:size=$template1}${font}
${voffset -80}
]];
openweather-loutch
#!/bin/bash
# show weather icon with text icon (original by @Closebox73)
if [[ $1 = "-i" ]]; then
# icon font based openweathermap.org data
ICON_01D=""
ICON_01N=""
ICON_02D=""
ICON_02N=""
ICON_03D=""
ICON_03N=""
ICON_04D=""
ICON_04N=""
ICON_09D=""
ICON_09N=""
ICON_10D=""
ICON_10N=""
ICON_11D=""
ICON_11N=""
ICON_13D=""
ICON_13N=""
ICON_50D=""
ICON_50N=""
WEATHER_ICON=$(cat ~/.cache/weather.json | jq -r '.weather[0].icon')
if [[ "${WEATHER_ICON}" = *01d* ]]; then echo "${ICON_01D}"
elif [[ "${WEATHER_ICON}" = *01n* ]]; then echo "${ICON_01N}"
elif [[ "${WEATHER_ICON}" = *02d* ]]; then echo "${ICON_02D}"
elif [[ "${WEATHER_ICON}" = *02n* ]]; then echo "${ICON_02N}"
elif [[ "${WEATHER_ICON}" = *03d* ]]; then echo "${ICON_03D}"
elif [[ "${WEATHER_ICON}" = *03n* ]]; then echo "${ICON_03N}"
elif [[ "${WEATHER_ICON}" = *04d* ]]; then echo "${ICON_04D}"
elif [[ "${WEATHER_ICON}" = *04n* ]]; then echo "${ICON_04N}"
elif [[ "${WEATHER_ICON}" = *09d* ]]; then echo "${ICON_09D}"
elif [[ "${WEATHER_ICON}" = *09n* ]]; then echo "${ICON_09N}"
elif [[ "${WEATHER_ICON}" = *10d* ]]; then echo "${ICON_10D}"
elif [[ "${WEATHER_ICON}" = *10n* ]]; then echo "${ICON_10N}"
elif [[ "${WEATHER_ICON}" = *11d* ]]; then echo "${ICON_11D}"
elif [[ "${WEATHER_ICON}" = *11n* ]]; then echo "${ICON_11N}"
elif [[ "${WEATHER_ICON}" = *13d* ]]; then echo "${ICON_13D}"
elif [[ "${WEATHER_ICON}" = *13n* ]]; then echo "${ICON_13N}"
elif [[ "${WEATHER_ICON}" = *50d* ]]; then echo "${ICON_50D}"
elif [[ "${WEATHER_ICON}" = *50n* ]]; then echo "${ICON_50N}"
fi
fi
# transform "wind.deg" value into "NEWS" format (by @ceeslans)
if [[ $1 = "-d" ]]; then
WIND_DEG=$(cat ~/.cache/weather.json | jq '.wind.deg')
if [[ $WIND_DEG -le 11 ]]; then echo "N"
elif [[ $WIND_DEG -le 33 ]]; then echo "NNE"
elif [[ $WIND_DEG -le 56 ]]; then echo "NE"
elif [[ $WIND_DEG -le 78 ]]; then echo "ENE"
elif [[ $WIND_DEG -le 101 ]]; then echo "E"
elif [[ $WIND_DEG -le 123 ]]; then echo "ESE"
elif [[ $WIND_DEG -le 146 ]]; then echo "SE"
elif [[ $WIND_DEG -le 168 ]]; then echo "SSE"
elif [[ $WIND_DEG -le 191 ]]; then echo "S"
elif [[ $WIND_DEG -le 213 ]]; then echo "SSW"
elif [[ $WIND_DEG -le 236 ]]; then echo "SW"
elif [[ $WIND_DEG -le 258 ]]; then echo "WSW"
elif [[ $WIND_DEG -le 281 ]]; then echo "W"
elif [[ $WIND_DEG -le 303 ]]; then echo "WNW"
elif [[ $WIND_DEG -le 326 ]]; then echo "NW"
elif [[ $WIND_DEG -le 348 ]]; then echo "NNW"
elif [[ $WIND_DEG -le 360 ]]; then echo "N"
else echo "?!?"
fi
fi
##### transform 'wind' values from "m/s" into "km/h" value (by @ceeslans)
if [[ $1 = "-s" ]]; then
WIND_SPD=$(cat ~/.cache/weather.json | jq '.wind.speed')
WIND_KMH=$(echo "${WIND_SPD}*3.6" | bc)
echo "${WIND_KMH}"
fi
if [[ $1 = "-g" ]]; then
WIND_GST=$(cat ~/.cache/weather.json | jq '.wind.gust')
WIND_KMH=$(echo "${WIND_GST}*3.6" | bc)
echo "${WIND_KMH}"
fi
### EOF ###
Offline
Offline
Simple one line conky on a dual monitor setup, fluxbox window manager. The conkyrc is configured:
own_window_type = dock
so that it resides in the fluxbox slit (same as openbox dock).
Note that the conky window carries over to the second monitor (the terminal with mc running is maximized); both monitors are 1920x1080. I can adjust the width of the conky down to ~1910 so that it stays on the first monitor, but I suspect there is a more elegant way to do this.
Does the conky configuration seting:
xinerama_head
fix this issue, so conky only displays on the specified monitor? I noticed there is also
display
in the conky configuration settings.
You must unlearn what you have learned.
-- yoda
Offline
You have to set above TEXT/conky.text = [[
xinerama_head 1
or
xinerama_head = 1,
for the right monitor. The counting starts with 0.
If you have already chosen 1 (for left) then "xinerama_head = 1" and "xinerama_head = 2" would set both conkies to xinerama_head 1 and no conky to xinerama_head 0.
PackRat explained this to me a long time ago, when he tested this for me, due to lack of equipment.
Offline
You have to set above TEXT/conky.text = [[
xinerama_head 1 or xinerama_head = 1,
for the right monitor. The counting starts with 0.
If you have already chosen 1 (for left) then "xinerama_head = 1" and "xinerama_head = 2" would set both conkies to xinerama_head 1 and no conky to xinerama_head 0.PackRat explained this to me a long time ago, when he tested this for me, due to lack of equipment.
![]()
Thanks. So it has to be 1 or 0. I was using the output from xrandr like polybar does.
You must unlearn what you have learned.
-- yoda
Offline
conky_V1.15. in archlinux
[unklar@archhost ~]$ conky -v
conky 1.15.0_pre compiled 2022-11-05 for Linux x86_64
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
General:
* math
* hddtemp
* portmon
* IPv6
* Curl
* RSS
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* builtin default configuration
* old configuration syntax
* Imlib2
* OSS mixer support
* apcupsd
* iostats
* ncurses
* Internationalization support
* PulseAudio
X11:
* Xdamage extension
* Xinerama extension (virtual display)
* Xshape extension (click through)
* XDBE (double buffer extension)
* Xft
* ARGB visual
* Own window
Music detection:
* CMUS
* MPD
* MOC
Default values:
* Netdevice: eno1
* Local configfile: $HOME/.conkyrc
* Localedir: /usr/share/locale
* Maximum netdevices: 256
* Maximum text size: 16384
* Size text buffer: 256
[unklar@archhost ~]$
Last edited by unklar (2023-01-04 13:54:11)
Offline
conky_V1.17.0 today in sid(uction), debian has skipped the V_15
conky -v
conky 1.17.0 compiled 2023-01-03 for Linux x86_64
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
General:
* math
* hddtemp
* portmon
* IPv6
* IRC
* Curl
* RSS
* ICal
* iconv
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* builtin default configuration
* old configuration syntax
* Imlib2
* OSS mixer support
* apcupsd
* iostats
* ncurses
* Internationalization support
* PulseAudio
Lua bindings:
* Cairo
* Imlib2
* RSVG
X11:
* Xdamage extension
* Xinerama extension (virtual display)
* Xshape extension (click through)
* XDBE (double buffer extension)
* Xft
* ARGB visual
* Own window
Music detection:
* Audacious
* CMUS
* MPD
* MOC
Default values:
* Netdevice: eno1
* Local configfile: $HOME/.conkyrc
* Localedir: /usr/share/locale
* Maximum netdevices: 256
* Maximum text size: 16384
* Size text buffer: 256
Offline
Are they "lua" conkys or similar to v1.9?
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Are they "lua" conkys or similar to v1.9?
Everything lua
https://metadata.ftp-master.debian.org/ … _changelog
Last edited by unklar (2023-01-05 10:07:55)
Offline
Sector11 wrote:Are they "lua" conkys or similar to v1.9?
Everything lua
https://metadata.ftp-master.debian.org/ … _changelog
Colour me happy, still working like it should:
05 Jan 23 @ 09:06:28 ~
$ conky -v
Conky 1.9.0 compiled Sun Jul 2 19:19:46 UTC 2017 for Linux 4.4.73-18.17-default (x86_64)
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft
* ARGB visual
Music detection:
* Audacious
* MPD
* MOC
* XMMS2
General:
* math
* hddtemp
* portmon
* Curl
* RSS
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* eve-online
* config-output
* Imlib2
* apcupsd
* iostats
* ncurses
* Lua
Lua bindings:
* Cairo
* Imlib2
05 Jan 23 @ 09:06:35 ~
$
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Colour me happy, still working like it should:
I know..., for me too (every now and then)
Offline
First kick at the can - Obviously some tweaks needed.
This one doesn't need a magnifying glass, it needs a microscope.
Offline tweaking in progress.
EDIT: this is an edit BEFORE hitting [Submit]
It's been sitting here all day waiting for me to hit [Submit].
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I got it finished and since those little icons down the middle don't do anything for me, I added the lines again below the main part, less the Sunrise and Sunset. I'm going to add them to the AccuWeather RSS Feed conky just above: -- FORECAST -- since the program "remind" is already doing the Sun Moon data.
So my "Weather/Sun/Moon" conky will be getting info from 3 different places on the internet.
The conky. Thank you unklar, your conky made it easy:
/media/5/Conky/openweather/openweather.9.conky
# pkill -xf "conky -c /media/5/Conky/openweather/openweather.9.conky" &
# Idea @loutch ---> https://forums.bunsenlabs.org/viewtopic.php?pid=123027#p123027
# Config @unklar 2022-09-15 - modified by Sector11 2023.01.17
background yes
use_xft yes
#xftfont Fantasque Sans Mono:bold:size=12
#xftfont Monofur:bold:size=14
#xftfont DejaVu Sans Mono:bold:size=10
xftfont Fira Code:medium:size=12
# xftfont Liberation Sans:size=9
## Alpha of Xft font. Must be a value at or between 1 and 0
xftalpha 1.0
update_interval 1
double_buffer yes
total_run_times 0
no_buffers yes
uppercase no
cpu_avg_samples 1
net_avg_samples 1
override_utf8_locale yes
use_spacer none
own_window yes
own_window_type normal #override
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_transparent yes
own_window_class Conky
own_window_title Open Weather
# draw_shades no
# draw_outline no
# draw_borders no
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
draw_graph_borders no
stippled_borders 0
border_inner_margin 0
border_width 1
default_color white
default_shade_color black
default_outline_color black
#Minimum size of text area
minimum_size 245 220
maximum_width 245
gap_x 225
gap_y 10
#alignment top_left
alignment top_left
#alignment bottom_right
text_buffer_size = 4096,
#TEXT
#${texeci 1200 /media/5/Conky/openweather/weather.sh}\
TEXT
${texeci 1800 /media/5/Conky/openweather/weather.sh}\
${goto 5}${font feather:size=45}${execpi 600 /media/5/Conky/openweather/weather-text-icon}${font}\
${voffset -35}${goto 75}${font Abel:bold:size=14}${execpi 600 cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.name'} \
${font Bebas Neue:size=18}${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.main.temp' | awk '{print int($1+0.5)}')}°\
${goto 75}${font Fira Code:medium:size=11}${execpi 600 cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.weather[0].description' | sed "s|\<.|\U&|g"}
${font Fira Code:medium:size=11} Wind speed:${goto 135}\
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.wind.speed')} m/s
Wind gust:${goto 135}\
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.wind.gust')} m/s
Wind deg:${goto 135}\
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.wind.deg')}°\
${execpi 600 /media/5/Conky/openweather/weather-wind-dir}
Humidity:${goto 135}\
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.main.humidity')} %
Sunrise:${goto 135}\
${execpi 600 date -d "@$(jq -r .sys.sunrise /media/5/Conky/openweather/.cache/weather.json)" +%H:%M}
Sunset:${goto 135}\
${execpi 600 date -d "@$(jq -r .sys.sunset /media/5/Conky/openweather/.cache/weather.json)" +%H:%M}
Clouds:${goto 135}\
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.clouds.all')} %
Pressure:${goto 135}\
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.main.pressure')} mb
Visibility:${goto 135}\
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.visibility')} m\
${image /media/5/Conky/openweather/icons/wind.png -p 110,80 -s 19x19}\
${image /media/5/Conky/openweather/icons/wind-2.png -p 110,99 -s 20x20}\
${image /media/5/Conky/openweather/icons/wind_rose-2.png -p 111,119 -s 16x16}\
${image /media/5/Conky/openweather/icons/humidity.png -p 110,137 -s 19x19}\
${image /media/5/Conky/openweather/icons/sunrise.png -p 110,158 -s 18x18}\
${image /media/5/Conky/openweather/icons/sunset.png -p 110,176 -s 18x18}\
${image /media/5/Conky/openweather/icons/clouds.png -p 110,197 -s 18x18}\
${image /media/5/Conky/openweather/icons/pressure.png -p 110,216 -s 18x18}\
${image /media/5/Conky/openweather/icons/visibility.png -p 110,235 -s 18x18}
${swapbar 0,245}
Wind speed: \
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.wind.speed')} m/s
Wind gust: \
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.wind.gust')} m/s
Wind deg: \
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.wind.deg')}°\
${execpi 600 /media/5/Conky/openweather/weather-wind-dir}
Humidity: \
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq '.main.humidity')} %
Clouds: \
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.clouds.all')} %
Pressure: \
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.main.pressure')} mb
Visibility: \
${execpi 600 (cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.visibility')} m${font}
/media/5/Conky/openweather/weather.sh
#!/bin/bash
# Closebox73
# This script is to get weather data from openweathermap.com in the form of a json file
# so that conky will still display the weather when offline even though it doesn't up to date
# you can use this or replace with yours
# Using: Default api_key:
api_key=(add you API key here)
# get your city id at https://openweathermap.org/find
city_id=(add your city code here - it's the last ####'s in the URL)
url="api.openweathermap.org/data/2.5/weather?id=${city_id}&appid=${api_key}&cnt=5&units=metric&lang=en"
curl ${url} -s -o /media/5/Conky/openweather/.cache/weather.json
/media/5/Conky/openweather/weather-text-icon
#!/bin/bash
# I create this scripts to show weather icon with text icon
# and take data from json file, so it can use offline
# the font i use weather icons font from http://erikflowers.github.io/weather-icons/
# to get weather.json file i use another script
# Closebox73
# icon font based openweathermap.org data
ICON_01D=""
ICON_01N=""
ICON_02D=""
ICON_02N=""
ICON_03D=""
ICON_03N=""
ICON_04D=""
ICON_04N=""
ICON_09D=""
ICON_09N=""
ICON_10D=""
ICON_10N=""
ICON_11D=""
ICON_11N=""
ICON_13D=""
ICON_13N=""
ICON_50D=""
ICON_50N=""
WEATHER_ICON=$(cat /media/5/Conky/openweather/.cache/weather.json | jq -r '.weather[0].icon')
if [[ "${WEATHER_ICON}" = *01d* ]]; then
echo "${ICON_01D}"
elif [[ "${WEATHER_ICON}" = *01n* ]]; then
echo "${ICON_01N}"
elif [[ "${WEATHER_ICON}" = *02d* ]]; then
echo "${ICON_02D}"
elif [[ "${WEATHER_ICON}" = *02n* ]]; then
echo "${ICON_02N}"
elif [[ "${WEATHER_ICON}" = *03d* ]]; then
echo "${ICON_03D}"
elif [[ "${WEATHER_ICON}" = *03n* ]]; then
echo "${ICON_03N}"
elif [[ "${WEATHER_ICON}" = *04d* ]]; then
echo "${ICON_04D}"
elif [[ "${WEATHER_ICON}" = *04n* ]]; then
echo "${ICON_04N}"
elif [[ "${WEATHER_ICON}" = *09d* ]]; then
echo "${ICON_09D}"
elif [[ "${WEATHER_ICON}" = *09n* ]]; then
echo "${ICON_09N}"
elif [[ "${WEATHER_ICON}" = *10d* ]]; then
echo "${ICON_10D}"
elif [[ "${WEATHER_ICON}" = *10n* ]]; then
echo "${ICON_10N}"
elif [[ "${WEATHER_ICON}" = *11d* ]]; then
echo "${ICON_11D}"
elif [[ "${WEATHER_ICON}" = *11n* ]]; then
echo "${ICON_11N}"
elif [[ "${WEATHER_ICON}" = *13d* ]]; then
echo "${ICON_13D}"
elif [[ "${WEATHER_ICON}" = *13n* ]]; then
echo "${ICON_13N}"
elif [[ "${WEATHER_ICON}" = *50d* ]]; then
echo "${ICON_50D}"
elif [[ "${WEATHER_ICON}" = *50n* ]]; then
echo "${ICON_50N}"
fi
and /media/5/Conky/openweather/weather-wind-dir
#!/bin/bash
# This script will transform the .wid.deg data in the weather.json file
# transforms wind degrees (1-360 dgr) to wind direction (in NEWS format)
WIND_DEG=$(cat /media/5/Conky/openweather/.cache/weather.json | jq '.wind.deg')
if [[ $WIND_DEG -le 11 ]]; then
echo "N"
elif [[ $WIND_DEG -le 33 ]]; then
echo "NNE"
elif [[ $WIND_DEG -le 56 ]]; then
echo "NE"
elif [[ $WIND_DEG -le 78 ]]; then
echo "ENE"
elif [[ $WIND_DEG -le 101 ]]; then
echo "E"
elif [[ $WIND_DEG -le 123 ]]; then
echo "ESE"
elif [[ $WIND_DEG -le 146 ]]; then
echo "SE"
elif [[ $WIND_DEG -le 168 ]]; then
echo "SSE"
elif [[ $WIND_DEG -le 191 ]]; then
echo "S"
elif [[ $WIND_DEG -le 213 ]]; then
echo "SSW"
elif [[ $WIND_DEG -le 236 ]]; then
echo "SW"
elif [[ $WIND_DEG -le 258 ]]; then
echo "WSW"
elif [[ $WIND_DEG -le 281 ]]; then
echo "W"
elif [[ $WIND_DEG -le 303 ]]; then
echo "WNW"
elif [[ $WIND_DEG -le 326 ]]; then
echo "NW"
elif [[ $WIND_DEG -le 348 ]]; then
echo "NNW"
elif [[ $WIND_DEG -le 360 ]]; then
echo "N"
else
echo "??"
fi
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@S11, Very nice.
I think the idea of integrating that into RSS Weather is excellent. Also, because Accuweather is now broken and from Teo only RSS Weather remains.
I'm sorry that your eyes can no longer see the small icons. Nevertheless, you are always good for surprises!
I did not know FiraCode yet. Thanks for that.
Last edited by unklar (2023-01-18 11:13:04)
Offline
@S11, Very nice.
I think the idea of integrating that into RSS Weather is excellent. Also, because Accuweather is now broken and from Teo only RSS Weather remains.
Accuweather RRS rules the roost.
Worked for Teo for years before I started using it.
When all the problems started and weather stations started falling of Te4o's map, I switched.
Glad I did, I love it - it just works!
I'm sorry that your eyes can no longer see the small icons. Nevertheless, you are always good for surprises! https://i.imgur.com/hvLExpI.png
Changing the size of those "icons" is a simple matter of changing the "-s XxX" values.
I'm just not a fan on those "types" of icons
I did not know FiraCode yet. Thanks for that. https://i.imgur.com/rc35Zoo.png
I use Fira Mono and Fira Code a lot. Really nice fonts.
Here's my new Accu RSS, Openweather, remind Weather Sun|Moon data conky.
Since Accu RSS feed, Openweather and remind are required I'll only post the conky (v1.9) if anyone is really interested in it.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Found an OLD conky that was using a defunct Accuweather script and Moon script from 2016. I was using a triple core AND back them a ${platform} to get sensor data. None of that worked. But londonali's clock was still working ... So some heavy duty tweaking there it is new on the left old on the right.
Screenshot
Conky v1.9 so I'll not post the code unless someone wants it.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Found an OLD conky that was using a defunct Accuweather script and Moon script from 2016.
Conky v1.9 so I'll not post the code unless someone wants it.
That might be of interest to the users of antiX the default conky on it is 1.9
Offline
Found an OLD conky that was using a defunct Accuweather script and Moon script from 2016. I was using a triple core AND back them a ${platform} to get sensor data. None of that worked. But londonali's clock was still working ... So some heavy duty tweaking there it is new on the left old on the right.
Screenshot
Conky v1.9 so I'll not post the code unless someone wants it.
Very nice.
I'd be interested to know where in the lua-script of the clock you tweaked it to make it smaller. Is that relevant for the rings in general, or, only for this one from londonali?
Offline
Sector11 wrote:Found an OLD conky that was using a defunct Accuweather script and Moon script from 2016.
Conky v1.9 so I'll not post the code unless someone wants it.That might be of interest to the users of antiX the default conky on it is 1.9
antiX is a 'misreport'
Conky 1.9 works with any OS without problems. At least the ones I know. Example (accuweather I have not yet fixed, in the sense of 'removed').
Offline