You are not logged in.
I'm not sure whether the original github repo is still active, but I forked it and try to maintain it here.
That script is not updated.
Follow the instructions
First:
https://forums.bunsenlabs.org/viewtopic … 41#p126241
https://forums.bunsenlabs.org/viewtopic … 59#p126259
https://forums.bunsenlabs.org/viewtopic … 87#p126287
Then replace hourly section:
https://forums.bunsenlabs.org/viewtopic … 92#p126292
Is there an easy way to add PRECIPITATION AMOUNT and CHANCE OF PRECIPITATION to the hourly output?
I have never used hourly weather.
Show me the contents of the hourly file and tell me which values interest you.
If people would know how little brain is ruling the world, they would die of fear.
Offline
I updated the script in my repo. It works well now.
Offline
hourly:
sed -i '/class="date"\|weathericons\/\|temp metric\|RealFeel<span\|"phrase"\|Max UV Index\|Wind\|Wind Gusts\|Humidity\|Dew Point\|Cloud Cover\|Visibility\|Cloud Ceiling/!d' $HOME/Accuweather_conky_script/hourly
In this line, I removed the dynamically displayed weather parameters (or so: left what I'm interested in).
Max UV Index : day - yes, night - no
#Populate Max UV and Prec. Amount values where needed
i=1
while IFS= read -r line;
do
if [[ $(sed -n ${i}p $HOME/Accuweather_conky_script/hourly) == Wind ]]; then
j=$((i-2))
if [[ $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly) != 'Max UV Index' ]]; then
sed -i "${i}s/^/Max UV Index\n0\n/" $HOME/Accuweather_conky_script/hourly
((i+=3))
fi
elif [[ $(sed -n ${i}p $HOME/Accuweather_conky_script/hourly) == Visibility ]]; then
j=$((i-2))
if [[ $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly) != 'Rain' && $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly) != 'Snow' ]]; then
sed -i "${i}s/^/Prec. Amount\n-\n/" $HOME/Accuweather_conky_script/hourly
((i+=3))
fi
fi
((i+=1))
done < $HOME/Accuweather_conky_script/hourly
In this block, the Max UV Index (and other parameters) are checked and adjusted
Offline
@il.harun
February 2022:
Yeah, I can see it myself now.
That´s the good news, the bad news is that it´s gonna take a while, since my schedule is a bit... hectic, to say it politely.
Sorry guys.
March 2023:
Teo could not believe it already about the turn of the year 2022/2023.
The only reason these pages didn't die is you.
Thank you for continuing to help us.
If people would know how little brain is ruling the world, they would die of fear.
Offline
I am new in forum. What working accuweather script and how to download? Marens can you send me these wonderfull conkyrc in google drive? #4216
Offline
@ploukop
Welcome to the forum!
I updated the script in my repo. It works well now.
Link:
https://github.com/morfikov/1_accuweather
You must enter your address instead of this one in accuweather file:
address="https://www.accuweather.com/en/us/hutto/78634/weather-forecast/2110192"
In .conkyrc_Examples folder try .conkyrc_acc_images_wind_2015.
or
Follow the old instructions
First:
https://forums.bunsenlabs.org/viewtopic … 41#p126241
https://forums.bunsenlabs.org/viewtopic … 59#p126259
https://forums.bunsenlabs.org/viewtopic … 87#p126287
Then replace hourly section:
https://forums.bunsenlabs.org/viewtopic … 92#p126292
If people would know how little brain is ruling the world, they would die of fear.
Offline
@marens I know, everything is just fine:
It would be nice to have this precip % and precip amount.
Last edited by morfik (2023-03-13 21:10:43)
Offline
@marens I know, everything is just fine:
https://i.imgur.com/yS0I7OT.png
It would be nice to have this precip % and precip amount.
I have confidence in your work.
That's why I gave the new user your github link first.
I saw that you made many changes.
Due to the similar name, I did not immediately see that you are different from TeamFahQ/1_accuweather script.
Thanks for trying to keep the script up to date.
Your desktop looks amazing.
@il.harun made some changes to the hourly weather today.
Check if it helps you.
If it doesn't help, post the hourly_raw file here(I don't have that file).
Maybe we can find a solution together.
If people would know how little brain is ruling the world, they would die of fear.
Offline
I said it's a fork, which implies the same name. I though the original is still maintained, and sent the changes to upstream. But if the original repo isn't maintained, the fork can be used. The github repo doesn't reflect my conky config. I have my own conky instance with my own configuration . My github repo is the original conky with only small modifications which should be made long time ago (except for fixing forecast).
Offline
@morfik
I don't know where exactly your hourly raw file is and I don't know file name(hourly_raw1 or hourly_raw2).
Change the path and file name and try this command:
$ cat /path/to/your/file/hourly_raw1 | grep -A 2 'class="precip"' | grep '%' | sed 's/^[ \t]*//'
Is this the data you need?
If people would know how little brain is ruling the world, they would die of fear.
Offline
I think so.
$ cat .conky/Accuweather_conky_script/temp/hourly_raw1 | grep -A 2 'class="precip"' | grep '%' | sed 's/^[ \t]*//'
0%
2%
6%
6%
6%
6%
6%
6%
7%
7%
7%
7%
7%
11%
47%
51%
47%
43%
47%
Offline
I think so.
Create a precip file in your temp folder.
Create a precip.sh script in your temp folder:
#!/bin/bash
cat /dev/null > $HOME/.conky/Accuweather_conky_script/temp/precip
cat $HOME/.conky/Accuweather_conky_script/temp/hourly_raw1 | grep -A 2 'class="precip"' | grep '%' | sed 's/^[ \t]*//' > $HOME/.conky/Accuweather_conky_script/temp/precip
Make script executable.
In conky first line:
${texeci 500 bash $HOME/Accuweather_conky_script/temp/precip.sh}
Now you can take the values you need from the precip file.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hello
Guys after Wunderground is now dark_sky down .
when will it stop
The only thing missing is that Accuweather stops too.
@+
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
Hello
Guys after Wunderground is now dark_sky down .
when will it stop
The only thing missing is that Accuweather stops too.
@+
Peut-être que @marens a encore une 'arme secrète' dans son carquois.
Suite à ta dernière remarque, j'ai installé gisWeather. Mais j'ai constaté que le développement s'était arrêté en 2019. Et, il y a aussi beaucoup de bugs...
Maybe @marens has a 'secret weapon' in his quiver.
In response to your last comment, I have installed gisWeather. However, I found that the development has stopped in 2019. And, the thing also has errors in abundance...
Offline
@unklar
Gis Weather working many years without errors.
No installation required.
First check the ~/.config directory.
If there is a gis-weather folder , delete it.
Follow the instructions
Go to:
https://github.com/RingOV/gis-weather
Press Code button > Download ZIP
Extract .zip file(Extract Here) in Download folder.
You will get a gis-weather-master folder.
Now you need the City Code.
Visit:
https://www.gismeteo.com
Example:
In search field type: Paris.
In PopUp Menu click on Paris France.
Check browser URL bar(address bar).
For Paris: gismeteo.com/weather-paris-1623/
Number 1623 is Code for Paris France.
Open Terminal:
$ cd $HOME/Downloads/gis-weather-master
Start Gis Weather:
$ python3 "gis-weather.py"
Enter example city code: 1623 > Add button > Close & Reload selected button.
Right click on Gis Weather window > Preferences
In General Tab > Disable Autostart option.
Now you can play with the settings.
There are many useful options.
Enjoy with the best alternative to accuweather conky script.
Last edited by marens (2023-03-28 00:52:34)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Offline
@unklar
Let's see if it becomes a replacement for accuweather.
I hope it will not because I love this script.
Gis Weather is always on desktop for me last 6-7 years.
For accuweather script I made a keyboard shortcuts Ctrl + Alt + W (big horizontal conky), Ctrl + Alt + 3 (3 days forecast), Ctrl + Alt + 7 (7 days forecast) for enable/disable and I use it sometimes.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Moongiant conky script
I know that it is an 'impossible mission' (for us) to calculate the exact illumination angle.
Astronomy is a serious science with many variable dependencies.
But we can add an angle to the illumination.
It looks more 'natural'.
If you like it, add script before last line (#Resume weather conky):
#Moon Images with Illumination Angle
for szFile in $HOME/Moongiant_conky_script/*.png
do
convert "$szFile" -background 'none' -virtual-pixel 'none' -distort SRT 30 $HOME/Moongiant_conky_script/"$(basename "$szFile")" ;
done
#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hello
Tank's great conkistador.
@+
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
I've been looking for a solution that could be implemented entirely in the accuweather script and/or the conky config (and did not require a cron job) that would have the weather data available when I first log into my desktop and promptly displayed thereafter.
So I call the accuweather script BEFORE I call conky in my widow manager config like so:
${execi 2100 $HOME/Accuweather_conky_script/accuweather && conky --config=$HOME/Accuweather_conky_script/.conkyrc_acc_weatherfont_simpler}
And in my window manager like so:
$HOME/Accuweather_conky_script/accuweather && conky --config=$HOME/Accuweather_conky_script/.conkyrc_acc_weatherfont_simpler
But the accuweather script is run again as soon as conky starts. So to prevent this when I log into my desktop I also add the code below to the very top of the accuweather script so that if the daily_forecast file is less that 2 minutes old I do not run the script again until the next scheduled interval. A two minute limit seems adequate.
Further runs of the accuweather script will occur at the scheduled interval and not be affected by this.
weather__REFRESH="2"
if [[ -f $HOME/Accuweather_conky_script/daily_forecast ]] && [[ $(find $HOME/Accuweather_conky_script/daily_forecast -mmin +${weather__REFRESH}) == "" ]] ; then
echo "weather data is less than ${weather__REFRESH} minutes old. ignoring"
#
# or add send-notify, aplay, flite or any other preferred notification that the update is beng ignored
#
exit
fi
To further keep everything is sync I schedule the conky refresh 30 seconds after the 2100 seconds for the accuweather script run.
${execpi 2130 sed -n '1,32p' $HOME/Accuweather_conky_script/altogether24_2016}
So now I never have an empty conky when I log into my desktop for the first time and the conky will display the weather data 30 seconds after it has been downloaded.
Last edited by KairiTech (2023-04-02 19:58:23)
Offline