You are not logged in.
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
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/°.*$//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
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
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
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
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
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
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
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
@Teo
Thanks for the (German) script.
I have two errors:
- The curr_cond has an incomplete edition in CURRENTLY
The text is cut off or not appear
-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
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
address="http://www.accuweather.com/de/de/lichtenstein/09350/weather-forecast/171261"
Offline
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
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
H abd:18°/TT°
Offline
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
This is really a good price question. 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.
Offline
@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
@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
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