You are not logged in.

#3761 2020-08-31 07:56:57

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

Thanks a lot guys, it really helps me.
And apparently il.harun is right; that very old version of the script works (!!!!)
Maybe S11 is right, they're indeed changing their pages' layouts based on a schedule.
The problem is that I only keep a very recent archive of the scripts (because my pc was full with old versions of every kind of script, some 9 or 10 years old, and I decided to delete everything apart from only the recent ones sad).
We'll see...

Snip

^Is there a date so that I can look in my archive? wink

Offline

#3762 2020-08-31 08:10:06

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

seatommyboy wrote:

It mostly worked here Hutto TX
...
Also, it is pulling the everything in metric and not imperial. I'm an old american not smart enough to learn the metric system

Paste en-US into the browser address line. So:

https://weather.com/en-US/weather/today/l/5eb7863a969f80e5f3fd3cdd2d46eeb2f35ab9547cc13a3c0df1e5fc8269d1a9
seatommyboy wrote:

But I get errors like this:
...

Please check if the package inkscape is installed.

Offline

#3763 2020-08-31 08:12:06

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

morfik wrote:

It looks like accuweather changed again. smile


https://forums.bunsenlabs.org/viewtopic … 19#p105719

Offline

#3764 2020-08-31 09:05:11

il.harun
Member
Registered: 2020-06-04
Posts: 54

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Hi TeoBigusGeekus
Thanks for the support
Who interesting:
In a week I will update conky Weather_com on google disk
see ReadMe.txt
https://drive.google.com/drive/folders/ … sp=sharing

Offline

#3765 2020-08-31 17:30:35

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

unklar wrote:
seatommyboy wrote:

It mostly worked here Hutto TX
...
Also, it is pulling the everything in metric and not imperial. I'm an old american not smart enough to learn the metric system

Paste en-US into the browser address line. So:

https://weather.com/en-US/weather/today/l/5eb7863a969f80e5f3fd3cdd2d46eeb2f35ab9547cc13a3c0df1e5fc8269d1a9
seatommyboy wrote:

But I get errors like this:
...

Please check if the package inkscape is installed.

+1
or use simply

https://weather.com/weather/today/l/d3e4167b6d899b0052a00ed051f449d51c5fc10e852f659680f3b6e0ed2c638b
morfik wrote:

It looks like accuweather changed again. smile

I know  8.(


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

#3766 2020-08-31 19:49:49

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Hey Teo

What about this site for something simple: DarkSky (formerly Forecast.io)

Aridaiou, Kastoria, West Macedonia
https://darksky.net/forecast/40.524,21.2689/ca12/en

Espinosa, Buenos Aires, Autonomous City of Buenos Aires (English)
https://darksky.net/forecast/-34.6074,-58.4546/ca12/en

español
https://darksky.net/forecast/-34.6074,-58.4546/ca12/es

Alert, Nunavut, Canada (Northern tip of Ellesmere Island)
https://darksky.net/forecast/82.503,-62.3575/ca12/en

Lichtentaler Straße, Baden, Baden-Württemberg Region (in German)
https://darksky.net/forecast/48.7553,8.2438/ca12/de

It looks simple - maybe ......

Last edited by Sector11 (2020-08-31 19:53:41)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3767 2020-08-31 20:06:09

arof
Member
Registered: 2020-08-09
Posts: 7

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

There is not funny. Weather com is changed again at least in pl. 10days has a different structure than before. Conkyrc for remake again.

Offline

#3768 2020-08-31 21:44:13

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

arof wrote:

There is not funny. Weather com is changed again at least in pl. 10days has a different structure than before. Conkyrc for remake again.

SON OF A GUN - HERE TOO!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3769 2020-08-31 22:25:49

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

New candidate for the weather.com script

#!/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                                 #
# At last, change Night to whatever it is in your language: Nacht, Nuit, Νύχτα, etc.                    #
#########################################################################################################
today=today
tenday=tenday
hourly=hourbyhour
north=N
south=S
west=W
east=E
night=Night


###############################################################################################################################
# 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/d3e4167b6d899b0052a00ed051f449d51c5fc10e852f659680f3b6e0ed2c638b"
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--3KcTQ">\|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--3KcTQ">\|CurrentConditions--phraseValue--2xXSr">\|TemperatureValue">\|feelsLikeTempValue--2aogo">\|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--3KcTQ">//' -e 's/^.*phraseValue--2xXSr">//g' -e 's/"TemperatureValue">/\n/g' -e 's/^.*precipValue--RBVJT"><span>//' -e 's/^.*feelsLikeTempValue--2aogo">//' -e 's/SunriseSunset--dateValue--2nwgx">/\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--23DP5">//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--1Mebr"/!d' $HOME/Weather_com_conky_script/10days_raw > $HOME/Weather_com_conky_script/10days
sed -i -e 's/DetailsSummary--daypartName--1Mebr">/\n/g' -e 's/DailyContent--daypartDate--3MM0J">/\n/g' -e 's/DailyContent--temp--_8DL5">/\n/g' -e 's/"weatherIcon" class=[^>]*>/\n/g' -e 's/highTempValue--3x6cL">/\n/g' -e 's/lowTempValue--1DlJK">/\n/g' -e 's/DetailsSummary--condition--mqdxh">/\n/g' -e 's/<span class="[^>]*-DaypartDetails-DetailsSummary-DetailsSummary[^>]*>/\n/g' -e 's/"PercentageValue">/\n/g' -e 's/windWrapper--1Va1P undefined">/\n/g' $HOME/Weather_com_conky_script/10days
sed -i -e 's/"PercentageValue" class="[^>]*>/\n/g' -e 's/windWrapper--[^>]*>/\n/g' -e 's/DailyContent-DailyContent--narrative--3AcXd">/\n/g' -e 's/"UVIndexValue" class="[^>]*>/\n/g' -e 's/"SunriseTime" class="[^>]*>/\n/g' -e 's/"SunsetTime" class="[^>]*>/\n/g' -e 's/"MoonriseTime" class="[^>]*>/\n/g' -e 's/"MoonsetTime" class="[^>]*>/\n/g' $HOME/Weather_com_conky_script/10days
sed -i -e '/<\/head><body>/d' -e 's/<\/span> | / /g' -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' -e 's/<\/h2>.*$//g' -e '/<svg aria-hidden/d' $HOME/Weather_com_conky_script/10days
sed -i '/ '"$night"'$/{4,$!b;n;n;d}' $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--1Mebr">/!d' $HOME/Weather_com_conky_script/hourly_raw > $HOME/Weather_com_conky_script/hourly
sed -i -e 's/DetailsSummary--daypartName--1Mebr">/\n/g' -e 's/DetailsSummary--tempValue--RcZzi">/\n/g' -e 's/DetailsSummary--condition--mqdxh">/\n/g' -e 's/windWrapper--1Va1P undefined">/\n/g' -e 's/HourlyContent--wxPhraseLong--2CO9i">/\n/g' -e 's/DetailsTable-DetailsTable--value--1F3Ze">/\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/<\/h2>.*$//g' -e 's/<!-- -->//g' -e 's/<\/p>.*$//g' -e 's/<\/svg>.*$//g' -e 's/<svg.*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 1p $HOME/Weather_com_conky_script/10days|awk '{ print $3 }')
if [[ $tod_ton == $night ]]; then
    sed -i "19s|^.*$|$(sed -n 8p $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 9p $HOME/Weather_com_conky_script/10days)|" $HOME/Weather_com_conky_script/now
elif [[ $tod_ton != $night ]]; then
    sed -i "19s|^.*$|$(sed -n 17p $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 18p $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"

PS: I think I'm gonna start smoking again.

Last edited by TeoBigusGeekus (2020-08-31 22:28:25)


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

#3770 2020-09-01 00:01:03

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

New candidate for the weather.com script

PS: I think I'm gonna start smoking again.

Well, it's working again.

Can you give is an idea of what the heck they are doing?

PS: I hope not!  Not worth it, sip on an Ούζο  big_smile
roll Like that's better   8)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3771 2020-09-01 06:42:00

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

hello

@ théo


work great in french

@+


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

#3772 2020-09-01 07:05:05

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,648

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Teo,
also here the weather is fine with the latest script.   big_smile

Offline

#3773 2020-09-01 11:59:32

ector1935
Member
Registered: 2017-05-03
Posts: 240

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Teo,
from Italy also here the weather is fine with the latest script.
Cheers

Offline

#3774 2020-09-01 17:47:41

il.harun
Member
Registered: 2020-06-04
Posts: 54

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Latest script, works ru and en address.
Netbook Samsung N210 and  19'' monitor
conky 1.10.8 compiled Mon Mar 23 06:55:27 UTC 2020 for Linux 4.4.0-176-generic x86_64.
Xubuntu 2004.
Thanks.

Offline

#3775 2020-09-01 19:21:22

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

OK - OFF TOPIC

@ il.harun - you are still running Xubuntu 2004!  That's awesome!

and .... back to the weather.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3776 2020-09-01 20:30:11

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

Hey Teo

What about this site for something simple: DarkSky (formerly Forecast.io)

Aridaiou, Kastoria, West Macedonia
https://darksky.net/forecast/40.524,21.2689/ca12/en

Espinosa, Buenos Aires, Autonomous City of Buenos Aires (English)
https://darksky.net/forecast/-34.6074,-58.4546/ca12/en

español
https://darksky.net/forecast/-34.6074,-58.4546/ca12/es

Alert, Nunavut, Canada (Northern tip of Ellesmere Island)
https://darksky.net/forecast/82.503,-62.3575/ca12/en

Lichtentaler Straße, Baden, Baden-Württemberg Region (in German)
https://darksky.net/forecast/48.7553,8.2438/ca12/de

It looks simple - maybe ......

Hold that thought, we might need it in the future as a backup plan.

Thanks to all for your feedback, let's see for how long it'll stay ok.


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

#3777 2020-09-01 20:39:59

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

Can you give is an idea of what the heck they are doing?

Micro changes. They changed

"PercentageValue" class="_-_-node_modules--wxu-components-src-molecule-DaypartDetails-DailyContent-DailyContent--value--3Xvjn">

to

"PercentageValue" class="_-_-node_modules-@wxu-components-src-molecule-DaypartDetails-DailyContent-DailyContent--value--3Xvjn">

Can you spot the difference?
I think it's funny.


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

#3778 2020-09-01 21:25:27

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

Can you spot the difference?
I think it's funny.

@they @have @to @be @kidding.

{@¿@} <<-- sleepless nights trying to find the " ' " that's out of place in a 2MB text file


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3779 2020-09-01 21:35:00

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

Hold that thought, we might need it in the future as a backup plan.

Thanks to all for your feedback, let's see for how long it'll stay ok.

FOREVER - or until . . .

 01 Sep 20 @ 18:31:54 ~
   $ sudo apt-mark hold darksky
[sudo] password for sector11: 
E: Unable to locate package darksky
E: No packages found
 
 01 Sep 20 @ 18:32:06 ~
   $ 

OH DEAR!

Doesn't matter we @got it!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3780 2020-09-01 22:55:45

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Yep, seems like it, at least for the time being.
Now I have to tackle the Accuweather crap...


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

Board footer

Powered by FluxBB