You are not logged in.
Thanks for checking unklar.
I tried to keep the same order in the result files, but it was impossible...
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Hello
Théo great job , work in french at me too.
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
@Teo: the script is great, no abnormalities whatsoever afaik.
finding the correct line numbers in the respective now/daily/hourly output files is a pita though...
Offline
Hello
Théo great job , work in french at me too.
@+
Thanks a lot for the info loutch, I appreciate it.
@ceeslans
:8
Sorry ceeslans, couldn't be helped...
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@Teo, question:
the weather.com website displays 24H-formatted hours as 4-digit value --> so the nightly hours are shown with a leading zero (05.00).
but only 3-digit value is printed to the 'hourly' file. can the script also output the leading zero for these early hours?
Last edited by ceeslans (2020-06-15 17:35:23)
Offline
loutch wrote:Hello
Théo great job , work in french at me too.
@+
Thanks a lot for the info loutch, I appreciate it.
it’s me who thanks you , you always do a very good job
Last edited by loutch (2020-06-15 18:41:57)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
@loutch
@ceeslans
Yeah, it bothers me as well, so...
#!/usr/bin/env bash
#########################################################################################
# Put the command that launches the conky configuration file that uses this script here #
#########################################################################################
weather_conky_launch_command="conky -b"
#########################################################################################################
# Put your language's interpretation of today, tenday and hourly - as shown in weather.com's url - here #
# Example for German: #
# today=heute #
# tenday=10tage #
# hourly=stundlich #
# Example for French: #
# today=aujour #
# tenday=10jours #
# hourly=parheure #
# etc., you get the idea #
# Replace your language's abbreviations for the wind directions as well #
#########################################################################################################
today=today
tenday=tenday
hourly=hourbyhour
north=N
south=S
west=W
east=E
###############################################################################################################################
# Put your Weather.com address here, add en-IE between weather.com and weather for metric. You can use any language you want. #
###############################################################################################################################
#address="https://weather.com/weather/today/l/USHI0026:1:US"
address="https://weather.com/en-IE/weather/today/l/44114afd18d51b90206ceecf0e548aa87fe4ccfa9e6e746022ac3bd079d429c5"
#address="https://weather.com/en-IE/weather/today/l/ARBA0009:1:AR"
#address="https://weather.com/de-LI/wetter/heute/l/6f62e1be6a5f0d36914ae9eab7c3aedbbec5b5c6e0946c3fe6069a94435fc196"
#address="https://weather.com/el-GR/weather/today/l/44114afd18d51b90206ceecf0e548aa87fe4ccfa9e6e746022ac3bd079d429c5"
#address="https://weather.com/de-DE/wetter/heute/l/44114afd18d51b90206ceecf0e548aa87fe4ccfa9e6e746022ac3bd079d429c5"
#address="https://weather.com/fr-FR/temps/aujour/l/0121bf9710ae35daa414ce903453d12358ddc10bee696b17d1f973fafc5260c4"
##########################
# Function: colorize_svg #
##########################
colorize_svg () {
sed -i -e 's/var(--color-moon)/#e3e3e3/g' -e 's/var(--color-star)/#e3e3e3/g' -e 's/var(--color-cloud)/#d3d3d3/g' -e 's/var(--color-na)/#d3d3d3/g' -e 's/var(--color-fog)/#d3d3d3/g' -e 's/var(--color-hail)/#d3d3d3/g' -e 's/var(--color-tornado)/#d3d3d3/g' -e 's/var(--color-wind)/#d3d3d3/g' -e 's/var(--color-storm)/#d3d3d3/g' -e 's/var(--color-lightning)/#ebdb00/g' -e 's/var(--color-sun)/#ebdb00/g' -e 's/var(--color-drop)/#6adef8/g' -e 's/var(--color-snowflake)/#d3d3d3/g' -e 's/var(--color-thunderstorm-mask)/#2b2b2b/g' $1
}
############################
# Function: wind_direction #
############################
wind_direction() {
if (( $1 >= 350 && $1 <= 10 )); then
echo $north
elif (( $1 > 10 && $1 < 80 )); then
echo $north$east
elif (( $1 >= 80 && $1 <= 100 )); then
echo $east
elif (( $1 > 100 && $1 < 170 )); then
echo $south$east
elif (( $1 >= 170 && $1 <= 190 )); then
echo $south
elif (( $1 > 190 && $1 < 260 )); then
echo $south$west
elif (( $1 >= 260 && $1 <= 280 )); then
echo $west
elif (( $1 > 280 && $1 < 350 )); then
echo $north$west
fi
}
#######################
# Pause weather conky #
#######################
pkill -STOP -xf "$weather_conky_launch_command"
#######
# Now #
#######
curl \
-H 'authority: weather.com' \
-H 'cache-control: max-age=0' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.142 Safari/537.36' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'sec-fetch-site: none' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-dest: document' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'cookie: logatimLevel=INFO; akacd_NxtGen-DHLS=2177452799~rv=98~id=614d27d4c75f75df7bad5550f54e64b1; speedpin=4G; ci=TWC-Locale-Group=US&X-Origin-Hint=Prod-IBM-LS&TWC-GeoIP-Country=DE&TWC-Privacy=gdpr' \
--compressed -o $HOME/Weather_com_conky_script/now_raw "$address"
sed '/CurrentConditions--tempValue--MHmYY">\|set="current-conditions" name="moonphase"/!d' $HOME/Weather_com_conky_script/now_raw > $HOME/Weather_com_conky_script/now
tr -d '\n' < $HOME/Weather_com_conky_script/now > $HOME/Weather_com_conky_script/now_temp
mv $HOME/Weather_com_conky_script/now_temp $HOME/Weather_com_conky_script/now
sed -i 's/\u002F//g' $HOME/Weather_com_conky_script/now
sed -i 's/<\/span>/\n/g' $HOME/Weather_com_conky_script/now
sed -i '/"precipPhrase"/d' $HOME/Weather_com_conky_script/now
sed -i '/CurrentConditions--tempValue--MHmYY">\|CurrentConditions--phraseValue--mZC_p">\|TemperatureValue">\|feelsLikeTempValue--2icPt">\|name="sunset-line" \|name="wind"\|name="humidity"\|name="dewpoint"\|name="dewpoint"\|name="pressure"\|name="uv"\|name="visibility"\|name="moonphase"/!d' $HOME/Weather_com_conky_script/now
sed -i -e '1s/^.*CurrentConditions--tempValue--MHmYY">//' -e 's/^.*phraseValue--mZC_p">//g' -e 's/"TemperatureValue">/\n/g' -e 's/^.*precipValue--2aJSf"><span>//' -e 's/^.*feelsLikeTempValue--2icPt">//' -e 's/SunriseSunset--dateValue--3H780">/\n/g' -e '/SegmentHighTemp/d' $HOME/Weather_com_conky_script/now
sed -i -e '/SunriseSunsetContainer/d' -e '/\/<span data-testid=/d' -e 's/<\/p><\/div>.*$//g' -e 's/^.*"PercentageValue">//g' -e 's/^.*"UVIndexValue">//g' -e 's/^.*"VisibilityValue">//g' -e '/name="dewpoint"/d' -e 's/<\/div><\/div><div class="_-_-components-src-organism.*$//g' -e 's/^.*transform:rotate(//g' -e 's/deg)" set/deg\n/g' $HOME/Weather_com_conky_script/now
sed -i -e 's/^.*<\/path><\/svg>//g' -e 's/^.*wxData--kK35q">//g' -e 's/<\/div>.*$//g' -e 's/deg//g' -e '13s/%//' -e 's/°//g' -e '16s/Unlimited/Unlim\./' $HOME/Weather_com_conky_script/now
sed -i 's/^.*>//g' $HOME/Weather_com_conky_script/now
w_degrees=$(sed -n 10p $HOME/Weather_com_conky_script/now)
w_direction=$(wind_direction $w_degrees)
sed -i 10s/^.*$/$w_direction/ $HOME/Weather_com_conky_script/now
#Tidy up now file
sed -n 1,2p $HOME/Weather_com_conky_script/now > $HOME/Weather_com_conky_script/now_temp
sed -n 5p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
sed -n 3,4p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
sed -n 15p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
sed -n 10p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
wind_speed=$(sed -n 11p $HOME/Weather_com_conky_script/now)
sed -i "7s|$| $wind_speed|" $HOME/Weather_com_conky_script/now_temp
sed -n 12p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
sed -n 13p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
sed -n 14p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
sed -n 16p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
echo "sunrise" >> $HOME/Weather_com_conky_script/now_temp
sed -n 6p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
echo "sunset" >> $HOME/Weather_com_conky_script/now_temp
sed -n 7p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
echo "moonphrase" >> $HOME/Weather_com_conky_script/now_temp
sed -n 17p $HOME/Weather_com_conky_script/now >> $HOME/Weather_com_conky_script/now_temp
mv $HOME/Weather_com_conky_script/now_temp $HOME/Weather_com_conky_script/now
sed '/<svg>/!d' $HOME/Weather_com_conky_script/now_raw > $HOME/Weather_com_conky_script/svg_classes
sed -i -e 's/^.*<svg>//' -e 's/<\/svg>.*$/<\/svg>/' $HOME/Weather_com_conky_script/svg_classes
sed '/<svg set="weather/!d' $HOME/Weather_com_conky_script/now_raw > $HOME/Weather_com_conky_script/Forecast_Images/now.svg
sed -i 's/<svg/\n<svg/g' $HOME/Weather_com_conky_script/Forecast_Images/now.svg
sed -i -e '/<svg set="weather/!d' -e 's/<\/svg>.*$//g' $HOME/Weather_com_conky_script/Forecast_Images/now.svg
sed -i -e '2,$d' -e 's/^.*viewBox/<svg xmlns:xlink="http:\/\/www.w3.org\/1999\/xlink" viewBox/' $HOME/Weather_com_conky_script/Forecast_Images/now.svg
cat $HOME/Weather_com_conky_script/svg_classes >> $HOME/Weather_com_conky_script/Forecast_Images/now.svg
colorize_svg $HOME/Weather_com_conky_script/Forecast_Images/now.svg
###########
# 10 Days #
###########
address10=$(echo $address|sed s/$today/$tenday/)
curl \
-H 'authority: weather.com' \
-H 'cache-control: max-age=0' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.142 Safari/537.36' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'sec-fetch-site: none' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-dest: document' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'cookie: logatimLevel=INFO; akacd_NxtGen-DHLS=2177452799~rv=98~id=614d27d4c75f75df7bad5550f54e64b1; speedpin=4G; ci=TWC-Locale-Group=US&X-Origin-Hint=Prod-IBM-LS&TWC-GeoIP-Country=DE&TWC-Privacy=gdpr' \
--compressed -o $HOME/Weather_com_conky_script/10days_raw "$address10"
sed '/DetailsSummary--daypartName--kbngc"/!d' $HOME/Weather_com_conky_script/10days_raw > $HOME/Weather_com_conky_script/10days
sed -i -e 's/DetailsSummary--daypartName--kbngc">/\n/g' -e 's/highTempValue--3PjlX">/\n/g' -e 's/lowTempValue--2tesQ">/\n/g' -e 's/DetailsSummary--condition--2JmHb">/\n/g' -e 's/<span class="_-_-components-src-molecule-DaypartDetails-DetailsSummary-DetailsSummary--extendedData--307Ax">/\n/g' -e 's/"PercentageValue">/\n/g' -e 's/windWrapper--3Ly7c undefined">/\n/g' $HOME/Weather_com_conky_script/10days
sed -i -e 's/DailyContent-DailyContent--temp--1s3a7">/\n/g' -e 's/DailyContent-DailyContent--narrative--3Ti6_">/\n/g' -e 's/DetailsTable-DetailsTable--value--2YD0-">/\n/g' -e 's/DailyContent--daypartName--3emSU">/\n/g' $HOME/Weather_com_conky_script/10days
sed -i -e '/<\/head><body>/d' -e 's/<\/span>.*$//g' -e 's/<\/h3>.*$//g' -e 's/<!-- -->//g' -e 's/<\/svg>//g' -e 's/<\/p><\/div>.*$//g' -e 's/<svg class.*viewBox/<svg xmlns:xlink="http:\/\/www.w3.org\/1999\/xlink" viewBox/g' $HOME/Weather_com_conky_script/10days
sed '/<svg xmlns/!d' $HOME/Weather_com_conky_script/10days > $HOME/Weather_com_conky_script/10days_svgs
for (( i=1; i<=15; i+=1 ))
do
sed -n ${i}p $HOME/Weather_com_conky_script/10days_svgs > $HOME/Weather_com_conky_script/Forecast_Images/d$i.svg
cat $HOME/Weather_com_conky_script/svg_classes >> $HOME/Weather_com_conky_script/Forecast_Images/d$i.svg
colorize_svg $HOME/Weather_com_conky_script/Forecast_Images/d$i.svg
done
sed -i '/<svg xmlns/d' $HOME/Weather_com_conky_script/10days
##########
# Hourly #
##########
addressH=$(echo $address|sed s/$today/$hourly/)
curl \
-H 'authority: weather.com' \
-H 'cache-control: max-age=0' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.142 Safari/537.36' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'sec-fetch-site: none' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-dest: document' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'cookie: logatimLevel=INFO; akacd_NxtGen-DHLS=2177452799~rv=98~id=614d27d4c75f75df7bad5550f54e64b1; speedpin=4G; ci=TWC-Locale-Group=US&X-Origin-Hint=Prod-IBM-LS&TWC-GeoIP-Country=DE&TWC-Privacy=gdpr' \
--compressed -o $HOME/Weather_com_conky_script/hourly_raw "$addressH"
sed '/DetailsSummary--daypartName--kbngc">/!d' $HOME/Weather_com_conky_script/hourly_raw > $HOME/Weather_com_conky_script/hourly
sed -i -e 's/DetailsSummary--daypartName--kbngc">/\n/g' -e 's/DetailsSummary--tempValue--jEiXE">/\n/g' -e 's/DetailsSummary--condition--2JmHb">/\n/g' -e 's/windWrapper--3Ly7c undefined">/\n/g' -e 's/HourlyContent--wxPhraseLong--2sbaj">/\n/g' -e 's/DetailsTable-DetailsTable--value--2YD0-">/\n/g' -e 's/data-testid="PercentageValue">/\n/g' $HOME/Weather_com_conky_script/hourly
sed -i -e '/<\/head><body>/d' -e 's/<\/span>.*$//g' -e 's/<\/h3>.*$//g' -e 's/<!-- -->//g' -e 's/<\/p>.*$//g' -e 's/<\/svg>.*$//g' -e 's/<svg class.*viewBox/<svg xmlns:xlink="http:\/\/www.w3.org\/1999\/xlink" viewBox/g' $HOME/Weather_com_conky_script/hourly
sed '/<svg xmlns/!d' $HOME/Weather_com_conky_script/hourly > $HOME/Weather_com_conky_script/hourly_svgs
for (( i=1; i<=48; i+=1 ))
do
sed -n ${i}p $HOME/Weather_com_conky_script/hourly_svgs > $HOME/Weather_com_conky_script/Forecast_Images/h$i.svg
cat $HOME/Weather_com_conky_script/svg_classes >> $HOME/Weather_com_conky_script/Forecast_Images/h$i.svg
colorize_svg $HOME/Weather_com_conky_script/Forecast_Images/h$i.svg
done
sed -i '/<svg xmlns/d' $HOME/Weather_com_conky_script/hourly
#Add leading zeros to hour values, where needed
for (( i=1; i<=424; i+=9 ))
do
if (( $(sed -n ${i}p $HOME/Weather_com_conky_script/hourly|wc -c) == 5 )); then
sed -i ${i}s/^/0/ $HOME/Weather_com_conky_script/hourly
fi
done
########################################################
# Moonrise/Moonset values from 10days file to now file #
########################################################
echo -e "\nmoonrise\n\n\n" >> $HOME/Weather_com_conky_script/now
tod_ton=$(sed -n 2p $HOME/Weather_com_conky_script/10days)
if [[ $tod_ton == "--" ]]; then
sed -i "19s|^.*$|$(sed -n 13p $HOME/Weather_com_conky_script/10days)|" $HOME/Weather_com_conky_script/now
sed -i '20s/^.*$/moonset/' $HOME/Weather_com_conky_script/now
sed -i "21s|^.*$|$(sed -n 14p $HOME/Weather_com_conky_script/10days)|" $HOME/Weather_com_conky_script/now
elif [[ $tod_ton != "--" ]]; then
sed -i "19s|^.*$|$(sed -n 22p $HOME/Weather_com_conky_script/10days)|" $HOME/Weather_com_conky_script/now
sed -i '20s/^.*$/moonset/' $HOME/Weather_com_conky_script/now
sed -i "21s|^.*$|$(sed -n 23p $HOME/Weather_com_conky_script/10days)|" $HOME/Weather_com_conky_script/now
fi
###############
# Cleaning up #
###############
rm $HOME/Weather_com_conky_script/{now_raw,10days_raw,10days_svgs,hourly_raw,hourly_svgs,svg_classes}
########################
# Convert svgs to pngs "
########################
for i in $HOME/Weather_com_conky_script/Forecast_Images/*.svg
do
fn=$(basename "$i")
n=${fn%.*}
convert -background none $HOME/Weather_com_conky_script/Forecast_Images/"$n".svg $HOME/Weather_com_conky_script/Forecast_Images/"$n".png
done
rm $HOME/Weather_com_conky_script/Forecast_Images/*.svg
########################
# Resume weather conky #
########################
pkill -CONT -xf "$weather_conky_launch_command"
Last edited by TeoBigusGeekus (2020-06-16 07:37:40)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Yeah, it bothers me as well, so...
thanks Teo, that solved my last quirk. the script is awesome!
Offline
You're welcome ceeslans, thanks for the support and feedback.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Teo, I couldn't help it because the adjustments were so simple.
I work with my address and the corresponding changes for the German language.
Thank you very much for your excellent work.
I publish the configuration after testing, whether also
the change from "Today"-->"Tonight"-->"Today" works. That hasn't happened yet.
You're the best! ]:D
Online
Thanks a lot for your feedback unklar!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
^Teo,
This is the current test address
https://weather.com/de-DE/wetter/heute/l/9698b0f0550d343e698f78ea13aab87e50a36e25ca955bd95c25ab7783abf47e
this is the configuration
-- https://forums.bunsenlabs.org/viewtopic.php?pid=1545#p1545
-- after a design idea from 2015 by @Sector11
-- https://forums.mageia.org/de/download/file.php?id=1352&mode=view
-- @unklar 2020-03-10; 2020-06-18
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
no_buffers = true,
-- fiddle with window
use_spacer = 'none', --right',left',
use_xft = true,
xftalpha = 0.2,
-- Update interval in seconds
update_interval = 2, --1,
-- Minimum size of text area
minimum_width = 180, minimum_height = 00,
maximum_width = 180,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,
draw_borders = false,
--font freesans -12
font = 'monofur:size=8',
uppercase = false,
-- Stippled borders?
stippled_borders = 3,
-- border margins
border_inner_margin = 9,
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = 'ffffff',
color1 = 'ffffff', --949494',
color2 = 'cyan',
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_left',
--alignment bottom_left
--alignment bottom_right
-- Gap between borders of screen and text
gap_x = 10,
gap_y = 60,
--imlib_cache_size = 0,
imlib_cache_flush_interval = 900,
max_user_text = 48552,
};
conky.text = [[
${color1}${font monofur:size=12}WETTER ${color2}${hr 2}${color}${texeci 500 bash $HOME/Weather_com_conky_script/weather_com}
${image $HOME/Weather_com_conky_script/Forecast_Images/now.png -p 0,90 -s 40x40}\
${font monofur:size=10}${color1}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days} ${color}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/now}°C(${texeci 600 sed -n '3p' $HOME/Weather_com_conky_script/now}°C)
${font}${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/10days}${alignr}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/aktualisiert}
${goto 60}MOND${color}${alignr} ${texeci 600 sed -n '17p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}${font}Hoch / Tief${color}${alignr} ${texeci 600 sed -n '4p' $HOME/Weather_com_conky_script/now}° / ${texeci 600 sed -n '5p' $HOME/Weather_com_conky_script/now}°
${goto 60}${color1}WIND${color}${alignr} ${texeci 600 sed -n '7p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}UV INDEX${color}${alignr} ${texeci 600 sed -n '6p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Sonnenaufgang${color}${alignr} ${texeci 600 sed -n '13p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Sonnenuntergang${color}${alignr} ${texeci 600 sed -n '15p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Luftdruck${color}${alignr} ${texeci 600 sed -n '10p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Mondaufgang${color}${alignr} ${texeci 600 sed -n '19p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Monduntergang${color}${alignr} ${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Fernsicht${color}${alignr} ${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Rel.Luftfeuchte${color}${alignr} ${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/now}
${goto 60}${color1}Taupunkt${color}${alignr} ${texeci 600 sed -n '9p' $HOME/Weather_com_conky_script/now} °C
${color2}${hr 1}${color}
${image $HOME/1_pixel_images/cyan_1.png -p 90,202 -s 1x335}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h1.png -p 105,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h2.png -p 105,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h3.png -p 105,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h4.png -p 105,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h5.png -p 105,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h6.png -p 105,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h7.png -p 105,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h8.png -p 105,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/h9.png -p 105,505 -s 30x30}\
${if_match "${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}" == "Heute"}
${goto 70}${execi 3600 date --date='1 day' '+%a. %e'}${goto 170}${tztime GMT-3 %H} h
${goto 60}${texeci 600 sed -n '31p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='2 day' '+%a. %e'}${goto 170}${tztime GMT-4 %H} h
${goto 60}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='3 day' '+%a. %e'}${goto 170}${tztime GMT-5 %H} h
${goto 60}${texeci 600 sed -n '79p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '88p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '20p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='4 day' '+%a. %e'}${goto 170}${tztime GMT-6 %H} h
${goto 60}${texeci 600 sed -n '103p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '112p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '29p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='5 day' '+%a. %e'}${goto 170}${tztime GMT-7 %H} h
${goto 60}${texeci 600 sed -n '127p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '136p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '38p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='6 day' '+%a. %e'}${goto 170}${tztime GMT-8 %H} h
${goto 60}${texeci 600 sed -n '151p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '160p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '47p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='7 day' '+%a. %e'}${goto 170}${tztime GMT-9 %H} h
${goto 60}${texeci 600 sed -n '175p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '184p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '56p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='8 day' '+%a. %e'}${goto 170}${tztime GMT-10 %H} h
${goto 60}${texeci 600 sed -n '199p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '208p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '65p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='9 day' '+%a. %e'}${goto 170}${tztime GMT-11 %H} h
${goto 60}${texeci 600 sed -n '223p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '232p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '74p' $HOME/Weather_com_conky_script/hourly}
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color2}${hr 1}${color}
${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/10days | fold -s35}
${font monofur:size=10}${texeci 600 sed -n '30p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${color}${texeci 600 sed -n '32p' $HOME/Weather_com_conky_script/10days | fold -s35}
${else}
${goto 70}${execi 3600 date --date='1 day' '+%a. %e'}${goto 170}${tztime GMT-3 %H} h
${goto 60}${texeci 600 sed -n '31p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '40p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '2p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='2 day' '+%a. %e'}${goto 170}${tztime GMT-4 %H} h
${goto 60}${texeci 600 sed -n '55p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '64p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '11p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='3 day' '+%a. %e'}${goto 170}${tztime GMT-5 %H} h
${goto 60}${texeci 600 sed -n '79p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '88p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '20p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='4 day' '+%a. %e'}${goto 170}${tztime GMT-6 %H} h
${goto 60}${texeci 600 sed -n '103p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '112p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '29p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='5 day' '+%a. %e'}${goto 170}${tztime GMT-7 %H} h
${goto 60}${texeci 600 sed -n '127p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '136p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '38p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='6 day' '+%a. %e'}${goto 170}${tztime GMT-8 %H} h
${goto 60}${texeci 600 sed -n '151p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '160p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '47p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='7 day' '+%a. %e'}${goto 170}${tztime GMT-9 %H} h
${goto 60}${texeci 600 sed -n '175p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '184p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '56p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='8 day' '+%a. %e'}${goto 170}${tztime GMT-10 %H} h
${goto 60}${texeci 600 sed -n '199p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '208p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '65p' $HOME/Weather_com_conky_script/hourly}
${color1}${hr 1}
${goto 70}${execi 3600 date --date='9 day' '+%a. %e'}${goto 170}${tztime GMT-11 %H} h
${goto 60}${texeci 600 sed -n '223p' $HOME/Weather_com_conky_script/10days}/${texeci 600 sed -n '232p' $HOME/Weather_com_conky_script/10days}${goto 170}${texeci 600 sed -n '74p' $HOME/Weather_com_conky_script/hourly}
${image $HOME/Weather_com_conky_script/Forecast_Images/d2.png -p 10,210 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d3.png -p 10,252 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d4.png -p 10,288 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d5.png -p 10,325 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d6.png -p 10,360 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d7.png -p 10,400 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d8.png -p 10,435 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d9.png -p 10,470 -s 30x30}\
${image $HOME/Weather_com_conky_script/Forecast_Images/d10.png -p 10,505 -s 30x30}\
${color2}${hr 1}${color}
${font monofur:size=10}${texeci 600 sed -n '1p' $HOME/Weather_com_conky_script/10days}${font}
${texeci 600 sed -n '8p' $HOME/Weather_com_conky_script/10days | fold -s35}
${font monofur:size=10}${texeci 600 sed -n '21p' $HOME/Weather_com_conky_script/10days|tr a-z A-Z}${font}
${color}${texeci 600 sed -n '23p' $HOME/Weather_com_conky_script/10days | fold -s35}
${endif}
]];
everything works.
But what I don't like at all is that this Conky is using my weak CPU
inxi -Cxxx
CPU: Single core Intel Pentium M (-UP-) cache: 2048 KB
flags: (sse sse2) bmips: 2790 speed/min/max: 1400/600/1400 MHz
permanently loaded with ~20% and, if the images are converted, the load is 100%.
Apparently I have tomatoes on my eyes, because I haven't seen the mistake for two days.
There's an old saying: "Things are better at home". 8)
Online
Lol, I think the best conky weather configuration for that system of yours is the one that uses the weatherfont - Accuweather or WUnderground.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
^You're right. That's exactly why we only run the little accuweatherfont-simpler here.
It was only because of the situation for you.
Online
Thank you manuel for your support and feedback.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
ANNOUNCEMENT
Weather.com's changed their layout. Script's rewritten almost from scratch. I've also added some 1920x1080 conf files. Thanks to everyone who's helped with their feedback and support.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
^Thanks, Teo.
Works perfectly!
Online
Hello
work great since a week
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline