You are not logged in.

#4221 2023-03-11 14:38:01

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

morfik wrote:

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

morfik wrote:

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

#4222 2023-03-11 15:22:23

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 169
Website

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

I updated the script in my repo. It works well now.

Offline

#4223 2023-03-13 10:27:55

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

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

#4224 2023-03-13 14:37:52

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

@il.harun

February 2022:

TeoBigusGeekus wrote:

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:

unklar wrote:

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

#4225 2023-03-13 17:31:17

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

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

#4226 2023-03-13 19:28:43

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

@ploukop

Welcome to the forum!

morfik wrote:

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

#4227 2023-03-13 21:09:41

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 169
Website

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

@marens I know, everything is just fine:

yS0I7OT.png

It would be nice to have this precip % and precip amount.

Last edited by morfik (2023-03-13 21:10:43)

Offline

#4228 2023-03-13 22:46:22

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

morfik wrote:

@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

#4229 2023-03-14 03:09:37

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 169
Website

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

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). smile

Offline

#4230 2023-03-14 14:47:39

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

@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

#4231 2023-03-14 15:38:40

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 169
Website

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

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

#4232 2023-03-14 18:02:14

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

morfik wrote:

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

#4233 2023-03-27 15:01:04

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

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

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

#4234 2023-03-27 16:47:50

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

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

loutch wrote:

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...

fXYDnDl.png

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...

WooJSTot.jpg

Offline

#4235 2023-03-27 23:57:01

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

@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

#4236 2023-03-28 09:00:29

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

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

Thanks for the tip that gisWeather does not need to be installed. The errors I mentioned are then in the terminal.   wink

b0NYPVkt.png
Let's see if it becomes a replacement for accuweather.

Offline

#4237 2023-03-28 11:52:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

@unklar

unklar wrote:

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

#4238 2023-03-30 15:22:42

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

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

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'.

illumination-angle.png

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

#4239 2023-03-30 16:16:53

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

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

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

#4240 2023-04-02 18:26:21

KairiTech
Member
Registered: 2021-02-08
Posts: 7

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

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

Board footer

Powered by FluxBB