You are not logged in.

#1 Yesterday 06:15:06

asqwerth
Member
Registered: 2015-10-08
Posts: 58

Accuweather conky script - no icons showing

Sigh.  I know it's no longer being maintained, but it does look like the part of the script that assigned icons/conkyweather font to the weather condition/forecast in question is no longer working.

Wind direction icon, and the textual weather conditions/forecasts still show.

Thankfully, Weather underground script is back, and we have the TAD script.

But it's still a pity.

Online

#2 Yesterday 09:19:23

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

Re: Accuweather conky script - no icons showing

^I think @marens gets it with 'sed'.  wink
curr_cond

v2a/7
-1
-4
Cloudy
ENE
13 km/h
87%
↔ 1007 mb
0.8 (Low)
91%
87%
-2
24 km
028 km/h
4100 m
-
28 km/h
4100 m
4100 m
4100 m
<

Screenshot-19-Feb-09-42-42-25325.png

Offline

#3 Yesterday 19:10:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,101

Re: Accuweather conky script - no icons showing

asqwerth wrote:

Sigh.  I know it's no longer being maintained, but it does look like the part of the script that assigned icons/conkyweather font to the weather condition/forecast in question is no longer working.

Wind direction icon, and the textual weather conditions/forecasts still show.

Thankfully, Weather underground script is back, and we have the TAD script.

But it's still a pity.

Yes, you're right.
The developers of Accuweather have changed the folder where the icons are located.

I fixed it today in #### Marens Hourly:
https://forums.bunsenlabs.org/viewtopic … 30#p128130

Note *
@johnraff closed that thread and I don't have access.

#Icons
        cat $HOME/Accuweather_conky_script/hourly | grep '<svg class="icon" data-src="/images/weathericons/' | awk '{print $3}' | awk -F'weathericons/' '{print $2}' | sed -r 's/.{5}$//' | sed s'/v2a\///g' > $HOME/Accuweather_conky_script/marens_hourly/icons

First I had to fix the  accuweather  script.

Replace line:

	       sed -i -e 's/\.svg.*$//g' -e 's/<\/div>//g' -e 's/<div>//g' -e 's/<\/span>//g' -e 's/<span class.*$//g' -e 's/^[\t]*//g' $HOME/Accuweather_conky_script/curr_cond_temp

With (it should look like this):

		#sed -i -e 's/\.svg.*$//g' -e 's/<\/div>//g' -e 's/<div>//g' -e 's/<\/span>//g' -e 's/<span class.*$//g' -e 's/^[\t]*//g' $HOME/Accuweather_conky_script/curr_cond_temp

## Marens Settings  - Added Line
	        sed -i -e 's/\.svg.*$//g' -e 's/<\/div>//g' -e 's/<div>//g' -e 's/<\/span>//g' -e 's/<span class.*$//g' -e 's/^[\t]*//g' -e 's/v2a\///g' $HOME/Accuweather_conky_script/curr_cond_temp

Replace line:

		sed -i -e 's/\.svg.*$//g' -e 's/&#xB0;<\/span>//g' -e 's/<\/span>//g' $HOME/Accuweather_conky_script/daily_forecast

With (it should look like this):

		#sed -i -e 's/\.svg.*$//g' -e 's/&#xB0;<\/span>//g' -e 's/<\/span>//g' $HOME/Accuweather_conky_script/daily_forecast

## Marens Settings  - Added Line		
		sed -i -e 's/\.svg.*$//g' -e 's/&#xB0;<\/span>//g' -e 's/<\/span>//g' -e 's/v2a\///g' $HOME/Accuweather_conky_script/daily_forecast

If people would know how little brain is ruling the world, they would die of fear.

Offline

Board footer

Powered by FluxBB