You are not logged in.
Doesn't seem to work for Toronto either. Here's a snip from daily_forecast - lines 33, 34, 35, 36:
WinterCast
See detailed snow and ice outlook
Friday
2/12
And this is a snip from the Kastora daily_forecast - same lines, which seems to work fine:
-2
Mild with sunshine
0%
Saturday
Also, for Toronto the forecast_2016 directory only gets two or three of the icons but for Kastora all of the icons seem to be there.
Last edited by KairiTech (2021-02-08 15:16:09)
Offline
Good call Kairitech.
The lines
WINTERCAST
See detailed snow and ice outlook
are creating the havoc, so I guess you guys have to leave your miserable, cold countries and emigrate to Greece.
Alternatively, add this line
sed -i '/WinterCast/,+1 d' $HOME/Accuweather_conky_script/daily_forecast
after line 415 of the script (just before the for loop)...
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
there is a new block in daily_forecast raw:
<div class="daily-wintercast-cta">
<a class="daily-wintercast-cta__inner inline-cta-banner winter" href="/en/ru/moscow/294021/winter-weather-forecast/294021">
<div class="banner-content">
<h3 class="banner-header">
WinterCast
</h3>
<p class="banner-text">
See detailed snow and ice outlook
</p>
</div>
<svg class="chevron-icon right" xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M10 .969L9.037 0 5 4.063.963 0 0 .969 5 6z" /></svg>
</a>
</div>
I just deleted it,
script accuweather:
#Daily forecast
if [[ -s $HOME/Accuweather_conky_script/daily_forecast ]]; then
sed -i '/<div class="daily-wrapper" data-qa="dailyCard0">/,/Further Ahead/!d' $HOME/Accuweather_conky_script/daily_forecast
sed -i '/<div class="daily-wintercast-cta">/,/div class="daily-wrapper"/d' $HOME/Accuweather_conky_script/daily_forecast
sed -i -e 's/^.*dow date">//g' -e 's/^.*sub date">//g' -e 's/^.*weathericons\///g' -e 's/\.svg.*$//g' -e 's/^.*"high">//g' -e 's/^.*"low">\///g' -e 's/°<\/span>//g' -e 's/<\/span>//g' -e '/<\|>\|fill=\|^[ \|\t]*$\|Further Ahead/d' -e 's/^[ \|\t]*//g' $HOME/Accuweather_conky_script/daily_forecast
Offline
Yeah, I know il.harun, thanks.
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
Moongiant script changed to comply to the page's new layout. Major cleanup of the code and conkyrc files rewritten (thanks unklar).
The downloaded info is less now; in order to obtain the previous info, the script would have to download four more pages - no way!
Last edited by TeoBigusGeekus (2021-02-09 06:21:07)
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
Good call Kairitech.
Alternatively, add this linesed -i '/WinterCast/,+1 d' $HOME/Accuweather_conky_script/daily_forecast
after line 415 of the script (just before the for loop)...
It works, thanks.
Offline
So, no emigration plans?
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
Maybe to Norway.
Offline
I'll come and visit you... In the summer..
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
Offline
Good call Kairitech.
The linesWINTERCAST See detailed snow and ice outlook
are creating the havoc, so I guess you guys have to leave your miserable, cold countries and emigrate to Greece.
Alternatively, add this linesed -i '/WinterCast/,+1 d' $HOME/Accuweather_conky_script/daily_forecast
after line 415 of the script (just before the for loop)...
Thanks Teo it works perfectly now and thanks for your dedication in keeping your scripts alive.
I grew up in The Caribbean but I love my snow now. I'd honestly miss it but if I had to immigrate again Greece would at the top of the list.
Offline
@unklar
We'll get a small taste of that in a few days
@kairiTech
The Caribbean? Lovely, here's some Greek reggae.
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
@unklar
We'll get a small taste of that in a few days
Be glad that it is not (yet) as cold as it is here.
We had -16.9°C this morning and it's supposed to stay that way for another week.
Offline
ANNOUNCEMENT:
Wintercast bug corrected on Accuweather Script, thanks to all who reported it promptly.
We'll see if we'll have to deal with a Spring/Summer/Autumncast in the future...
Last edited by TeoBigusGeekus (2021-02-19 08:12:20)
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
Be glad that it is not (yet) as cold as it is here.
We had -16.9°C this morning and it's supposed to stay that way for another week.
That calls for some scotch and a fireplace.
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
^Scotch is not a problem... ]:D
Thank you for your work.
Can you please say something about it?
Last edited by unklar (2021-02-11 09:25:32)
Offline
Good call Kairitech.
The linesWINTERCAST See detailed snow and ice outlook
are creating the havoc, so I guess you guys have to leave your miserable, cold countries and emigrate to Greece.
Alternatively, add this linesed -i '/WinterCast/,+1 d' $HOME/Accuweather_conky_script/daily_forecast
after line 415 of the script (just before the for loop)...
Thanks again Teo. You seem very adept at sed and there's one thing I have never been able to figure out.
How do you use sed to replace a single line with multiple lines? Is that even possible with sed?
Offline
How do you use sed to replace a single line with multiple lines? Is that even possible with sed?
Yes, totally.
The first result from this search:
sed -i.bak $'s/You are good/You are bad\\\nYou are the worst/g' /output.txt
Offline
Accuweather script is not pulling daily forecast or images, only current conditions. When I run the script:
MainFrame Accuweather_conky_script $ ./accuweather -f2016
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
rm: cannot remove '/home/thomas/Accuweather_conky_script/forecast_2016/forecast_*.png': No such file or directory
Offline
All's well here with Accuweather.
Could you please give me your location seatommyboy?
@KairiTech
Thanks for your kind words.
To replace a whole line you can either do what ohnonot wrote or use the c command
File test:
Once upon a
hasta la vista baby
while I pondered
weak and weary
sed -i '/hasta/cmidnight dreary' ./test
It will replace the whole 2nd line with 'midnight dreary'.
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