You are not logged in.

#1041 2016-09-09 17:57:32

WaltH
Member
Registered: 2016-08-21
Posts: 53

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

Is it possible, then, to eliminate part of the script and only pull the first five days forecasts? Days six through ten don't do me much good and usually aren't as reliable, anyway.

Offline

#1042 2016-09-09 18:06:02

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

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

Of course it is.
Just comment out these lines (add an # in front of them):

#Next 5 days
	if [[ -s $HOME/1_accuweather/last_days_raw ]]; then
		
		sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather/last_days_raw
	    egrep -i 'href="#"|icon i-|large-temp|small-temp|temp-label|"cond"' $HOME/1_accuweather/last_days_raw > $HOME/1_accuweather/last_days
	    sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' $HOME/1_accuweather/last_days
	    sed -i -e 's/&deg.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather/last_days
	    sed -i -e 's/Mon$/MONDAY/' -e 's/Tue$/TUESDAY/' -e 's/Wed$/WEDNESDAY/' -e 's/Thu$/THURSDAY/' -e 's/Fri$/FRIDAY/' -e 's/Sat$/SATURDAY/' -e 's/Sun$/SUNDAY/' $HOME/1_accuweather/last_days
	    for (( i=2; i<=22; i+=5 ))
		  do
	          image=$(sed -n "${i}"p $HOME/1_accuweather/last_days)
	          echo $(test_image $image) >> $HOME/1_accuweather/last_days
		  done
		j=6
		for (( i=2; i<=22; i+=5 ))
		  do
		      cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/last_days).png $HOME/1_accuweather/$j.png
		      ((j++))
		  done
	fi
	
	if [[ $1 != -h && $2 != -h ]]; then
		kill -CONT $(pidof conky)
	fi

You might also want to comment out these lines as well:

addr2="$addr1"?day=6
	wget -O $HOME/1_accuweather/last_days_raw "$addr2"

so that the script doesn't download the DAYS6-10 forecast.


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

#1043 2016-09-09 19:10:34

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

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

Hello

Théo any friend from ubuntu-fr forum  has any problem with the uv index at line 9 in conkyrc
ther is noting at screen like you screen-shot

1j69FEv.jpg

He use this command

$color${alignr}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond}

but in curr_cond that is something

Have you any idea why the index-uv is absent .

By me it's ok i have index-uv in curr-cond and at screen

tank's for helping

@+


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

#1044 2016-09-09 19:28:52

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

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

Nice catch loutch, I didn't notice it.

It seems that the value is there (in the file) but it doesn't show up.
alignr must be at fault here.
As a remedy, add a space at the end of the UV Index line in the conkyrc.
I'll correct my post as well...


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

#1045 2016-09-09 20:43:44

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

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

Tank's Theo

He change for this & it work

${alignr}"space"${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond}

@+


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

#1046 2016-09-09 20:45:24

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

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

No, I meant

$color${alignr}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond} 

Notice the empty character (space) at the end of the command (after the rightmost bracket)

Last edited by TeoBigusGeekus (2016-09-09 21:09:05)


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

#1047 2016-09-09 20:58:01

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

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

ok

@+


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

#1048 2016-09-09 20:59:20

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

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

bonne nuit


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

#1049 2016-09-10 15:49:38

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
Thanks for the (German) script.  smile
I have two errors:
- The curr_cond has an incomplete edition in CURRENTLY
The text is cut off or not appear
1teo.th.jpg

-Convert Converts not the images into .png
Example for all:

...
8.svg
convert: delegate failed `"rsvg-convert" -o "%o" "%i"' @ error/delegate.c/InvokeDelegate/1310.
convert: unable to open image `/tmp/magick-26763QmH-IAW6gbAS': Datei oder Verzeichnis nicht gefunden @ error/blob.c/OpenBlob/2709.
convert: unable to open file `/tmp/magick-26763QmH-IAW6gbAS': Datei oder Verzeichnis nicht gefunden @ error/constitute.c/ReadImage/540.
convert: no images defined `8.png' @ error/convert.c/ConvertImageCommand/3210.
...

tested siduction
of the svg error I have ever read ... but do not remember where it was simple ..   :8

Offline

#1050 2016-09-10 15:52:28

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

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

Can you remind me your accuweather address?


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

#1051 2016-09-10 15:56:45

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)

address="http://www.accuweather.com/de/de/lichtenstein/09350/weather-forecast/171261"

Offline

#1052 2016-09-10 16:02:44

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

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

Never mind, found it myself: the line that corrects the vowels with Umlauten should go before any other text manipulation.

I've corrected the original post.

For the images: Clickety


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

#1053 2016-09-10 20:23:36

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)

Thanks @Teo,

^ in first_day is also a Mistake (line 1 and 4)
teo3.th.jpg

Offline

#1054 2016-09-10 20:26:27

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

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

What's the mistake? I can't see it.


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

#1055 2016-09-10 20:32:37

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)

H abd:18°/TT°

Offline

#1056 2016-09-10 20:39:00

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

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

That's normal.
When it is TONIGHT (or Heute Abend in your case) there's no high temperature, just the low one.
In English, it would be 18/Lo, in German it's 18/TT.
Though a good question would be what TT means...
Please tell me if you know, it must have something to do with Low, or whatever.


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

#1057 2016-09-10 20:51:31

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)

This is really a good price question.  big_smile   Thanks for the clarification.
I'll see how it is explained on German ...
At the moment, the internet with me that does not explain logically.   hmm

Offline

#1058 2016-09-10 23:28:44

saltasatelites
Member
Registered: 2016-09-10
Posts: 19

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

@Teo
I've been using your conkys for many years, but it's my first time here, so hello to everyone.
I use the "1B1" version, but with the recent changes have seen that the probability of precipitation has disappeared. Could you do something about it?
Thanks for your work and your time !!!

Last edited by saltasatelites (2016-09-10 23:29:51)

Offline

#1059 2016-09-11 06:25:17

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

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

saltasatelites wrote:

@Teo
I've been using your conkys for many years, but it's my first time here, so hello to everyone.
I use the "1B1" version, but with the recent changes have seen that the probability of precipitation has disappeared. Could you do something about it?
Thanks for your work and your time !!!

Thanks for your kind words saltasatelites.
Unfortunately, the Chance of Precipitation has disappeared from Accuweather's page
...or, rather, it is there, but one has to manually load the forecast days individually, ie.
Day1
Day2
...
etc.

Downloading so many urls is a waste of resources IMO.


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

#1060 2016-09-11 08:56:42

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

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

Hello Théo

I have thanks to announce you on behalf of seelord of the forum ubuntu-fr for your precious help

His conky work's great

@+


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

Board footer

Powered by FluxBB